You are not logged in.
Pages: 1
How can I skip the filesystem checking during the boot procedure ?
Is the anyway that I can move this operation to background using '@' operator ?
Offline
One way if you insist on doing so is using the /etc/fstab file: http://www.everyjoe.com/newlinuxuser/ex … stab-file/
Given the nature of fsck and the way it works, I don't think it can or should really be backgrounded.
Offline
In your /etc/fstab...
Replace the '1' at the end of line in the disk you want to skip for a beautiful '0'.
Like:
UUID=hjkl666hjkl666qwerty666qwerty666 /home ext3 defaults 0 0
arst
Offline
Instead of deactivating, its maybe better to increase the interval (with tune2fs).
Last edited by ZaQ (2010-02-10 09:48:05)
Offline
what does 0 2 means anyway ?
Offline
from arch wiki:
<pass> fsck reads the <pass> number and determines in which order the file systems should be checked. Possible entries are 0, 1, and 2. The root file system should have the highest priority, 1, all other file systems you want to have checked should get a 2. File systems with a <pass> value 0 will not be checked by the fsck utility.
I think 2 forces a reboot or something if it finds an error
More infos: http://man.he.net/man8/fsck
Last edited by ZaQ (2010-02-10 13:13:03)
Offline
what does 0 2 means anyway ?
You find all need infos with
man fstab
Offline
Yeah, I find this filesystem check to be very frustrating. I was giving a presentation and there was a power surge and my computer needed to be rebooted. I then sat there for about 10 minutes waiting for my computer to boot up because I was waiting to complete a filesystem check. I understand that this is an important feature, but being able to do a quick boot is essential in some situations...
Offline
Yeah, I find this filesystem check to be very frustrating. I was giving a presentation and there was a power surge and my computer needed to be rebooted. I then sat there for about 10 minutes waiting for my computer to boot up because I was waiting to complete a filesystem check. I understand that this is an important feature, but being able to do a quick boot is essential in some situations...
10 minutes? What fs were you using?
BTW, 0 skips the check, 1 is highest priority (checked first) and any filesystems specified with a 2 will be checked simultaneously, after root (1).
Offline
Press Ctrl+C during the fs check to abort and continue booting.
Offline
I had two 500 GB filesystems, both ext3. I don't know why, but it just took a long time to boot up. I did press ctrl+c, but it forced a reboot and I had to go through the process again.
Offline
IME ext3 takes a very long time to fsck (ext2 is far worse even). One of the reasons I don't use it. I have been using JFS for years now without issue on most machines, fscks are very fast fwiw.
Offline
There must be a way of telling the system to check filesystems on shutdown rather than boot up which might make more sense to some people.
Unfortunately I don't know how...
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
There must be a way of telling the system to check filesystems on shutdown rather than boot up which might make more sense to some people.
Unfortunately I don't know how...
You could do
shutdown -rF now
or
touch /forcefsck
Which will force a fsck on next boot. Obviously, you could also alias shutdown to shutdown -rF or substitute with the -rF switch in rc.local.shutdown or something.
Offline
toad wrote:There must be a way of telling the system to check filesystems on shutdown rather than boot up which might make more sense to some people.
Unfortunately I don't know how...
You could do
shutdown -rF now
or
touch /forcefsck
Which will force a fsck on next boot. Obviously, you could also alias shutdown to shutdown -rF or substitute with the -rF switch in rc.local.shutdown or something.
Cheers misfit. A good start. Still not quite purrfect though as it requires some kind of user input...
I was more after automatic fstab kind checking - but on shutdown. Shouldn't be too difficult to do if only one knew how fsck was called up in the first place. Suppose the wiki's boot explanation would be a place to start... But hey, I'm not fussed at the mo, got work to do
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
Pages: 1