CDROM in /etc/fstab not working
I have the following line in /etc/fstab defined:
/dev/hdb /mnt/cdrom iso9660 noauto,owner,ro 0 0 But it's not mounting after reboot and have to do it manually every time which works i.e. with mount -t iso9660 /dev/hdb /mnt/cdrom Yes, /dev/hdb is the correct one Yes, I tried with "auto" and still not working. Can somebody give me a hand please :confused: Thx |
maybe you should change the /dev/hdb to /dev/cdrom.
try it not so sure. (post result pls) bye, tuxfood |
change it to:
Code:
/dev/hdb /mnt/cdrom iso9660 auto,user,ro 0 0 You do not actually want to have auto-mounting cdrom drives. Because it will then refuse to eject. Some things in Linux just doesn't work like they do in Windows, the cdrom drive is one of them. If you insert a CD into the drive and mount it, you will able to access the data, but you can't eject the CD until you unmount the drive first. |
are you trying to mount data cd's or audio? you can't mount audio cd's, just play them in kscd or whatever program you like. if you're just doing data, then auto should make that change...if it doesn't then i don't know, try other options like users instead of owner ::shrug::
post any results please |
Thanks for your replyies guys.. you must be on different time zone... I'd have replied sooner but I was sleeping
No, I'm mounting data CD.. I'm aware of that issue with music CDs. I've tried "auto" before but didn't work. I'll give it a try again with "user" option and let you know. thx |
Ok, tried all combinations
/dev/hdb /mnt/cdrom iso9660 noauto,owner,ro 0 0 /dev/hdb /mnt/cdrom iso9660 auto,owner,ro 0 0 /dev/hdb /mnt/cdrom iso9660 noauto,user,ro 0 0 /dev/hdb /mnt/cdrom iso9660 auto,owner,ro 0 0 and still doesn't work! Time to give up.. I'll continue mounting it manually... I'm sure someday lights will turn on. Thx for your help guys/gals! |
What did you mean by "not mounting"? After you made your edits, how did you try to look at your cd?
|
I just did "ls /mnt/cdrom" and nothing appears!
but when I mount it manually with mount -t iso9660 /dev/hdb /mnt/cdrom then "ls /mnt/cdrom".. I see all files. thx |
I am a noob also, but I thought /dev/hdb means your second harddrive. /dev/hda means you first?
this is the line in my /etc/fstab /dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0 |
You have to mount manually anyways, or use certain software.
Now that you have a correct line in your fstab, all you have to type is "mount /dev/hdb" to mount. The auto option mounts the cd (if there is one) automatically on startup. It's meant for hard drives, and is specified automatically for them when you put "defaults" as one of the options for one. In KDE or GNOME, you can create special links to the mount point (/mnt/cdrom) that automatically mount the cd when you click on them. I think there's software that will mount the cd as soon as you put it in. |
shanenin,
/dev/cdrom is a link to /dev/hda, /dev/hdb, /dev/hdc, or /dev/hdd (and so on, if you have more than two ide controllers). /dev/hda is the Primary Master IDE Device. (Doesn't have to be a harddrive) /dev/hdb is the Primary Slave IDE Device. /dev/hdc is the Secondary Master IDE Device. /dev/hdc is the Secondary Slave IDE Device. |
shanenin,
Also, change the "owner" option in your cdrom line to "user" so regular users will be allowed to mount. |
thanks, I learned something new
|
All times are GMT -5. The time now is 02:59 AM. |