External drive not showing true capacity

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

External drive not showing true capacity

Postby pk_fox » Fri Sep 21, 2012 9:57 am

Hi All, I've just dug out a Seagate external usb drive to backup some music data, however when I mounted it , df -h /dev/sdc only reports it as having 494mb, I'm pretty certain it's a 500gb but don't know how to find out - all help gratefully received

output

Filesystem Size Used Avail Use% Mounted on
devtmpfs 494M 0 494M 0% /dev
User avatar
pk_fox
LXF regular
 
Posts: 298
Joined: Wed Apr 13, 2005 1:38 pm
Location: Surrey, UK

Postby ajgreeny » Fri Sep 21, 2012 10:32 am

You need to use that command for a partition, or partitions, to see the proper size, eg df -h /dev/sdc1
Use disk utility (palimpsest) if it's available for your distro and it may well show you a different size to df. It depends on whether the application uses 1000 or 1024 for the calculations.
Xubuntu 12.04 user, and loving it!
ajgreeny
LXF regular
 
Posts: 462
Joined: Wed May 10, 2006 8:18 pm
Location: Oxfordshire.

Postby pk_fox » Fri Sep 21, 2012 10:59 am

Thanks I'll take a look at it
User avatar
pk_fox
LXF regular
 
Posts: 298
Joined: Wed Apr 13, 2005 1:38 pm
Location: Surrey, UK

Postby nelz » Fri Sep 21, 2012 11:39 am

df is for filesystems, not devices, all you are seeing is the size of the /dev/filesystem. To see the sizes of the disk and opartitions, use fdisk

Code: Select all
sudo fdisk -l /dev/sdc
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8577
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK


Return to Help!

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests