back-trace on mounting ide cd-rom

back-trace on mounting ide cd-rom

Post by Robert Lov » Fri, 04 Apr 2003 01:40:09



I got the following errors and back-trace upon mounting my IDE CD-ROM
(hdc).  It seems to be a normal ISO9660... its the Red Hat 9 CD.

I haven't looked into it yet.  Not sure why there is ext3 stuff in
there... maybe the CD-ROM mount is unrelated?  Mounting the CD
subsequent times is OK.

Kernel is 2.5.66-mm2.  UP, preempt, no highmem, i686.

Here we go:

        buffer layer error at fs/buffer.c:127
        Call Trace:
         [<c0149d80>] __wait_on_buffer+0xe0/0xf0
         [<c0117b10>] autoremove_wake_function+0x0/0x50
         [<c0117b10>] autoremove_wake_function+0x0/0x50
         [<c014bcff>] __block_prepare_write+0x11f/0x460
         [<c0187d9a>] start_this_handle+0xaa/0x1f0
         [<c014c874>] block_prepare_write+0x34/0x50
         [<c017d760>] ext3_get_block+0x0/0xa0
         [<c017dd41>] ext3_prepare_write+0x71/0x130
         [<c017d760>] ext3_get_block+0x0/0xa0
         [<c012eeb9>] generic_file_aio_write_nolock+0x369/0xa50
         [<c012da90>] file_read_actor+0x0/0x130
         [<c012dd84>] __generic_file_aio_read+0x1c4/0x210
         [<c012f6c5>] generic_file_aio_write+0x85/0xb0
         [<c017b5b4>] ext3_file_write+0x44/0xe0
         [<c0148a0b>] do_sync_write+0x8b/0xc0
         [<c015aa11>] __pollwait+0x41/0xd0
         [<c015a9d0>] __pollwait+0x0/0xd0
         [<c015b07e>] sys_select+0x26e/0x560
         [<c0147b78>] filp_open+0x68/0x70
         [<c0148afe>] vfs_write+0xbe/0x130
         [<c0148c0e>] sys_write+0x3e/0x60
         [<c0109259>] sysenter_past_esp+0x52/0x71

        end_request: I/O error, dev hdc, sector 0
        end_request: I/O error, dev hdc, sector 0
        ISO 9660 Extensions: RRIP_1991A

Ideas?

        Robert Love

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

back-trace on mounting ide cd-rom

Post by Bryan Rittmeye » Fri, 04 Apr 2003 01:40:11



> I haven't looked into it yet.  Not sure why there is ext3 stuff in
> there... maybe the CD-ROM mount is unrelated?  Mounting the CD
> subsequent times is OK.

weak guess: maybe mount is trying to auto-probe the filesystem and the
ext3 code gets upset on cdrom. are you using -t iso9660?

-Bryan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

back-trace on mounting ide cd-rom

Post by Andrew Morto » Fri, 04 Apr 2003 01:50:14



> I got the following errors and back-trace upon mounting my IDE CD-ROM
> (hdc).  It seems to be a normal ISO9660... its the Red Hat 9 CD.

> I haven't looked into it yet.  Not sure why there is ext3 stuff in
> there... maybe the CD-ROM mount is unrelated?  Mounting the CD
> subsequent times is OK.

> Kernel is 2.5.66-mm2.  UP, preempt, no highmem, i686.

> Here we go:

>         buffer layer error at fs/buffer.c:127

ah, my new debug code is buggy.  It is legal to wait upon a zero-ref buffer
if that buffer's page is locked.

diff -puN fs/buffer.c~a fs/buffer.c
--- 25/fs/buffer.c~a    Wed Apr  2 15:41:25 2003

        wait_queue_head_t *wqh = bh_waitq_head(bh);
        DEFINE_WAIT(wait);

-       if (atomic_read(&bh->b_count) == 0)
+       if (atomic_read(&bh->b_count) == 0 &&
+                       (!bh->b_page || !PageLocked(bh->b_page)))
                buffer_error();

        do {

_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

back-trace on mounting ide cd-rom

Post by Robert Lov » Fri, 04 Apr 2003 03:50:07



> ah, my new debug code is buggy.  It is legal to wait upon a zero-ref buffer
> if that buffer's page is locked.

That fixed it (or it is not reproducing itself).

Thanks, Andrew.  Glad to be of service.

        Robert Love

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. CD-ROM mount needs source <--> source needs CD-ROM mount

I've just ploughed through the entirety of misc,hardware and setup, to no
avail;  I installed Linux from the sbpcd boot disk (as I have a Panasonic
CD-ROM drive hanging off a SoundBlaster-compat. card), and the CD-ROM drive
chugged away happily to give me the OS.  However, my concerns about the size of
everything I was prompted to install made me decide NOT to install the linux
source.  

Now, when I boot up the CD drive cannot be mounted because of 'wrong fs, blah
blah, or other error'.  I interrogated sbpcd.h (I *did* install the includes)
and the setup was incorrect.  Because I can't mount the CD drive I can't get
the source off the CD - re-booting off the boot disk (sbpcd) and trying a
reinstall  from the CD using setup gives a warning that the CD drive can't be
mounted.

Should I delete the linux partition and start from scratch again?  I do really
need to access the CD drive, and I realise now that it is kind of useful to
have the OS source.

Apart from that, it's great having a proper OS on my PC at last!

John

2. erasing tapes and making backups

3. Upgrading to SCSI CD-ROM from IDE CD-ROM

4. Fingers crossed....

5. NEC CDR-260 CD-ROM (Gateway IDE CD-ROM)

6. FSF Conference Info

7. IDE/ATAPI CD-ROM and Que/CD-ROM setup

8. hacking kernel need info

9. PAS 16 CD-ROM and Slakware96, mounting CD-ROM crashes system

10. Mount CD-ROM over network and report as CD-ROM

11. Linux from Nascent CD-ROM won't mount my panasonic cd-rom drive

12. Mounting CD ROM vs. Mounting CD ROM

13. Problems with 2nd IDE i/f and IDE CD-ROM on Compaq Presario CDS 972