LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-28-2004, 06:31 PM   #1
Garibaldi3489
Member
 
Registered: Oct 2004
Posts: 172

Rep: Reputation: 30
Help with Fstab


Could someone help me configure my fstab file to work with all my devices? I am running a special flavor of Slackware called Topologilinux (runs off an image file, but boots into "real mode"). I have 1 hd partition (windows), which it recognizes fine. I have three cd drives, a usb external CD-RW drive, which it recognizes because I had set that as my main drive during setup, an internal DVD+RW drive, and an internal CDROM. The internal CDROM and DVD+RW drive aren't recongized. I tried modifying fstab, but I'm not sure if I'm doing it right. What specifically should I put into fstab (and where) to mount these 2 cd drives? Here is my fstab file:
Quote:
# Format:
# <file system> <mount point> <type> <options> <dump> <pass>

# This is for a loop device as root linux system.
/dev/loop7 / auto defaults 1 1

# the CD and the floppy
/dev/cdrom /mnt/cdrom iso9660 users,defaults,noauto,ro,user 0 0
/dev/fd0 /mnt/floppy auto users,defaults,noauto,user 0 0

# proc file system:
proc /proc proc defaults 0 0

# Unix98 devpts filesystem:
#none /dev/pts devpts gid=5,mode=666 0 0

# This is a loop device swap file
/dev/loop6 none swap sw 0 0

#if you have other partitions you want like windows partitions
#add it below here
/dev/cdrom2 /mnt/dvd-rw iso9660 users,defaults,noauto,user,ro 0 0
/dev/cdrom3 /mnt/cdroma iso9660 users,defaults,noauto,user,ro 0 0
As you can see the last 2 lines are my attempts at modifying it to recognize the cdroms, it didn't work.
Any ideas?
 
Old 11-28-2004, 07:09 PM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
what errors do you get when you try to mount a cd ?
try : mount /mnt/dvd-rw
and : mount -t iso9660 /dev/cdrom2 /mnt/dvd-rw
( you'll get some output...)

and do these mountpoints exist ( like /mnt/dvd-rw ) ?

and do you have 3 cd-drives ?

egag

Last edited by egag; 11-28-2004 at 07:11 PM.
 
Old 11-28-2004, 08:55 PM   #3
Garibaldi3489
Member
 
Registered: Oct 2004
Posts: 172

Original Poster
Rep: Reputation: 30
Quote:
what errors do you get when you try to mount a cd ?
try : mount /mnt/dvd-rw
and : mount -t iso9660 /dev/cdrom2 /mnt/dvd-rw
( you'll get some output...)

and do these mountpoints exist ( like /mnt/dvd-rw ) ?

and do you have 3 cd-drives ?
Yes, I have 3 cd drives.
How do I create that mount point to begin with?
Here is my error:
Quote:
mount /dev/dvd-rw
[mntent]: warning: no final newline at the end of /etc/fstab
mount: can't find /dev/dvd-rw in /etc/fstab or /etc/mtab
I'm just not sure where to begin when adding new devices. When I use knoppix or slax it auto detects these drives.
 
Old 11-28-2004, 11:13 PM   #4
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
Could you post the results of "dmesg | grep cd"
That should give us the device names they are being pinned to. Then we can get your fstab table setup.
 
Old 11-29-2004, 07:09 AM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
quote
---------------
mount /dev/dvd-rw
[mntent]: warning: no final newline at the end of /etc/fstab
mount: can't find /dev/dvd-rw in /etc/fstab or /etc/mtab
-------------endquote

well....i suggested :mount /mnt/dvd-rw
an entry " /dev/dvd-rw " is not in the fstab ( so that's an error.)

first: make the 2 mountpoints ( they are just 2 empty dir. ) : " mkdir /mnt/dvd-rw " ( you can guess the other )

then do as ringwraiht suggests to find the device-names.
post it here if you need any help in writing the fstab-lines.

egag
 
Old 11-29-2004, 09:01 PM   #6
Garibaldi3489
Member
 
Registered: Oct 2004
Posts: 172

Original Poster
Rep: Reputation: 30
Here is dmesg | grep cd... it doesn't look like much help though:
Quote:
dmesg | grep cd
hdc: attached ide-cdrom driver.
hdd: attached ide-cdrom driver.
ehci_hcd 00:02.2: nVidia Corporation nForce2 USB Controller
ehci_hcd 00:02.2: irq 5, pci mem dcb18000
ehci_hcd 00:02.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
I also tried mount /mnt/dvd-rw, same result.
Any ideas on what I should write for fstab?
 
Old 11-30-2004, 07:55 AM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
------
/dev/hdc /mnt/dvd-rw iso9660 users,defaults,noauto,user,ro 0 0
/dev/hdd /mnt/cdroma iso9660 users,defaults,noauto,user,ro 0 0
------
those lines should look smth. like that.
but i saw only 2 cd-drives in the dmesg-output ( hdc &hdd )
( i think the dvd is missing )

if you plan to play dvd's it's best to make that drive hdc ( =master on second ide ).

look in the /dev directory for hd? devices ( you'll have hda as harddisk, and there should be hdb,hdc,hdd )
also there will be at least a /dev/cdrom, wich is linked to hdb -c or -d.
( that one is the drive used by the first fstab line )
the other 2 devices should be used in the other 2 lines.
and make the mountpoints as said before.

don't understand this " cdrom: open failed ", but first get the fstab correct, and then solve the rest

egag
 
Old 12-03-2004, 07:06 PM   #8
Garibaldi3489
Member
 
Registered: Oct 2004
Posts: 172

Original Poster
Rep: Reputation: 30
sorry it took me so long to get back to this. I made the directories at /mnt/dvd-rw and /mnt/cdrom1, but it still doesn't seem to be working. The Knoppix Live-cd (and Slax for that matter) recognize all of them. Could I just copy and use that part of their fstab file in my hdd install one?
 
Old 12-03-2004, 07:18 PM   #9
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
yes, i think you can copy the lines right into the other fstab, but make sure the mountpoints ( = /dev/cdrom1....etc.) exist.

egag
 
  


Reply



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 problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 05:54 AM
What is fstab? sceadu Linux - Newbie 2 11-02-2004 07:25 PM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM
Help with /etc/fstab wawosz Linux - General 3 04-24-2003 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:17 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
Open Source Consulting | Domain Registration