You are not logged in.

#1 2008-12-04 03:25:46

vagif
Member
Registered: 2007-12-26
Posts: 37

How to automatically fsck on reboot after crash ?

On my 32 bit Arch linux, whenever my laptop crashed, it automatically fsck harddrives. It was like that rom beginning, i do not remember setting up anything for it.
After i installed 64 bit Arch, it stopped doing that. Now i have to wait untill it unsuccesfully tries to run X and gnome, then login, manually fsck and reboot.

So my question is, How to make Arch automatically fsck on reboot after crash ?

Offline

#2 2008-12-04 03:30:20

ssl6
Member
From: Ottawa, ON, CA
Registered: 2007-08-30
Posts: 594

Re: How to automatically fsck on reboot after crash ?

not sure if it helps, im not the most knowledgable here, but theres something about that in teh fstab article here http://wiki.archlinux.org/index.php/Fstab


this is a signature

Offline

#3 2008-12-04 04:54:59

vagif
Member
Registered: 2007-12-26
Posts: 37

Re: How to automatically fsck on reboot after crash ?

ssl6: That was it! Thanks. For some reason my fstab file was broken.

Offline

#4 2008-12-04 11:39:34

nuttygamergeek
Member
Registered: 2008-11-24
Posts: 15

Re: How to automatically fsck on reboot after crash ?

After a bad crash I boot to a Ubuntu Live CD (very handy yikes) and manually force a check of every partition.  At boot the journal for my XFS is played back silently but never checked.  I probably don't need to manually check but I like to make sure and I don't have a crash that often!

Offline

#5 2008-12-04 16:49:53

venky80
Member
Registered: 2007-05-13
Posts: 1,002

Re: How to automatically fsck on reboot after crash ?

but would it automatically fsck after a crash? I dont see any such setting in FSTAB


Acer Aspire V5-573P Antergos KDE

Offline

#6 2008-12-04 17:18:42

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: How to automatically fsck on reboot after crash ?

it's the last column in fstab. You can specify at what round of fsck'ing the fs get checked.

root /dev/sda3 ext3 defaults,noatime 0 1 # gets checked first
boot /dev/sda1 ext2 defaults,noatime 0 2 # get checked after round one (in this case only root) finishes
home /dev/sda4 ext3 defaults,noatime 0 2 # runs at the same time as the boot-partition check

swap none swap defaults 0 0 # this one doesn't get a check


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

Board footer

Powered by FluxBB