Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What do we use as /forcefsck nowadays?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Wallsandfences
Guru
Guru


Joined: 29 Mar 2010
Posts: 307

PostPosted: Thu Jan 18, 2018 3:14 pm    Post subject: What do we use as /forcefsck nowadays? Reply with quote

Hi,
I'm having some strange behavoiur with the root file system and want to run fsck on /dev/sda2

however.
Code:
touch /forcefsck
didn't work. How am I supposed to check the / - file system? I'm on systemd, and
Code:
uname -ra
Linux eg-server 4.14.14-gentoo #1 SMP Thu Jan 18 10:41:02 CET 2018 x86_64 AMD Athlon(tm) II X4 630 Processor AuthenticAMD GNU/Linux
in case it matters

EDIT: some different tool perhaps, since
Code:
tune2fs -l /dev/sda2 | grep Last\ c
Last checked:             Sun Dec 30 00:55:30 2012
?
Back to top
View user's profile Send private message
fturco
Guru
Guru


Joined: 08 Dec 2010
Posts: 508
Location: Italy

PostPosted: Thu Jan 18, 2018 3:41 pm    Post subject: Reply with quote

Try adding the fsck.mode=force boot parameter to the kernel.
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1563

PostPosted: Thu Jan 18, 2018 9:22 pm    Post subject: Reply with quote

How 'bout using good, old fashioned
shutdown -r -F now
:?:
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6120
Location: Saint Amant, Acadiana

PostPosted: Thu Jan 18, 2018 9:31 pm    Post subject: Reply with quote

Even systemd may have documentation. Or not ... lets see ... Duck . Duck . yee!

https://www.freedesktop.org/software/systemd/man/systemd-fsck@.service.html
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum