Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/dev

Status
Not open for further replies.

funstur

Technical User
Feb 15, 2001
66
GB
Can anybody advice me how to check for new device such as extra disks so I can mount them via fstab. I have tried cdrecord --scanbus. utils etc.

MT's funstur
 
For some devices U need just to run MAKEDEV (scrip from /dev/), but that are just devices, like serial, apralel ports, scsi adapters, but no direct hardware devices. For them you usually need module in kernel. EG if U want to mount windows hardrive, you need /dev/hdxx device and also vfat support in kernel. And probably support for yoour hardrive, if it's not a standart one.
Try to download som linux kernel sources and browse the Documentation directory.
bubak
 
Hi,



Not sure what you want really... For ide you can do :



cat /proc/ide/hd*/model



for scsi



cat /proc/scsi/scsi



If you mean partitions you have to do a list version of fdisk (as root) :



for ide drives:

/sbin/fdisk -l /dev/hda

/sbin/fdisk -l /dev/hdb

etc ..

for scsi

/sbin/fdisk -l /dev/sda

/sbin/fdisk -l /dev/sdb

etc..



The linux devices list is here --> .




Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top