Hello, On Tue, 20 Dec 2011, Felix Miata wrote:
On 2011/12/20 19:26 (GMT) Thomas Hertweck composed:
On 20/12/11 18:59, Istvan Gabor wrote:
At every Nth mount fsck checks a given partition, which takes a long time. Sometimes I do need the computer quickly and don't want to wait until fsck finishes. Is there an option that makes possible to interrupt or cancel file system checking during boot so that the checking would be completed at the next boot? I don't want to disable it or change the max count, I just want occasionally bypass checking at boot. I tried to interrupt fsck by pressing ctrl+c but it resulted in a not normal boot, many partitions were not mounted.
Append "fastboot" as boot parameter when the grub menu shows up. [..] I set all my partitions to either 12m or 0 time count, and 0 mount count, with tune2fs, and either let the init mount process decide if and when a filesystem needs to be repaired before mounting, or delay automatic fsck at least a year.
I set all partitions but the /-partition to "not check" in fstab (0 in last column), and have varying max mount counts. As I have no splash, I see that a FS should be checked (at least ext3 tells you so: [ 232.782545] EXT3-fs (sda2): warning: maximal mount count reached, running e2fsck is recommended ), and I also have a script to check: ,----[ /root/bin/check_mountcount.sh ] | #!/bin/sh | printf "%-10s %4s %4s %s\n" "device" "max" "cur" "mounted on" | echo "---------- ---- ---- ----------···" | | grep 'ext[234]' /proc/mounts | while read device mntpt rest | do | tune2fs -l "$device" 2>/dev/null | \ | awk '/^Mount count/ { cur=$3; } | /^Max.*mount count/{ max=$4; } | END { printf "%-10s %4s %4s %s\n", dev, max, cur, mnt; }' \ | dev="$device" mnt="$mntpt" - | done `---- and if I don't need a partition a while (and little disk anyway), I unmount that partition and run fsck on it. HTH, -dnh -- That's O'Neill with two L's, the other one has no sense of humor. -- Col. Jack O'Neill, Stargate -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org