Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-29-2003, 01:10 AM
|
#1
|
LQ Newbie
Registered: Aug 2003
Location: California
Distribution: RedHat
Posts: 28
Rep:
|
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
Thx
|
|
|
08-29-2003, 01:23 AM
|
#2
|
Member
Registered: Aug 2003
Location: kerala , India
Distribution: RH9 , FC1 ,
Posts: 141
Rep:
|
maybe you should change the /dev/hdb to /dev/cdrom.
try it not so sure.
(post result pls)
bye,
tuxfood
|
|
|
08-29-2003, 01:44 AM
|
#3
|
Senior Member
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307
Rep:
|
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.
Last edited by Azmeen; 08-29-2003 at 01:50 AM.
|
|
|
08-29-2003, 01:45 AM
|
#4
|
Member
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825
Rep:
|
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
|
|
|
08-29-2003, 12:10 PM
|
#5
|
LQ Newbie
Registered: Aug 2003
Location: California
Distribution: RedHat
Posts: 28
Original Poster
Rep:
|
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
Last edited by fbarre; 08-29-2003 at 01:05 PM.
|
|
|
08-29-2003, 01:10 PM
|
#6
|
LQ Newbie
Registered: Aug 2003
Location: California
Distribution: RedHat
Posts: 28
Original Poster
Rep:
|
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!
|
|
|
08-29-2003, 01:16 PM
|
#7
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
What did you mean by "not mounting"? After you made your edits, how did you try to look at your cd?
|
|
|
08-29-2003, 01:20 PM
|
#8
|
LQ Newbie
Registered: Aug 2003
Location: California
Distribution: RedHat
Posts: 28
Original Poster
Rep:
|
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
|
|
|
08-29-2003, 01:34 PM
|
#9
|
Member
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987
Rep:
|
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
Last edited by shanenin; 08-29-2003 at 01:36 PM.
|
|
|
08-29-2003, 01:50 PM
|
#10
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
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.
Last edited by aaa; 08-29-2003 at 01:55 PM.
|
|
|
08-29-2003, 01:54 PM
|
#11
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
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.
|
|
|
08-29-2003, 01:58 PM
|
#12
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
shanenin,
Also, change the "owner" option in your cdrom line to "user" so regular users will be allowed to mount.
|
|
|
08-29-2003, 01:58 PM
|
#13
|
Member
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987
Rep:
|
thanks, I learned something new
|
|
|
All times are GMT -5. The time now is 07:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|