Mailing List Archive

Linux 2.2.0-pre6 bug -- error mounting CDROM
Linux smiley 2.0.34 #7 Sat Sep 12 10:40:27 JST 1998 i686 unknown
smiley ~ genman$ mount --version
mount: mount-2.9g
During bootup, I get the following messages: The CDROM mounts and
works fine under linux 2.0.34. (Linux smiley 2.0.34 #7 Sat Sep 12
10:40:27 JST 1998 i686 unknown)
It is an ADAPI drive.
mount: block device /dev/hdc is write-protected, mounting read-only
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x50
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Start Stop Unit" packet command was:
"1b 00 00 00 03 00 00 00 00 00 00 00 "
Error in command packet byte 26697 bit 0
cdrom: open failed.
mount: No medium found
SIOCADDRT: Invalid argument
I'm not a subscriber, please CC if possible.
Elias Ross = eross@u.washington.edu = http://www.maison-otaku.net/~genman
May the source be with you = Watch, breathe, and live anime = Oh you!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Re: Linux 2.2.0-pre6 bug -- error mounting CDROM [ In reply to ]
Elias Ross wrote:
> During bootup, I get the following messages: The CDROM mounts and
> works fine under linux 2.0.34. (Linux smiley 2.0.34 #7 Sat Sep 12
> 10:40:27 JST 1998 i686 unknown)
>
> It is an ADAPI drive.
>
> mount: block device /dev/hdc is write-protected, mounting read-only
> hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
> hdc: packet command error: error=0x50
> ATAPI device hdc:
> Error: Illegal request -- (Sense key=0x05)
> Invalid field in command packet -- (asc=0x24, ascq=0x00)
> The failed "Start Stop Unit" packet command was:
> "1b 00 00 00 03 00 00 00 00 00 00 00 "
> Error in command packet byte 26697 bit 0
> cdrom: open failed.
> mount: No medium found
What drive is this? Have you been using 2.1 kernels earlier or are
you just now trying out the 2.2.0-pre series? And the drive isn't
empty?
I guess you can tell I'm dumbfounded by this, so please e-mail
me all the relevant information. Could you also try and set
debug=1 in cdrom.c?
--
* Jens Axboe <axboe@image.dk>
* Linux CD-ROM Maintainer
* "The only thing that interferes with my
* learning is my education." -- A. Einstein
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Re: Linux 2.2.0-pre6 bug -- error mounting CDROM [ In reply to ]
Jens Axboe wrote:
>
> Elias Ross wrote:
> > During bootup, I get the following messages: The CDROM mounts and
> > works fine under linux 2.0.34. (Linux smiley 2.0.34 #7 Sat Sep 12
> > 10:40:27 JST 1998 i686 unknown)
> >
> > It is an ADAPI drive.
> >
> > mount: block device /dev/hdc is write-protected, mounting read-only
> > hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
> > hdc: packet command error: error=0x50
> > ATAPI device hdc:
> > Error: Illegal request -- (Sense key=0x05)
> > Invalid field in command packet -- (asc=0x24, ascq=0x00)
> > The failed "Start Stop Unit" packet command was:
> > "1b 00 00 00 03 00 00 00 00 00 00 00 "
> > Error in command packet byte 26697 bit 0
> > cdrom: open failed.
> > mount: No medium found
>
> What drive is this? Have you been using 2.1 kernels earlier or are
> you just now trying out the 2.2.0-pre series? And the drive isn't
> empty?
>
> I guess you can tell I'm dumbfounded by this, so please e-mail
> me all the relevant information. Could you also try and set
> debug=1 in cdrom.c?
I have seen the same thing since the pre5 patch to cdrom.c (pre6 patched
looked to be a spelling patch)
>diff -u --recursive --new-file v2.2.0-pre4/linux/drivers/cdrom/cdrom.c linux/drivers/cdrom/cdrom.c
>--- v2.2.0-pre4/linux/drivers/cdrom/cdrom.c Mon Dec 28 15:00:52 1998
>+++ linux/drivers/cdrom/cdrom.c Mon Jan 4 11:58:44 1999
>@@ -376,8 +376,10 @@
> }
> cdinfo(CD_OPEN, "the tray is now closed.\n");
> }
>- if (ret!=CDS_DISC_OK)
>+ if (ret!=CDS_DISC_OK) {
>+ ret = -ENOMEDIUM;
> goto clean_up_and_return;
>+ }
> }
> cdrom_count_tracks(cdi, &tracks);
> if (tracks.error == CDS_NO_DISC) {
>
I can recreate the problem with running an AfterStep app to play cd's
"ascd". The problem only manifested itself when I booted w/o any CDROM
in the drive. Before that time, ascd had found an audio cd in the
drive.
The drive is otherwise functional.. Insert CD it plays.. insert data cd,
it mounts.
[tawood@tawman kernel]$ which ascd
/usr/local/bin/ascd
[tawood@tawman kernel]$ ascd
/dev/cdrom: No medium found
[tawood@tawman kernel]$ uname -a # with pre5 crypto patch applied
# same behavior without crypto patch
Linux tawman 2.2.0-pre6-ac2 #10 Tue Jan 12 21:59:12 CET 1999 i686
unknown
dmesg output at the time of running ascd:
Linux version 2.2.0-pre6-ac2 (root@tawman) (gcc version 2.7.2.3) #10 Tue
Jan 12 21:59:12 CET 1999
Detected 265750775 Hz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 264.60 BogoMIPS
Memory: 144256k/147456k available (780k kernel code, 408k reserved,
1960k data, 52k init)
VFS: Diskquotas version dquot_6.4.0 initialized
CPU: Intel Pentium II (Deschutes) stepping 00
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
PCI: PCI BIOS revision 2.10 entry at 0xfda13
PCI: Using configuration type 1
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
Initializing RT netlink socket
Starting kswapd v 1.5
Serial driver version 4.27 with no serial options enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS02 at 0x03e8 (irq = 4) is a 16550A
pty: 256 Unix98 ptys configured
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.8)
Real Time Clock Driver v1.09
PIIX4: IDE controller on PCI bus 00 dev 39
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xfcd0-0xfcd7, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xfcd8-0xfcdf, BIOS settings: hdc:pio, hdd:pio
hda: IBM-DADA-26480, ATA DISK drive
hdc: TOSHIBA CD-ROM XM-1702BC, ATAPI CDROM drive
ide2: ports already in use, skipping probe
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: IBM-DADA-26480, 6194MB w/460kB Cache, CHS=839/240/63, UDMA
hdc: ATAPI 24X CDROM drive, 128kB Cache
Uniform CDROM driver Revision: 2.51
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
Partition check:
hda: hda1 hda2 < hda5 hda6 hda7 > hda3 hda4
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 52k freed
Adding Swap: 90716k swap-space (priority -1)
Linux PCMCIA Card Services 3.0.8
kernel build: 2.2.0-pre6-ac2 #9 Tue Jan 12 13:01:48 CET 1999
options: [pci] [apm]
Intel PCIC probe:
TI 1131 PCI-to-CardBus at bus 0 slot 4, mem 0x68000000, 2 sockets
host opts [0]: [pci + serial irq] [no pci irq] [lat 168/176] [bus
32/34]
host opts [1]: [pci + serial irq] [no pci irq] [lat 168/176] [bus
35/37]
ISA irqs (default) = 3 polling interval = 1000 ms
cs: IO port probe 0x0120-0x012f: clean.
cs: IO port probe 0x02f8-0x02ff: clean.
cs: memory probe 0x9001000-0x9001fff: clean.
eth0: 3Com 3c589, port 0x120, irq 3, Auto port, hw_addr
00:00:86:18:84:94
tty01 at 0x02f8 (irq = 3) is a 16550A
ad1848/cs4248 codec driver Copyright (C) by Hannu Savolainen 1993-1996
eth0: autodetected 10baseT
CSLIP: code copyright 1989 Regents of the University of California
PPP: version 2.3.3 (demand dialling)
PPP line discipline registered.
registered device ppp0
PPP BSD Compression module registered
PPP Deflate Compression module registered
Registered des (2)
Registered des-cbc (65538)
ipgrab uses obsolete (PF_INET,SOCK_PACKET)
device eth0 entered promiscuous mode
ISO 9660 Extensions: RRIP_1991A
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x50
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Start Stop Unit" packet command was:
"1b 00 00 00 03 00 00 00 00 00 00 00 "
Error in command packet byte 37903 bit 0
cdrom: open failed.
VFS: Disk change detected on device ide1(22,0)
----
Sincerely,
Todd A. Wood
Wood Consulting Group, Inc.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Re: Linux 2.2.0-pre6 bug -- error mounting CDROM [ In reply to ]
"Todd A. Wood" wrote:
> I have seen the same thing since the pre5 patch to cdrom.c (pre6 patched
> looked to be a spelling patch)
>
> >diff -u --recursive --new-file v2.2.0-pre4/linux/drivers/cdrom/cdrom.c linux/drivers/cdrom/cdrom.c
> >--- v2.2.0-pre4/linux/drivers/cdrom/cdrom.c Mon Dec 28 15:00:52 1998
> >+++ linux/drivers/cdrom/cdrom.c Mon Jan 4 11:58:44 1999
> >@@ -376,8 +376,10 @@
> > }
> > cdinfo(CD_OPEN, "the tray is now closed.\n");
> > }
> >- if (ret!=CDS_DISC_OK)
> >+ if (ret!=CDS_DISC_OK) {
> >+ ret = -ENOMEDIUM;
> > goto clean_up_and_return;
> >+ }
> > }
> > cdrom_count_tracks(cdi, &tracks);
> > if (tracks.error == CDS_NO_DISC) {
> >
>
> I can recreate the problem with running an AfterStep app to play cd's
> "ascd". The problem only manifested itself when I booted w/o any CDROM
> in the drive. Before that time, ascd had found an audio cd in the
> drive.
Ah, now I see. It's basically a ascd "bug". Try this little patch
against ascd-0.7. Probably also works with earlier versions,
plat_linux.c doesn't look like it's been touched in years.
--- plat_linux.c~ Wed Jan 13 01:32:41 1999
+++ plat_linux.c Wed Jan 13 01:36:43 1999
@@ -338,7 +338,7 @@
if (fcntl(fd, F_SETLK, &fl) < 0)
exit(0);

- if (open(cd_device, 0) >= 0)
+ if (open(cd_device, O_RDONLY | O_NONBLOCK) >= 0)
{
brk(&end);
pause();
@@ -435,7 +435,7 @@
if (d->fd >= 0) /* Device already open? */
return (0);

- d->fd = open(cd_device, 0);
+ d->fd = open(cd_device, O_RDONLY | O_NONBLOCK);
if (d->fd < 0)
{
if (errno == EACCES)
> The drive is otherwise functional.. Insert CD it plays.. insert data cd,
> it mounts.
And now we should probably move this discussion out of linux-kernel,
since it isn't that on-topic anymore.
--
* Jens Axboe <axboe@image.dk>
* Linux CD-ROM Maintainer
* "The only thing that interferes with my
* learning is my education." -- A. Einstein
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Re: Linux 2.2.0-pre6 bug -- error mounting CDROM [ In reply to ]
On Tue, 12 Jan 1999, Jens Axboe wrote:
>What drive is this? Have you been using 2.1 kernels earlier or are
>you just now trying out the 2.2.0-pre series? And the drive isn't
>empty?
This is /dev/hdc. This is an internal CDROM for the Sony Vaio notebook
computer. (Which I assume is some standard hardware) I had tried a much
earlier kernel 2.1, though I had different problems, so I never kept
trying.
>I guess you can tell I'm dumbfounded by this, so please e-mail
>me all the relevant information. Could you also try and set
>debug=1 in cdrom.c?
Okay, I hope I set it up right. Now the messages look like this:
(typing in by hand, since I can't get on the net either yet...)
cdrom: entering cdrom_open
mount: block device /dev/hdc is write-protected, mounting read-only
cdrom: entering cdrom_open
cdrom: entering open_for_data
cdrom: drive_status=2
cdrom: the tray is open... [it is closed BTW]
cdrom: trying to close the tray.
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x50
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Start Stop Unit" packet command was:
"1b 00 00 00 03 00 00 00 00 00 00 00 "
Error in command packet byte 0 bit 0
cdrom: bummer. tried to close the tray but failed.
cdrom: open failed.
cdrom: door unlocked.
cdrom: Use count for "/dev/hdc" now 0
mount: No medium found
Elias Ross = eross@u.washington.edu = http://www.maison-otaku.net/~genman
May the source be with you = Watch, breathe, and live anime = Oh you!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Re: Linux 2.2.0-pre6 bug -- error mounting CDROM [ In reply to ]
Erick Kinnee wrote:
> >I can recreate the problem with running an AfterStep app to play cd's
> > "ascd". The problem only manifested itself when I booted w/o any CDROM
> > in the drive. Before that time, ascd had found an audio cd in the
> > drive.
>
> Like I said, I get it when running cdparanoia.
>
> > The drive is otherwise functional.. Insert CD it plays.. insert data cd,
> > it mounts.
>
> Same here, the drive works fine at all other times... Just doesn't want me to make that mp3. :)
Try this patch for cdparanoia. It will apply (at least) to versions
alpha-7 to alpha-9.4
--- scan_devices.c~ Wed Jan 13 22:44:03 1999
+++ scan_devices.c Wed Jan 13 22:45:52 1999
@@ -167,7 +167,7 @@
/* Yay, ATAPI... */
/* Ping for CDROM-ness */

- fd=open(device,O_RDONLY);
+ fd=open(device,O_RDONLY|O_NONBLOCK);
if(fd==-1){
idperror(messagedest,messages,"\t\tUnable to open %s",device);
free(device);
--
* Jens Axboe <axboe@image.dk>
* Linux CD-ROM Maintainer
* "The only thing that interferes with my
* learning is my education." -- A. Einstein
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Re: Linux 2.2.0-pre6 bug -- error mounting CDROM [ In reply to ]
--envbJBWh7q8WU6mo
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
On Wed, Jan 13, 1999 at 12:55:25AM +0100, Todd A. Wood wrote:
> > > hdc: packet command error: status=3D0x51 { DriveReady SeekComplete Er=
ror }
> > > hdc: packet command error: error=3D0x50
> > > ATAPI device hdc:
> > > Error: Illegal request -- (Sense key=3D0x05)
> > > Invalid field in command packet -- (asc=3D0x24, ascq=3D0x00)
> > > The failed "Start Stop Unit" packet command was:
> > > "1b 00 00 00 03 00 00 00 00 00 00 00 "
> > > Error in command packet byte 26697 bit 0
> > > cdrom: open failed.
> > > mount: No medium found
I too have seen this w/2.2.0-pre6-ac1. Just noticed it last night actually.=
.. I was trying to rip a CD w/cdparanoia.
> > What drive is this? Have you been using 2.1 kernels earlier or are
> > you just now trying out the 2.2.0-pre series? And the drive isn't
> > empty?
Mitsumi FX240S, ATAPI CDROM drive=20
I have followed the 2.1.x series and 2.2.x series so far...
> > I guess you can tell I'm dumbfounded by this, so please e-mail
> > me all the relevant information. Could you also try and set
> > debug=3D1 in cdrom.c?
Hmmm, have not tried this yet... I did disable UDMA and such in the BIOS. T=
ried running bare as possible.
>I can recreate the problem with running an AfterStep app to play cd's
> "ascd". The problem only manifested itself when I booted w/o any CDROM
> in the drive. Before that time, ascd had found an audio cd in the
> drive.
Like I said, I get it when running cdparanoia.=20
=20
> The drive is otherwise functional.. Insert CD it plays.. insert data cd,
> it mounts.
Same here, the drive works fine at all other times... Just doesn't want me =
to make that mp3. :)
Linux cerb 2.2.0-pre6-ac1 #8 Sun Jan 10 18:45:54 CST 1999
One Cyrix 6x86MMX processor, 207.67 total bogomips, 64M RAM
System library 2.0.7
--=20
__ _
Erick Kinnee | -o) / / (_)__ __ ____ __
Burleson, TX | /\\/ /__/ / _ \/ // /\ \/ /
mailto:cerb@debian.org | _\_v____/_/_//_/\_,_/ /_/\_\
Debian GNU/Linux Maintainer | http://www.debian.org
"I picked up a Magic 8-Ball the other day and it said 'Outlook
not so good'. I said 'Sure, but Microsoft still ships it.'"
--envbJBWh7q8WU6mo
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3a
iQCVAwUBNp8/Sdw2r+mZPd65AQFamAP+Lse06TIUQnJ8edtlFPLYs+dB2RLIyJLh
o6CpPCglnlvWcVwP6AickNJFls7/B092Ew8suFrhEPk8kw/FjdOh1kojzXAhYKMr
hFh3WkRO7U4qdmz57Q1L+za4iUJK1PnxdJMuB2KWntU7EA7GLbQJp3ZmcjIsYznE
0EPAK9n5Zwg=
=VWpi
-----END PGP SIGNATURE-----
--envbJBWh7q8WU6mo--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/