LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-27-2003, 04:33 PM   #1
TheBman
Member
 
Registered: Nov 2003
Location: Rural Indiana
Distribution: Debian (etch)
Posts: 78

Rep: Reputation: 15
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.

Last edited by TheBman; 12-27-2003 at 04:34 PM.
 
Old 12-27-2003, 06:58 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
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):
Code:
/dev/scd0	/mnt/burner	iso9660	ro,user,noauto		0	0
/dev/hdc	/mnt/cdrom	iso9660	ro,user,noauto		0	0
Håkan
 
Old 12-27-2003, 07:48 PM   #3
TheBman
Member
 
Registered: Nov 2003
Location: Rural Indiana
Distribution: Debian (etch)
Posts: 78

Original Poster
Rep: Reputation: 15
will try, thank you
 
Old 12-29-2003, 07:15 PM   #4
TheBman
Member
 
Registered: Nov 2003
Location: Rural Indiana
Distribution: Debian (etch)
Posts: 78

Original Poster
Rep: Reputation: 15
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!

Thanks
 
Old 12-29-2003, 07:28 PM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
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.

Håkan
 
Old 12-29-2003, 07:44 PM   #6
TheBman
Member
 
Registered: Nov 2003
Location: Rural Indiana
Distribution: Debian (etch)
Posts: 78

Original Poster
Rep: Reputation: 15
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
 
Old 12-29-2003, 07:46 PM   #7
TheBman
Member
 
Registered: Nov 2003
Location: Rural Indiana
Distribution: Debian (etch)
Posts: 78

Original Poster
Rep: Reputation: 15
never used grub before, researching how to add "ide-scsi" grub now
 
Old 12-29-2003, 07:58 PM   #8
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
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.


Håkan
 
Old 12-29-2003, 08:08 PM   #9
TheBman
Member
 
Registered: Nov 2003
Location: Rural Indiana
Distribution: Debian (etch)
Posts: 78

Original Poster
Rep: Reputation: 15
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
 
Old 12-29-2003, 08:17 PM   #10
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
*blush*

Glad I could be of help!

Håkan
 
Old 12-29-2003, 08:26 PM   #11
TheBman
Member
 
Registered: Nov 2003
Location: Rural Indiana
Distribution: Debian (etch)
Posts: 78

Original Poster
Rep: Reputation: 15
I gave you a :-) on affero!
 
Old 12-29-2003, 08:28 PM   #12
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

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

Håkan
 
Old 12-29-2003, 08:52 PM   #13
TheBman
Member
 
Registered: Nov 2003
Location: Rural Indiana
Distribution: Debian (etch)
Posts: 78

Original Poster
Rep: Reputation: 15
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
 
Old 12-31-2003, 09:26 AM   #14
genghis
Member
 
Registered: Mar 2003
Location: trinidad
Distribution: fedora
Posts: 55

Rep: Reputation: 15
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 !
 
Old 12-31-2003, 09:55 AM   #15
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
Try this:
Code:
/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.

Håkan
 
  


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
Juggling USB devices (fstab related) leiavoia Debian 7 01-28-2005 05:38 AM
Editing fstab to mount devices? apachedude Suse/Novell 7 12-03-2004 04:35 AM
fstab and loop devices MBH Linux - Hardware 3 10-21-2004 08:58 AM
how to mount devices not shown in /ect/fstab??? len Slackware 2 12-19-2003 05:01 PM
help with making new fstab gonus Linux - Software 14 10-17-2002 01:23 PM


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

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