Block Device , fdisk
Hi!
I have a block device module. It works but not the way i need. After i insert module , i have to create partitions with "fdisk" command. What i need is , with inserting module , it shall also create partitions for it. Without using "fdisk" command , it shall create partitions. How can i do it ? |
Probably need to re-think what you need - this belongs in user-space. Maybe use udev to fire off your partitioning code (even sfdisk with a script) when the device you create appears.
|
I know it belongs user-space but it shall be a way to achieve it on kernel-space.
|
All times are GMT -5. The time now is 11:05 AM. |