Changing Mailman Python Scripts for Virtual Host Support
Enforce Coding Standards with PHP_CodeSniffer and Eclipse IDE on Ubuntu Linux
Development Resource Project
Nice n' Easy JQuery Image Rotator
ENUMs, User Preferences, and the MySQL SET Datatype
Using PHP pspell Spell Check Functions with a Custom Dictionary

How to Cancel an fsck Disk Check during Boot on Arch Linux

Monday, 11 June 12, 9:45 am
compton
It's worth routinely checking your hard disks to alert you in advance of an impending disk failure and to tidy up orphaned blocks should they occur (very rare). For normal home users, who of course keep back-ups of important files in other locations, running this check once a month is sufficient, which you set using fs2tune.

However, in Arch Linux the fsck disk checker does not offer the option to abort a disk check once it has started. In Ubuntu for instance, you are told to press Esc to cancel. You can however abort fsck with Ctrl-C, but by default, fsck will then treat the disk as having failed the disk check, and only mount it read-only.

To get round this, create a file called e2fsck.conf in /etc/, and add the following line:
[options] allow_cancellation = true
Now when you cancel a running disk check with Ctrl-C, the disk will be mounted normally. Note that the disk check will run again on next boot.

Another point worth mentioning is that if your filesystem is ext3, seriously consider upgrading it to ext4 as that is considerably faster to disk-check. Check out these links for how-tos:

www.debian-administration.org/article/Migrating_a_live_system_from_ext3_to_ext4_filesystem
maketecheasier.com/how-to-upgrade-from-ext3-to-ext4-without-formatting-the-hard-disk/2009/04/21
 
Leave Comment

/xkcd/ Luke

About This Page