Determine usb-storage capacity

2010-01-24 Thread Ivan Borodin
Greetings! A short question: is there a way to determine usb-storage and md-device capacity( for further fdisk and bsdlabel applying ) from within a sh script, in which device's /dev file-name is present? Something similar to atacontrol cap | grep lba...

Re: Determine usb-storage capacity

2010-01-24 Thread Dan Nelson
In the last episode (Jan 25), Ivan Borodin said: Greetings! A short question: is there a way to determine usb-storage and md-device capacity( for further fdisk and bsdlabel applying ) from within a sh script, in which device's /dev file-name is present? Something similar to atacontrol cap