Determine usb-storage capacity
Dan Nelson
dnelson at allantgroup.com
Sun Jan 24 22:36:14 UTC 2010
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 | grep lba...
Works for all disk devices:
diskinfo /dev/da0
Works for devices attached via CAM:
camcontrol readcap da0
See the respective manpages for more info.
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-questions
mailing list