making removable block devices appear is sysfs
How do I make removable block devices appear in sysfs? When I boot these devices are missing the block entry in their sysfs node. If I mknod a device node by hand and mount them the block entries appear and udev creates the devices nodes as expected.
So, how do I make the sysfs block entries appear for removable devices without first making a node and mounting them? You have to have the block entry before udev will automatically create the device node.
==Jon Smirl
[email protected]
__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 4 lines · Jon Smirl
How do I make removable block devices appear in sysfs? When I boot these devices are missing the block entry in their sysfs node. If I mknod a device node by hand and mount them the block entries appear and udev creates the devices nodes as expected.
Again, if the kernel does not show _anything_ in /sys/block, then udev can't do anything about it.
Sorry,
greg k-h
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
I'm running 2.6.4-rc1 and Fedora Core 1. None of my removable devices appear in /sys/block. I'm missing fd0, hdc, hdd. I'm booting directly with udev to an almost empty (console) /dev directory. I agree that udev can't do anything if the entries aren't in /sys/block.
But what do I have to do to the kernel to those entries appear? I know that if I manually create a device node and touch the device the entries will appear. Am I the only person seeing this? I run SMP with ACPI enabled on a hyperthread P4 which may be a little uncommon.
Quoted 6 lines · --- Greg KH
Quoted 4 lines · Jon Smirl
How do I make removable block devices appear in sysfs? When I boot these devices are missing the block entry in their sysfs node. If I mknod a device node by hand and mount them the block entries appear and udev creates the devices nodes as expected.
Quoted 6 lines
Again, if the kernel does not show _anything_ in
/sys/block, then udev can't do anything about it.Sorry,
greg k-h
==Jon Smirl
[email protected]
__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel