LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 09-15-2004, 09:06 PM   #1
joker20
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware/Ubuntu/CentOS
Posts: 286

Rep: Reputation: 31
/etc/fstab question


i have 2 cdroms, im seeing only 1 cd rom in /mnt i.e /mnt/cdrom, i edited fstab and added cdrom2 but its still not showing up whne i restart the system...any hints?
 
Old 09-15-2004, 09:11 PM   #2
187807
Member
 
Registered: Oct 2003
Location: North Carolina, USA
Distribution: Slackware 11
Posts: 174

Rep: Reputation: 30
Post your /etc/fstab


Post the contents of your /mnt directory
 
Old 09-15-2004, 09:12 PM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
did you make a mountpoint for it, i.e. "mkdir /mnt/cdrom2" ?
( i think you have to do it yourself...)

egag
 
Old 09-15-2004, 09:14 PM   #4
joker20
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware/Ubuntu/CentOS
Posts: 286

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by 187807
Post your /etc/fstab


Post the contents of your /mnt directory
root@JoKeR:~# cd /mnt
root@JoKeR:/mnt# ls
cdrom/ floppy/ hd/
root@JoKeR:/mnt#


/dev/hda5 swap swap defaults 0 0
/dev/hda1 / ext2 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/cdrom2 /mnt/cdrom2 iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
 
Old 09-15-2004, 09:17 PM   #5
187807
Member
 
Registered: Oct 2003
Location: North Carolina, USA
Distribution: Slackware 11
Posts: 174

Rep: Reputation: 30
Use egag's advice for starters. fstab won't mount when the mountpoint isn't there.

We'll deal with permissions later.

Do what egag suggested.
 
Old 09-15-2004, 09:17 PM   #6
joker20
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware/Ubuntu/CentOS
Posts: 286

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by egag
did you make a mountpoint for it, i.e. "mkdir /mnt/cdrom2" ?
( i think you have to do it yourself...)

egag
ok well i just did the mkdir, and i added the line in mtab and it still wont mount
 
Old 09-15-2004, 09:20 PM   #7
187807
Member
 
Registered: Oct 2003
Location: North Carolina, USA
Distribution: Slackware 11
Posts: 174

Rep: Reputation: 30
Verify that you have a /mnt/cdrom2 directory now.

Restart to be sure it isn't working.
 
Old 09-15-2004, 09:32 PM   #8
joker20
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware/Ubuntu/CentOS
Posts: 286

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by 187807
Verify that you have a /mnt/cdrom2 directory now.

Restart to be sure it isn't working.
nope not working
 
Old 09-15-2004, 09:36 PM   #9
187807
Member
 
Registered: Oct 2003
Location: North Carolina, USA
Distribution: Slackware 11
Posts: 174

Rep: Reputation: 30
Generally, when things don't work there are error messages involved.

What exact command are you issuing to try and mount the cdrom2 and exactly what error are you getting back?
 
Old 09-15-2004, 09:43 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,930

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
BTW you should never modify the mtab yourself. This file is used by the OS to indicate mounted filesystems.

Does /dev/cdrom2 exist? Verify using:
ls -l /dev/cdrom2

I am not to familar with Slack but usually /dev/cdrom is a link to the real device i.e /dev/hdb, /dev/hdc etc. etc. Check to see if you have a device for the location of your cdrom.

You can also tell from the output of the dmesg command. Replace cdrom2 with the real device or you can create a link. If dmesg does not indicate the OS recognizes the device then there are other problems to consider.

BTW is cdrom2 a writer?

Last edited by michaelk; 09-15-2004 at 09:45 PM.
 
Old 09-15-2004, 09:48 PM   #11
joker20
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware/Ubuntu/CentOS
Posts: 286

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by michaelk


BTW is cdrom2 a writer?
yes
 
Old 09-15-2004, 09:49 PM   #12
joker20
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware/Ubuntu/CentOS
Posts: 286

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by 187807
Generally, when things don't work there are error messages involved.

What exact command are you issuing to try and mount the cdrom2 and exactly what error are you getting back?
ount: special device /dev/cdrom2 does not exist
 
Old 09-15-2004, 09:54 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,930

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Does slack 10 using a 2.6 kernel?

If you change /dev/cdrom2 to the actual device i.e. /dev/hdb (change hdb to the actual location of the drive) you should be good to go.

FYI hindsight is always 20/20 buy providing as much info as possible with the first post will help us to help you faster.

Last edited by michaelk; 09-15-2004 at 10:00 PM.
 
Old 09-15-2004, 10:00 PM   #14
joker20
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware/Ubuntu/CentOS
Posts: 286

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by michaelk
Does slack 10 using a 2.6 kernel?

If you change /dev/cdrom2 to the actual device i.e. /dev/hdb (change hdb to the actual location of the drive) you should be good to go.

FYI hindsight is always 20/20 buy providing as much info as possible with the first post will help us to help you faster.
im not sure, how could i find out?
 
Old 09-15-2004, 10:03 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,930

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
The command is:
uname -r
 
  


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
fstab question Lleb_KCir Linux - General 2 04-12-2005 02:11 AM
fstab question onironaut Linux - Newbie 3 03-24-2005 03:49 PM
fstab question cjstm Linux - Newbie 1 12-12-2004 03:46 PM
question about /etc/fstab nny0000 Slackware 6 04-27-2004 08:42 PM
i have an fstab question... isajera Linux - General 7 12-21-2001 03:48 PM


All times are GMT -5. The time now is 03:36 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration