IDE CDROM problems -- No medium found -- 2.4.12-ac3
Greetings;
I've been having difficulties mounting CD-ROMs with 2.4.12-ac3 on my x86 uniproc machine (with only Rik's vmpatch applied).
mount will sometimes give:
$ sudo mount /dev/hdc /mnt/cdrom mount: block device /dev/hdc is write-protected, mounting read-only mount: No medium found
Other times, mount will give:
$ mount /mnt/cdrom
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)Others are much more succinct:
$ mount /mnt/cdrom mount: No medium found
Other times, in this same uptime, the same CD-ROMs mount just fine, with the same commands to perform the mounting.
To my knowledge, I am not doing any of that funky ide-scsi stuff. I have been using grip's cdparanoia to rip CDs; those usually work quite well.
Included here is a list of everything in my .config that had =y or =m. (The only loaded modules at the moment are: vfat, fat, and usb-uhci.)
I haven't been able to find a pattern of work/failure that makes any sense. I am hoping someone else here has seen similar problems, or may have ideas what to do to find the problem. :)
Cheers! :)
CONFIG_X86=yCONFIG_ISA=yCONFIG_UID16=yCONFIG_EXPERIMENTAL=yCONFIG_MODULES=yCONFIG_KMOD=yCONFIG_M686=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_TSC=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_PGE=yCONFIG_X86_USE_PPRO_CHECKSUM=yCONFIG_X86_PPRO_FENCE=yCONFIG_X86_CPUID=yCONFIG_NOHIGHMEM=yCONFIG_MTRR=yCONFIG_X86_UP_APIC=yCONFIG_X86_LOCAL_APIC=yCONFIG_NET=yCONFIG_PCI=yCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_PCI_NAMES=yCONFIG_HOTPLUG=yCONFIG_SYSVIPC=yCONFIG_SYSCTL=yCONFIG_KCORE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NFSD=yCONFIG_SUNRPC=yCONFIG_LOCKD=yCONFIG_MSDOS_PARTITION=yCONFIG_NLS=yCONFIG_VGA_CONSOLE=yCONFIG_VIDEO_SELECT=yCONFIG_FB=yCONFIG_DUMMY_CONSOLE=yCONFIG_FB_VESA=yCONFIG_FB_VGA16=yCONFIG_VIDEO_SELECT=yCONFIG_FBCON_ADVANCED=yCONFIG_FBCON_CFB8=yCONFIG_FBCON_VGA_PLANES=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=yCONFIG_SOUND=yCONFIG_SOUND_ES1371=yCONFIG_USB=yCONFIG_USB_DEBUG=yCONFIG_USB_DEVICEFS=yCONFIG_USB_BANDWIDTH=yCONFIG_USB_UHCI=mCONFIG_USB_UHCI_ALT=mCONFIG_USB_OHCI=mCONFIG_USB_AUDIO=mCONFIG_USB_BLUETOOTH=mCONFIG_USB_STORAGE=mCONFIG_USB_STORAGE_DEBUG=yCONFIG_USB_STORAGE_FREECOM=yCONFIG_USB_STORAGE_DPCM=yCONFIG_USB_ACM=mCONFIG_USB_PRINTER=mCONFIG_USB_HID=mCONFIG_USB_WACOM=mCONFIG_USB_DC2XX=mCONFIG_USB_MDC800=mCONFIG_USB_SCANNER=mCONFIG_USB_MICROTEK=mCONFIG_USB_IBMCAM=mCONFIG_USB_OV511=mCONFIG_USB_DSBR=mCONFIG_USB_DABUSB=mCONFIG_USB_PLUSB=mCONFIG_USB_PEGASUS=mCONFIG_USB_SERIAL=mCONFIG_USB_SERIAL_GENERIC=yCONFIG_USB_SERIAL_BELKIN=mCONFIG_USB_SERIAL_WHITEHEAT=mCONFIG_USB_SERIAL_DIGI_ACCELEPORT=mCONFIG_USB_SERIAL_EMPEG=mCONFIG_USB_SERIAL_FTDI_SIO=mCONFIG_USB_SERIAL_VISOR=mCONFIG_USB_SERIAL_EDGEPORT=mCONFIG_USB_SERIAL_KEYSPAN_PDA=mCONFIG_USB_SERIAL_KEYSPAN=mCONFIG_USB_SERIAL_KEYSPAN_USA28=yCONFIG_USB_SERIAL_KEYSPAN_USA28X=yCONFIG_USB_SERIAL_KEYSPAN_USA19=yCONFIG_USB_SERIAL_KEYSPAN_USA18X=yCONFIG_USB_SERIAL_KEYSPAN_USA19W=yCONFIG_USB_SERIAL_KEYSPAN_USA49W=yCONFIG_USB_SERIAL_MCT_U232=mCONFIG_USB_SERIAL_OMNINET=mCONFIG_USB_RIO500=mCONFIG_DEBUG_KERNEL=yCONFIG_MAGIC_SYSRQ=y
Quoted 5 lines · [email protected] (Seth Arnold) writes:
[...]
mount will sometimes give:
[...]$ mount /mnt/cdrom mount: No medium found
ide-cd.c is broken since 2.4.1 and gives bad status reports on most ATAPI drives. Perhaps the attached patch helps...
Enrico
drivers/ide/ide-cd.c renamed from drivers/ide/ide-cd.c.orig +1 -4
@@ -2319,10 +2319,7 @@* any other way to detect this... */ if (sense.sense_key ==NOT_READY ) { -if (sense.asc ==0x3a && (!sense.ascq||sense.ascq ==1 )) -return CDS_NO_DISC ; -else -return CDS_TRAY_OPEN ; +if (sense.asc ==0x3a )return CDS_TRAY_OPEN ; }return CDS_DRIVE_NOT_READY ;
Quoted 10 lines · Enrico Scholz
Quoted 5 lines · [email protected] (Seth Arnold) writes:
[...]
mount will sometimes give:
[...]$ mount /mnt/cdrom mount: No medium found
ide-cd.cis broken since 2.4.1 and gives bad status reports on most ATAPI drives. Perhaps the attached patch helps...
I just sent the right diff to Linus and Alan some days ago, it should look like this.
Signature · 1 line
Jens Axboe
ide/ide-cd.c renamed from opt/kernel/linux-2.4.10-pre11/drivers/ide/ide-cd.c +1 -1
@@ -2409,7 +2409,7 @@* any other way to detect this... */ if (sense.sense_key ==NOT_READY ) { -if (sense.asc ==0x3a && (!sense.ascq||sense.ascq ==1 )) +if (sense.asc ==0x3a && sense.ascq ==1 )return CDS_NO_DISC ;else return CDS_TRAY_OPEN ;