View Full Version : [ubuntu] disk checking

November 11th, 2008, 01:27 PM
is there anyway to set up an automatic disk check on reboot? Like windows?

November 11th, 2008, 01:38 PM
sudo tune2fs -l /dev/sda1 - this shows how many boots to next check

sudo tune2fs -c 50 /dev/sda1 - this sets the check to every 50 boots. Mine is set to this. you could set it to 1 I suppose.

sudo touch /forcefsck - this forces a check next boot.