Advertisements

Skip or force fsck when rebooting a Linux server

If you issue this command, the system will create a file /fastboot

root@linux:~ # shutdown -rf now

or

root@linux:~ # touch /fastboot
root@linux:~ # shutdown -r now

You can also pass the arguments to grub prompt to skip fsck on boot

grub> kernel /vmlinuz-2.6.16.60-0.66.1-smp root=/dev/rootvg/rootlv vga=0x317 resume=/dev/rootvg/swaplv splash=silent showopts fastboot rootdelay=10

Create a /forcefsck file or reboot your computer with -F option to force a fsck on boot

root@linux:~ # shutdown -rF now

or

root@linux:~ # touch /forcefsck
root@linux:~ # shutdown -r now

Advertisements
%d bloggers like this: