You are not logged in.

#1 2010-02-10 00:08:45

Dr.Paneas
Member
From: Thessaloniki,GR
Registered: 2010-01-19
Posts: 13
Website

Skip the filesystem check

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

#2 2010-02-10 00:15:13

davidm
Member
Registered: 2009-04-25
Posts: 371

Re: Skip the filesystem check

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

#3 2010-02-10 08:09:58

teh
Member
From: Tijuana, Mexico
Registered: 2009-07-07
Posts: 374
Website

Re: Skip the filesystem check

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

#4 2010-02-10 09:47:46

ZaQ
Member
Registered: 2009-12-12
Posts: 106

Re: Skip the filesystem check

Instead of deactivating, its maybe better to increase the interval (with tune2fs).

Last edited by ZaQ (2010-02-10 09:48:05)

Offline

#5 2010-02-10 12:21:19

Dr.Paneas
Member
From: Thessaloniki,GR
Registered: 2010-01-19
Posts: 13
Website

Re: Skip the filesystem check

what does 0 2 means anyway ?

Offline

#6 2010-02-10 13:04:52

ZaQ
Member
Registered: 2009-12-12
Posts: 106

Re: Skip the filesystem check

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

#7 2010-02-10 16:54:52

rscholer
Member
From: Gelsenkirchen, Germany
Registered: 2008-07-03
Posts: 48

Re: Skip the filesystem check

Dr.Paneas wrote:

what does 0 2 means anyway ?

You find all need infos with

man fstab

Offline

#8 2010-03-07 23:55:52

CulleyS
Member
Registered: 2010-03-02
Posts: 18

Re: Skip the filesystem check

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

#9 2010-03-07 23:58:10

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Skip the filesystem check

CulleyS wrote:

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

#10 2010-03-08 00:04:36

choener
Member
Registered: 2008-01-10
Posts: 22

Re: Skip the filesystem check

Press Ctrl+C during the fs check to abort and continue booting.

Offline

#11 2010-03-08 03:21:52

CulleyS
Member
Registered: 2010-03-02
Posts: 18

Re: Skip the filesystem check

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

#12 2010-03-08 13:20:54

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Skip the filesystem check

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

#13 2010-03-08 13:34:22

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: Skip the filesystem check

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

#14 2010-03-08 15:02:24

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Skip the filesystem check

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. smile

Offline

#15 2010-03-08 15:11:49

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: Skip the filesystem check

Misfit138 wrote:
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. smile

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 tongue


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

Board footer

Powered by FluxBB