LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   cannot mount cd (https://www.linuxquestions.org/questions/suse-opensuse-60/cannot-mount-cd-613759/)

Kristian S 01-15-2008 01:06 PM

cannot mount cd
 
My CD-ROM drive worked fine during installation, and also used to work fine under my old Fedora 6 installation where I could play audio CDs and read data CDs without any problems. However, when trying to use CDs under OpenSUSE 10.3 after installation, I cannot mount it either automatically nor manually. If I try to mount it manually, the command just "hangs", and nothing happens (I'm not able to get the command prompt back, nor kill the mounting process). I have the same problem for audio CDs and data CDs. The drive clearly works, since if I plug in a live-linux CD, it's recognized at boot-up, and I'm able to boot from that CD.

From Hardware information under YaST I get the following information:

66: SCSI 400.0: 10602 CD-ROM (DVD)
[Created at block.237]
UDI: /org/freedesktop/Hal/devices/storage_model_DVD_C__LH52C1P
Unique ID: twPO.96dYV9sIpoD
Parent ID: qnJ_.kOf6HnwGAe2
SysFS ID: /block/sr0
SysFS BusID: 4:0:0:0
SysFS Device Link: /devices/pci0000:00/0000:00:0d.0/host4/target4:0:0/4:0:0:0
Hardware Class: cdrom
Model: "LITE-ON DVD C LH52C1P"
Vendor: "LITE-ON"
Device: "DVD C LH52C1P"
Revision: "6L14"
Driver: "pata_amd", "sr"
Driver Modules: "pata_amd"
Device File: /dev/sr0 (/dev/sg1)
Device Files: /dev/sr0, /dev/scd0, /dev/disk/by-path/pci-0000:00:0d.0-scsi-0:0:0:0, /dev/cdrom, /dev/cdrw, /dev/dvd
Device Number: block 11:0 (char 21:1)
Features: CD-R, CD-RW, DVD
Drive status: no medium
Config Status: cfg=no, avail=yes, need=no, active=unknown
Attached to: #39 (IDE interface)
Drive Speed: 40

If I do hwinfo --cdrom, I get

block.5: /dev/sr0

I'm no Linux expert, but I hope that someone can help me. OpenSUSE has been great except for this problem, which is odd since the CD drive worked fine under Fedora.

Thanks!
Kristian

neophytezer0 01-15-2008 02:28 PM

cd drive
 
post your /etc/fstab

also, show what command you are using to mount the drive.

Kristian S 01-15-2008 02:48 PM

Quote:

Originally Posted by neophytezer0 (Post 3023612)
post your /etc/fstab

also, show what command you are using to mount the drive.

I've tried the following mounting commands (among others)

mount /dev/cdrom /mnt
mount -t iso9660 -r /dev/cdrom /mnt
mount /dev/sr0 /mnt
mount -t iso9660 -r /dev/sr0 /mnt

all with the same result (command just hangs). I've also tried to mount in other places, such as to /media instead of /mnt. (cdrom is sym-linked to sr0)

My /etc/fstab reads

/dev/disk/by-id/scsi-SATA_WDC_WD2500JS-00_WD-WCANY2598050-part6 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_WDC_WD2500JS-00_WD-WCANY2598050-part7 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_WDC_WD2500JS-00_WD-WCANY2598050-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=POSIX 0 0
/dev/disk/by-id/scsi-SATA_WDC_WD2500JS-00_WD-WCANY2598050-part5 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

neophytezer0 01-16-2008 10:22 AM

looking from your commands, it seems like its a sata drive, correct? the way your fstab is mounting your hard drive is through /dev/disk/by-id/... so maybe see if your cdrom drive is in there, and if so, mount from there.

Kristian S 01-16-2008 10:54 AM

Quote:

Originally Posted by neophytezer0 (Post 3024643)
looking from your commands, it seems like its a sata drive, correct? the way your fstab is mounting your hard drive is through /dev/disk/by-id/... so maybe see if your cdrom drive is in there, and if so, mount from there.

I couldn't find it in there but your suggestion lead me to try mounting using the command

mount /dev/disk/by-path/pci-0000:00:0d.0-scsi-0:0:0:0 /media

This works for data CDs, which is a huge step forward!

However, when trying to mount an audio CD (retail, not home made) with the same command I get the error

mount: block device /dev/sr0 is write-protected, mounting read-only
mount: you must specify the filesystem type

If I instead try

mount -t iso9660 /dev/disk/by-path/pci-0000:00:0d.0-scsi-0:0:0:0 /media

I get the error

mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

dmesg | tail gives me

end_request: I/O error, dev sr0, sector 0
end_request: I/O error, dev sr0, sector 0
end_request: I/O error, dev sr0, sector 0
end_request: I/O error, dev sr0, sector 0
end_request: I/O error, dev sr0, sector 0
cdrom: sr0: mrw address space DMA selected
end_request: I/O error, dev sr0, sector 64
isofs_fill_super: bread failed, dev=sr0, iso_blknum=16, block=16
end_request: I/O error, dev sr0, sector 64
isofs_fill_super: bread failed, dev=sr0, iso_blknum=16, block=16

deepumnit 01-16-2008 11:07 AM

You may want to look at this. I gave you this since you have mentioned something like openSUSE 'hangs'!

reddazz 01-16-2008 11:15 AM

Quote:

However, when trying to mount an audio CD (retail, not home made) with the same command I get the error
Code:

mount: block device /dev/sr0 is write-protected, mounting read-only
mount: you must specify the filesystem type

If I instead try

mount -t iso9660 /dev/disk/by-path/pci-0000:00:0d.0-scsi-0:0:0:0 /media

I get the error

mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
missing codepage or helper program, or other error


If these are normal audio discs, then they cannot be mounted because they do not have a valid iso filesystem (hence the filesystem errors). You need to use a multimedia app to play the audio on the disc.

Kristian S 01-16-2008 12:14 PM

Quote:

Originally Posted by reddazz (Post 3024715)
If these are normal audio discs, then they cannot be mounted because they do not have a valid iso filesystem (hence the filesystem errors). You need to use a multimedia app to play the audio on the disc.

Thanks!

I think it's all working now. I'm able to read data CDs using the mounting command listed below, and also play CDs using a number of different multimedia applications.


All times are GMT -5. The time now is 03:48 AM.