LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-13-2002, 08:41 AM   #1
Amerist
Member
 
Registered: Apr 2002
Location: Germany
Distribution: RedHat & SuSE
Posts: 106

Rep: Reputation: 15
How do I automatically mount my cdrom at boot?


I have been having some trouble mounting my CDROM in my laptop, but this morning I finally got access to it. Here's what I typed to mount it:

mount /dev/hdc /cdrom

Now if I type ls I can see the contents of the cd in the drive.

My problem is... fstab.

I edited the entry for the cdrom which used to look like this:

/dev/hdc /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0

and I changed it to look like this:

/dev/hdc /cdrom iso9660 noauto,owner,kudzu,ro 0 0

Now when I reboot the machine using shutdown -r now I still can only see the contents of my cdrom if I manually type in mount /dev/hdc /cdrom

What am I doing wrong, besides working 24/7 as root?

Last edited by Amerist; 04-13-2002 at 08:42 AM.
 
Old 04-13-2002, 08:57 AM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 57
You're not doing anything wrong. Having to mount the CD is the normal way of doing things. There is a utility called supermount that autodetects when a disk is being inserted/ejected and mounts/umounts it appropriately. I'm not sure if it's on thw RH7.2 CDs, so try typing supermount at the command prompt. If nothing happens, then check the above link.

Oh, and I can't be certain 'coz I'm not at my Linux box now, but you're fstab entry looks a little squiffy.
 
Old 04-13-2002, 09:13 AM   #3
Amerist
Member
 
Registered: Apr 2002
Location: Germany
Distribution: RedHat & SuSE
Posts: 106

Original Poster
Rep: Reputation: 15
Okay, thanks for clearing that up. I am not sure what might be wrong with my fstab entry. I don't really know much about linux. I just started using it a week ago. I am also not sure what to do with files that end with the .rpm extension. Case in point is supermount-1.0-5cl.noarch.rpm which I downloaded from that link in your previous post. I did try the supermount command but that appears to be an invalid command.

Thanks for your help.
 
Old 04-13-2002, 09:17 AM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 57
At its simplest, try (as root):
rpm -i supermount-1.0-5cl.noarch.rpm

Oh, BTW, you do know about the su command? You don't actually need to log-in as root, ever. Just log in as a normal user, and when you need to become root, type su root and then type root's password. Once you've done your root business, type exit to return to being a normal user again.
 
Old 04-13-2002, 03:09 PM   #5
Amerist
Member
 
Registered: Apr 2002
Location: Germany
Distribution: RedHat & SuSE
Posts: 106

Original Poster
Rep: Reputation: 15
supermount is not compatible with the kernel version included with RH 7.2. I got an error message at boot. Does anyone know of something like supermount that works with redhat ?

Thanks.
 
Old 04-13-2002, 09:00 PM   #6
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Supermount is one of mandrakes additions and even they have problems implementing it in some kernels. Once you have your drive set up so a user can mount it from the CL you can add an icon to the desk top that will mount a cd when you click it.
 
Old 04-14-2002, 06:46 AM   #7
mikek147
Member
 
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141

Rep: Reputation: 15
You might try the autofs(automount) package. -mk
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CDROM refuses to mount, /dev/cdrom does not exist shane25119 Linux - Hardware 10 08-02-2009 11:43 PM
how do i fix my linux to make it auto mount for cdrom. when i boot the machine saw a pink1dog Linux - Software 11 04-13-2005 02:59 PM
Automatically mount, who can help me? shadkong Slackware 5 04-12-2005 08:03 PM
How to give cdrom access for user & can i mount FAT32 partition atomatically on boot? Ninja_212 *BSD 3 03-09-2005 04:01 PM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 08:45 AM


All times are GMT -5. The time now is 02:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration