-   Linux - Hardware (
-   -   fstab and devices (making) (

TheBman 12-27-2003 05:33 PM

fstab and devices (making)
fresh install of LRs Creme 13, cdrw's (hdc&hdd) not showing up in fstab

how do i go about getting them (devices) made. Do i simply add them to fstab? Or do i have to do some type of MAKEDEV command prior to?

know how to compile the kernel for needed scsi support for drives and setting links to them, but unsure about "new" devices.

Have always used Slack which added them to fstab automatically.

Your help is appreciated.

hw-tph 12-27-2003 07:58 PM

If Linux picked up your CDRW's on boot (try dmesg | grep hdc) you should be able to just add them to /etc/fstab.

If you have one CD-ROM with SCSI emulation and one without, the corresponding fstab entries could look something like this (if hdd is using ide-scsi):

/dev/scd0        /mnt/burner        iso9660        ro,user,noauto                0        0
/dev/hdc        /mnt/cdrom        iso9660        ro,user,noauto                0        0


TheBman 12-27-2003 08:48 PM

will try, thank you

TheBman 12-29-2003 08:15 PM

ok, have LFS only of LRs creme 13 installed, Linux 2.4.23, self compiled with scsi support for cdrw's.

dmsg | grep hdc returns : dmsg command not found

ls -a /dev/cdrom returns /dev/cdrom

ls -a /dev/hdc returns /dev/hdc

have link set as : ln -sf /dev/scd0 /dev/cdrom

fstab reads: /dev/cdrom /mnt/cdrom iso9660 ro,user,noauto 0 0

do not have cdrtools installed in order to run cdrecord -scanbus

always has been 0,0,0 on slackware

can you advise please, have many programs I want to add to LFS install, but on cd, much faster than ppp!


hw-tph 12-29-2003 08:28 PM

You forgot the "e" in dmesg. :)

You need to supply the ide-scsi options at boot-time in order for the scd0 device to be usable, I suppose you know that (append "hdc=ide-scsi" or whatever in grub.conf or lilo.conf).

ls -a /dev/hdc isn't really very helpful. Try something ls -l /dev | grep hdc instead. ls -l /dev | grep cdrom will probably return many results if you have devices (cdrom?, scd?, sg?, etc) owned by the cdrom group.

I suggest you install cdrtools or cdparanoia if you want to verify that the devices work.


TheBman 12-29-2003 08:44 PM

you were correct, I did forget the "e" in dmesg.

runnning dmesg | grep hdc returns:

hdc: CD-RW 48X16, ATAPI CD/DVD-ROM drive
hdc: attached ide-scsi driver

ls -l /dev | grep hdc returns:

brw-rw---- 1 root disk 22, 0 Dec 29 22:20 hdc
**********************************hdc 1-16

ls -l /dev | grep cdrom returns:
lrwxrwxrwx 1 root root 9 Dec 30 00:02 cdrom -> /dev/scd0

TheBman 12-29-2003 08:46 PM

never used grub before, researching how to add "ide-scsi" grub now

hw-tph 12-29-2003 08:58 PM

The " hdc: attached ide-scsi driver" message seems to indicate it's already there. :) That should mean that /dev/scd0 is there and the cdrom link (/dev/cdrom) is correct.

grep dmesg for hdd and see what that turns up. If you get a similar ide-scsi message there it will probably be called /dev/scd1 instead of /dev/hdd.

Try mounting the drives in Linux. Pop in a data CD (one with data on it, not unwritten) and try to mount it. Create the mount points (directories) /mnt/cdrom and /mnt/cdrom1 (or whatever - mine are called "cdrom" and "burner" respectively) and then mount them from the command line: mount -t iso9660 /dev/cdrom /mnt/cdrom to mount the first and mount -t iso9660 /dev/hdd /mnt/cdrom1 for the other. If hdd doesn't want to play, try mounting it as mount -t iso9660 /dev/scd1 /mnt/cdrom1 instead. If that works you'll know what to put in /etc/fstab. :)


TheBman 12-29-2003 09:08 PM

you ARE the MAN! I knew I had to do something in order to have the device recognized ( mkdir /mnt/cdrom) couldn't remeber to save my life. I ran mount /mnt/cdrom cd /mnt/cdrom an ls -a /mnt/cdrom and all was well... I thank you very, very much for your assistance

hw-tph 12-29-2003 09:17 PM


Glad I could be of help! :)


TheBman 12-29-2003 09:26 PM

I gave you a :-) on affero!

hw-tph 12-29-2003 09:28 PM

I need to check out what that is. I see people refer to it in the signatures here. :)


TheBman 12-29-2003 09:52 PM

seems as though you can make money from it...or they can...not sure. Sorry I didnt send money, just a poor boy trying to make a living, sure you understand

genghis 12-31-2003 10:26 AM

mount /dev/hdb1 /mnt/xp -t ntfs -r -o umask=0222

ok every time i boot i have to run this command to mount ntfs
can any one help me change this into a valid fstab entry.....the one i have dosent work! so that it will mount on start up
thanks !

hw-tph 12-31-2003 10:55 AM

Try this:

/dev/hdb1 /mnt/xp ntfs umask=0222,ro 0 0
If it works you should be able to just to a mount /mnt/xp and at the next boot it should be mounted automatically.


All times are GMT -5. The time now is 11:50 AM.