How does one determine a USB hard drive capacity in sectors?
Hi All,
How would one determine the capacity in sectors or LBAs of a USB Hard Drive? If I know the USB device number, like from 'lsusb', is there someplace on the system to get other information about the drive? What I want to do is have a program go out and get this information just for the number of LBAs on the drive itself. Partition info doesn't matter for what I am doing. Thanks, Elena Quinn |
I believe /sys/block/sdX/size may be in sectors .. multiplying by sector size seems to give the correct disk space
cheers |
hi equinn,
if you have linux, plug in the USB, and then from the terminal run the command "fdisk -l". I think this should give you the sectors in the USB. Regards. |
All times are GMT -5. The time now is 05:37 AM. |