louwrentius / showtools

Shows detailed disk or network device information
BSD 3-Clause "New" or "Revised" License
122 stars 17 forks source link

show disk generate ValueError : invalid literal for int() with base 10 #2

Closed ghost closed 4 years ago

ghost commented 10 years ago

Hi

When i try to execute a show disk i get an error.

root@ubuntu:/opt/showtools# ./show disk Traceback (most recent call last): File "./show", line 688, in main() File "./show", line 146, in main devicedata = process_device(device, args) File "./show", line 464, in process_device disksize = get_disk_size(dev) File "./show", line 289, in get_disk_size gb = int(bytes) / 1000000000 ValueError: invalid literal for int() with base 10: '257935360\xc2\xa0octets'

show net is working correctly. System : Ubuntu 14.04 (full updated 19/06/2014) Branch : master

louwrentius commented 10 years ago

can you give me the output of fdisk -l for all unique drive models?