LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CDROM in /etc/fstab not working (https://www.linuxquestions.org/questions/linux-newbie-8/cdrom-in-etc-fstab-not-working-86858/)

fbarre 08-29-2003 01:10 AM

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

tuxfood 08-29-2003 01:23 AM

maybe you should change the /dev/hdb to /dev/cdrom.
try it not so sure.
(post result pls)

bye,
tuxfood

Azmeen 08-29-2003 01:44 AM

change it to:
Code:

/dev/hdb /mnt/cdrom iso9660 auto,user,ro 0 0
Addendum:

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.


mcd 08-29-2003 01:45 AM

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

fbarre 08-29-2003 12:10 PM

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

fbarre 08-29-2003 01:10 PM

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!

aaa 08-29-2003 01:16 PM

What did you mean by "not mounting"? After you made your edits, how did you try to look at your cd?

fbarre 08-29-2003 01:20 PM

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

shanenin 08-29-2003 01:34 PM

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

aaa 08-29-2003 01:50 PM

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.

aaa 08-29-2003 01:54 PM

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.

aaa 08-29-2003 01:58 PM

shanenin,
Also, change the "owner" option in your cdrom line to "user" so regular users will be allowed to mount.

shanenin 08-29-2003 01:58 PM

thanks, I learned something new


All times are GMT -5. The time now is 02:59 AM.