LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /etc/fstab question (https://www.linuxquestions.org/questions/linux-newbie-8/etc-fstab-question-231114/)

joker20 09-15-2004 08:06 PM

/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?

187807 09-15-2004 08:11 PM

Post your /etc/fstab


Post the contents of your /mnt directory

egag 09-15-2004 08:12 PM

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

egag

joker20 09-15-2004 08:14 PM

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

187807 09-15-2004 08:17 PM

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.

joker20 09-15-2004 08:17 PM

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

187807 09-15-2004 08:20 PM

Verify that you have a /mnt/cdrom2 directory now.

Restart to be sure it isn't working.

joker20 09-15-2004 08:32 PM

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

187807 09-15-2004 08:36 PM

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?

michaelk 09-15-2004 08:43 PM

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?

joker20 09-15-2004 08:48 PM

Quote:

Originally posted by michaelk


BTW is cdrom2 a writer?

yes

joker20 09-15-2004 08:49 PM

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

michaelk 09-15-2004 08:54 PM

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.

joker20 09-15-2004 09:00 PM

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?

michaelk 09-15-2004 09:03 PM

The command is:
uname -r


All times are GMT -5. The time now is 01:48 AM.