I just discovered that I cannot mount my CDROM on debian!
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 338
Rep:
I just discovered that I cannot mount my CDROM on debian!
Very strange since with redhat all it took was:
mount /dev/cdrom /mnt/cdrom
Whenever i try that, i get this error:
debian:/home/ganni# mount -t iso9660 /dev/cdrom /cdrom/
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
or too many mounted file systems
For your other cdrom, add an entry for it in fstab. The entry will be the similar to the first, with different devices & mount points. You cdrom device is determined by where it's connected; hdc=secondary master, hdd=secondary slave, hdb=primary slave. /dev/cdrom is just a link to one of them.
Make sure the symlink /dev/cdrom points to the right place. Try mounting it by specifying the actual device. In other words, type something like mount -t iso9660 /dev/hdc /cdrom. I've italicised the important part. Once you have the right one make sure the link points there. Then all you'll have to type to mount the cdrom is mount /cdrom (ie just specify the mount point and mount reads your fstab for all the other info).
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 338
Original Poster
Rep:
Yes I did that.. Mind you, I've used to mount and unmount successfully on redhat, and I've read it's man page zillion times. Another thing I've noticed - MUSIC CD's cannot be mounted, whereas data CD's are sucessfully mounted (although for the last case, the eject doesn't work, but anyways). I'm trying to find out whether music CDs have a different filetype..
You can't mount music CDs. They're just played directly. Also, if you want to eject a CD you have to unmount (umount) it. If you want program to play a CD you just point the player to /dev/cdrom.
Re: I just discovered that I cannot mount my CDROM on debian!
Plese look again at your /etc/fstab. your cdrom is located at "/cdrom" not "/mnt/cdrom"
This is the default for Debian 3.0. Use the command "mount /cdrom"
Regards, S.S.
Quote:
Originally posted by ganninu Very strange since with redhat all it took was:
mount /dev/cdrom /mnt/cdrom
Whenever i try that, i get this error:
debian:/home/ganni# mount -t iso9660 /dev/cdrom /cdrom/
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
or too many mounted file systems
Originally posted by ganninu root@tiger:~$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 Nov 8 09:37 /dev/cdrom -> hdb
is 'hdb' /dev/hdb or? How do I create a new link for my secondary cdrom? Do i only need to create a file /dev/cdrom2 and make it point to /dev/hdb2?
Your second CD would be /dev/hdc or /dev/hdd depending where it is on the second IDE channel. For your eject problem you may want to check and make sure that you have the eject program installed.
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 338
Original Poster
Rep:
ok managed to do it... To find out which hd* it is, the trick is to check out the file size... If it is non-zero then that hd* contains the device - quite trivial anyways hehe... Then finding out which hd* reflects your cd rom (in my case hdd) create a symbolic link:
ln -s /dev/hdd /dev/cdrom2
Then create a mount point in the /etc/fstab file...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.