You are not logged in.

#1 2009-09-02 08:05:46

Arcath
Member
Registered: 2008-04-08
Posts: 27

Filesystem Check Failed

I had a power cut destroying the 150days of uptime on my server, so of course when it booted i expected it to do a file system scan. i left it for a while (2.5TB would take some time). And now its failing every boot.

After unplugging all the HDDs bar the system HDD, i booted again and its still throughing up an error even tho as far as i can tell the broken file system is infact swap, but i could be wrong. ive run e2fsck on /dev/sda1 (/boot) and it passes no problem, /dev/sda3 (/) and it passes and /dev/sda4 (/home) and that passes no problem. the only problem is with /dev/sda2 (swap).

Offline

#2 2009-09-02 08:23:08

Arcath
Member
Registered: 2008-04-08
Posts: 27

Re: Filesystem Check Failed

Right after some more tests all the hard drives pass and report a clean test appart from /dev/sda2.

I have commented out the swap mount line from /etc/fstab, but it still scans it and prevents the server from booting

Offline

#3 2009-09-02 08:33:35

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: Filesystem Check Failed

Uncomment the line about the swap partition and make sure it has "0" in the last column.

From fstab(5):

The  sixth field, (fs_passno), is used by the fsck(8) program to deter‐
mine the order in which filesystem checks are done at reboot time.  The
root  filesystem  should  be specified with a fs_passno of 1, and other
filesystems should have a fs_passno of 2.  Filesystems within  a  drive
will  be checked sequentially, but filesystems on different drives will
be checked at the same time to utilize  parallelism  available  in  the
hardware.   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.

Last edited by foutrelis (2009-09-02 08:35:29)

Offline

Board footer

Powered by FluxBB