GagA// 0n D nEt

It is currently Sun Feb 25, 2018 12:03 am

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Linux: Skip fsck during next (re)boot
PostPosted: Fri Dec 26, 2008 8:27 am 

Joined: Wed Jul 18, 2007 1:14 am
Posts: 181
I have explained the process of forcing the fsck for a system during it's next reboot.

I will now explain the process of ignoring or skipping the fsck during the system boot. At times you don't want the server to be prompting for fsck or rather you don't wish to have the fsck running by it's own. You can skip this by using any of the following methods:

NOTE: It is always recommended for a system admin or a user to allow the running of fsck on the system. fsck automatically detects if the file system requires a check. Normally fsck is initiated by the system init scripts if there is a improper shutdown or inconsistencies in the file system.

Changing the boot time parameters

You can update the boot time options when the grub loads in order to skip any fsck scheduled or automatically detected. You need to add fastboot option to the kernel line while the system boots up. This will skip any fsck schduled for the system.

Or you can make these changes permanent in the grub.conf (/boot/grub/grub.conf). The following is an example of the modified kernel line:

kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/ rhgb quiet fastboot

Using shutdown command

You can use the -f option while using the shutdown command for rebooting the server. This will skip any fsck during the next reboot.

The following is the command that you can use:
[[email protected] ~]# shutdown -rf now

Modifying the fstab

The third option is to modify the fstab file (/etc/fstab). All you need to do is to change the fsck priority value for the file system(s) to 0. This would mean that the file system in question will not be checked by fsck during the reboot.

In case you aren't aware of the location of fsck order in the fstab file, please note that it will be the 6th column in this file.

The first one being label or partition device, the second one the mount point, the third one defines the file system type, the fourth one defines the mount options, the fifth one defines the dump options and the sixth option defines the fsck priority.

Here is an example of modified fstab entry for a specific partition to be ignored for an fsck:
LABEL=/                 /                       ext3    defaults        1 0

Note: If the sixth field is not present or zero, a value of zero is returned and fsck will assume that the filesystem does not need to be checked.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group