View Full Version : [ubuntu] finding hard drive details
May 23rd, 2008, 03:16 PM
can anybody tell me what terminal command i can use to show the condition of my hard drive?
i know the drive has 3 partitions on it...but i am not sure which partition is the spare empty partition for installing winXP...
my other two partitions are a swap and the main Linux partition for my distro
i know this is a very simple Linux question but i was looking for a quick answer here
May 23rd, 2008, 03:20 PM
Show smart info:
sudo apt-get install smartmontools
smartctl -a /dev/DEVICE
Show connected drives with some info:
sudo fdisk -l
Test read and write speeds
hdparm -tT /dev/DEVICE
replace DEVICE with your hdd, probably hda or sda
May 23rd, 2008, 03:25 PM
Thanks for that.
so there is a small tool to download.
will try it.
May 23rd, 2008, 03:26 PM
yes...the smartmontools package is great.
If you are looking for alot of information smartctl with fulfill that wish. It might seem daunting at first, one of the things to look for though is reallocated sectors.
May 23rd, 2008, 03:30 PM
It sounded in the original post that he just wanted to know how the drives where partitioned etc.
System>Admin>System Monitor File system tab can do that. As long as all drives are mounted.
May 23rd, 2008, 03:36 PM
/dev/sda1 BOOT size is 10241437 83 Linux
/dev/sda2/ 1028160 Linux swap / solaris
/dev/sda3/ 18032962 linux
so this means to me that the 18 gig partition is the spare...it's never been formatted with fat32.....so i suposse it would default to Linux format file type
May 24th, 2008, 06:41 AM
you lost me....can you post all the of the fdisk output?
September 22nd, 2011, 06:34 AM
If you're inclined towards GUI tools; "Disk Utility" is another way of getting that information
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.