The Beginner's Guide To Linux Disk Utilities
The Beginner's Guide To Linux Disk Utilities
The Beginner's Guide To Linux Disk Utilities
How-To Geek
Knowing how to check the condition of your hard disk is useful to determine when to replace your hard disk. In todays article, we will show you some Linux disk utilities to diagnose the health of your hard disk. Image by Scoobay
S.M.A.R.T System
Most modern ATA and SCSI hard disks have a Self-Monitoring, Analysis, and Reporting Technology (SMART) system. SMART hard disks internally monitor their own health and performance. The SMART tool assesses the condition of your hard disk based on: the throughput of the hard disk, the seek errors rate of the magnetic heads, and other attributes that your hard disk manufacturer built into their hard disk. Most implementations of SMART systems allow users to perform self-tests to monitor the performance and reliability of their hard disks. The simplest way to perform a SMART system test with Ubuntu is using the Disk Utility under the System > Administration menu.
http://www.howtogeek.com/howto/37659/the-beginners-guide-to-linux-disk-utilities/
1/6
3/21/2014
The disk utility lets you see the model, serial number, firmware, and the overall health assessment of the hard disk, as well as whether a SMART system is enabled on the hard disk.
The SMART data button lets you see the SMART features of your hard disk.
The Run Self-test button lets you initiate a short,extended, or a conveyance self-test on the hard disk.
http://www.howtogeek.com/howto/37659/the-beginners-guide-to-linux-disk-utilities/
2/6
3/21/2014
When you execute these tests, youll see a progress meter, letting you see how far through the test is and what the estimated time of completion is.
The Attributed section lets you see the errors and self-test information.
http://www.howtogeek.com/howto/37659/the-beginners-guide-to-linux-disk-utilities/
3/6
3/21/2014
Of course, there are some situations where we have to use the command line tool to check our file system. For example when we are using a headless system, when our Linux box fails to boot, or when we simply want to show off our command line Kungfu skills to our friends. At first, the FSCK command line tool looks like something that only a computer geek can handle; But you will find that FSCK is a very easy tool to use. There is one thing to note before you run FSCK; You need to unmount the file system using the umount command. Fixing a mounted file system with FSCK could end up creating more damage than the original problem. s u d ou m o u n t/ d e v / s d b
This command checks an ext4 file system (/dev/sdb) for inconsistencies. You should replace /dev/sdb with your own partition. You can run the fdisk command to find out your system partitions: s u d of d i s kl
The mount count parameter tells us that Ubuntu scans our hard disk after 33 disk mounts.
http://www.howtogeek.com/howto/37659/the-beginners-guide-to-linux-disk-utilities/
4/6
3/21/2014
This command will re-configure Ubuntu to scan our hard disk after 35 hard disk mounts when the system boots. Note: change /dev/sda1/ with your own partition
Bad Blocks
A bad sector is a sector on a computers disk drive that cannot be used due to permanent damage (or an OS inability to successfully access it), such as physical damage to the disk surface. There are two ways to detect bad sectors in Linux: you can use the Disk Utility GUI, or if you are a command line geek like us, you can use the badblocks command to check your hard disk for bad sectors: s u d ob a d b l o c k sv/ d e v / s d b 1
Badblock will give us the number of bad sectors in our hard disk.
You have two options when you see bad blocks. You can either look for a new hard disk, or mark these bad blocks as unusable hard disk sectors. This involves two steps: First we have to write the location of the bad sectors into a flat file. s u d ob a d b l o c k s/ d e v / s d b>/ h o m e / z a i n u l / b a d b l o c k s
After that, we need to feed the flat file into the FSCK command to mark these bad sectors as unusable sectors. sudo fsck -l bad-blocks /dev/sdb
FSCK, Badblocks, and Disk Utility are some of the disk utilities that we often use to scan our hard disks. Do share with the other fellow readers if you know other Linux disk utilities to scan hard disks.
Zainul spends his time trying to make technology more productive, whether its Microsoft Office applications, or learning to use web applications to save time.
http://www.howtogeek.com/howto/37659/the-beginners-guide-to-linux-disk-utilities/
5/6
3/21/2014
Warren Buffett 7 of the Worst The Secret Way to Inside Look At Indicator Signals Defending Champions Save Hundreds of Porsches 2015 911 Collapse in Stock M in History Dollars on 5-star Ho GT3 RS
New sm ax ftbpro A Luxury Travel Blog Segm ent.com
20 World's Most 10 Most Dangerous Peaceful Countries to People Foods for Live Dogs
Am erikanki Wom anitely
http://www.howtogeek.com/howto/37659/the-beginners-guide-to-linux-disk-utilities/
6/6