You are not logged in.

#1 2013-12-07 12:15:09

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 390
Website

[SOLVED] How to cancel systemd-fsck during reboot after power failure.

Hello

If power fails (or if I, for any reason, force a physical shutdown ) on my computer, it will display during boot :

systemd-fsck[171] : arch_data was not cleanly unmounted, check forced

And then hangs for a long time (10 minutes ) while checking arch_home partition, wich is a 1T ext4 partition.
then finish the boot.

Sometimes i want this behavior, but i may need to have my computer up and running as fast as possible, and i don't seem to be able to cancel this fsck.

Ctrl+C, or escape have no effect.

How to allow cancelation of system-fsck for this boot, postponing it for the next boot ?

my fstab :

# 
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>   <dump>  <pass>
# UUID=cfdf8739-d512-4d99-9893-437a6a3c9bf4 LABEL=Arch root
/dev/sda12              /           ext4        rw,relatime,data=ordered    0 2 

# UUID=98b01aa3-0f7f-4777-a941-8e676a68adce LABEL=Arch boot
/dev/sda11              /boot       ext2        rw,relatime 0 2 

# UUID=8909c168-5f1e-4ae7-974c-3c681237af7a LABEL=Arch var
/dev/sda13              /var        ext4        rw,relatime,data=ordered    0 2 

# UUID=a13efc24-cf66-44d0-b26c-5bb5260627a0 LABEL=Arch tmp
/dev/sda14              /tmp        ext4        rw,relatime,data=ordered    0 2 

# UUID=779aeb69-9360-4df0-af84-da385b7117d1 LABEL=Arch home
/dev/sdb4               /home       ext4        rw,relatime,data=ordered    0 2 
/dev/sdb5               /home/glow/data     ext4        rw,relatime,data=ordered    0 2

Last edited by GloW_on_dub (2013-12-07 16:00:06)

Offline

#2 2013-12-07 12:32:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to cancel systemd-fsck during reboot after power failure.

IIRC you can't cancel a fsck in systemd.
Doesn't the fsck tool also fix things?

Offline

#3 2013-12-07 14:58:07

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 390
Website

Re: [SOLVED] How to cancel systemd-fsck during reboot after power failure.

Usually it does, some "orphaned nodes" . However i don't think they are critical and forbid the system to boot.

Offline

#4 2013-12-07 15:04:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to cancel systemd-fsck during reboot after power failure.

Have you tried adding 'fsck.mode=skip' to the kernel command line?
https://github.com/systemd/systemd/blob … fsck.c#L98

Offline

#5 2013-12-07 15:59:49

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 390
Website

Re: [SOLVED] How to cancel systemd-fsck during reboot after power failure.

"fsck.mode=skip" work indeed
I just edit the grub line during the boot, and no fsck are performed, next boot it will be done.
I had think only of cancel the fsck, not skip, so it's a nice work around for my problem and i consider it solved.

Offline

#6 2013-12-07 16:07:28

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] How to cancel systemd-fsck during reboot after power failure.

If you'd rather the filesystem not be fsck'd, why do you explicitly ask for it in /etc/fstab?

Offline

#7 2013-12-07 16:54:34

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 390
Website

Re: [SOLVED] How to cancel systemd-fsck during reboot after power failure.

maybe you did not read my first message.
I do want it to be fsck'd when it is necessary, but sometimes i want to boot directly, even if systemd want to fsck.

Offline

#8 2013-12-08 11:52:54

Kilzool
Member
From: Ireland
Registered: 2010-08-04
Posts: 232

Re: [SOLVED] How to cancel systemd-fsck during reboot after power failure.

I am a noob.  But what you are saying is like, I got in an accident, but only my front bumper is dented, and I can still run the truck.

I would think if you don't look at the dent, that it might cause more problems for you.
But then, maybe not.

However, good luck.

Last edited by Kilzool (2013-12-08 11:53:55)

Offline

#9 2013-12-08 11:58:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to cancel systemd-fsck during reboot after power failure.

Maybe you can add a menu item to the grub boot menu so you can pick it from the menu instead of editing the grub line by hand?
I'm using syslinux, but I can have menu items that only differ in e.g. 'quiet' parameter:

APPEND root=/dev/sda3 rw init=/usr/lib/systemd/systemd quiet
APPEND root=/dev/sda3 rw init=/usr/lib/systemd/systemd

Everything else is the same.

Offline

#10 2013-12-08 12:41:17

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 390
Website

Re: [SOLVED] How to cancel systemd-fsck during reboot after power failure.

@Kilzool  : Let's say i'm in a skype meeting with my boss, and i got a power failure. should i ask him to wait 10 minutes before i come online again ?

@karol : You're right, this is the right way to do it ! thank you very much !

Offline

Board footer

Powered by FluxBB