Changes

Linux Disk Utilities

1,473 bytes added, 03:23, 26 February 2014
/* Example 3: Disk Utility, Check Filesystem */
The following lines were added (+) and removed (-):
The File System Check (fsck) is a command line utility that can be used to check the condition of the hard drive. The File System Check (fsck) is a command line utility that can be used to check the condition of the hard drive.  === Example 3: Disk Utility, Check Filesystem === fsck -f /dev/hdaX You should not use fsck on a mounted drive.  In general it is not safe to run fsck on mounted filesystems. The only exception is if the -n option is specified, and -c, -l, or -L options are not specified. However, even if it is safe to do so, the results printed by fsck are not valid if the filesystem is mounted.  Running fsck on a mounted file system is not recommended because logically, it will be trying to analyze for inconsistencies on effectively a changing drive. The action of modifying the filesystem means that anything that has been analyzed will have to be rechecked again and again, because it just keeps changing. You can force an fsck on most linux distributions for a mounted drive, while it is not yet mounted, during the next reboot. sudo touch /forcefsck shutdown -r now Or, the shutdown command with parameters that will force a fsck check on reboot shutdown -rF now That says "reboot and fsck before mounting!" === Example 3: Disk Utility, Check Filesystem and GParted ==={{:Sparse Entry}}Disks 3.4.1 (aka palimpsest, gnome-disk-utility, or Disk Utility) underwent a huge UI change.  Users of Ubuntu 12.04 Precise will not experience this issue because Disks 3.4.1 is only available via PPA or in the next Ubuntu release, 12.10 Quantal. Disks 3.3+ is a complete rewrite of the old gnome-disk-utility (aka Palimpsest). It no longer appears to include an option to check filesystems Use GParted to check filesystems instead. Select the partition you want to check, click on Partition...Check in the menu  
Bureaucrat, administrator
16,192
edits