Results 1 to 5 of 5
Hi All,
I am developing for a Linux based device for which the HOT PLUG option is deactivated. As part of optimizing the code, we also don't want to create
...
- 03-26-2010 #1Just Joined!
- Join Date
- Mar 2010
- Posts
- 2
SCSI hard disk device node creation
Hi All,
I am developing for a Linux based device for which the HOT PLUG option is deactivated. As part of optimizing the code, we also don't want to create
device files for unused devices. We understand that both USB attached and
fixec SCSI hard disks would create device files like /dev/sda,/dev/sda1 /dev/sdb, /dev/sdb1 etc. Is this understanding correct?
In the case of USB attached SCSI devices, would driver create this device file entry?
How is it created? Can somebody please tell me how it is being created automatically. In case I attach a fixed SCSI hard disk before boot up(and create device file /dev/sda1), would USB SCSI device driver create device files starting from /dev/sdb, automatically
Any clue would be highly helpful to me
Thanks
appucool
- 03-26-2010 #2
It's done by udev, working with HAL and Dbus. Do some googling, read the udev manpage, you'll find plenty of stuff on how it works, including hotplugging.
- 03-27-2010 #3Linux User
- Join Date
- Jan 2005
- Location
- Saint Paul, MN
- Posts
- 262
- 03-30-2010 #4
Please note that only /dev/sda and /dev/sdb nodes are created for hard disk drives. The nodes with numbers at the end represent partitions, not devices. That is, if on /dev/sda you have 2 partitions, you will also see /dev/sda1 and /dev/sda2.
(I suppose you realize that, just wanted to make sure you do
)
- 03-31-2010 #5Just Joined!
- Join Date
- Mar 2010
- Posts
- 2


Reply With Quote

