Re: [systemd-devel] perform fsck on everyt boot

2019-11-11 Thread Michael Biebl
Am Mo., 11. Nov. 2019 um 16:47 Uhr schrieb Lennart Poettering
:
> Well, note that ext4's fsck only does an actual file system check
> every now and then.

Afair this is outdated knowledge. newer e2fsprogs versions no longer
setup ext4 file systems to do regular fscks.
At least on Debian sid, /etc/mke2fs.conf contains

enable_periodic_fsck = 0

Regards,
Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] perform fsck on everyt boot

2019-11-11 Thread Lennart Poettering
On Mo, 11.11.19 13:33, Belisko Marek (marek.beli...@gmail.com) wrote:
65;5802;1c
> Hi,
>
> I'm using systemd 234 (build by yocto) and I've setup automount of
> sdcard in fstab. This works perfectly fine. But I have seen from time
> to time when system goes to emergency mode because sdcard filesystem
> (ext4) have an issue and cannot be mounted. I was thinking about
> forcing fsck for every boot. Reading manual it should be enough to set
> passno (6th column in fstab) to anything higher then 0. I set ti to 2
> but inspecting logs it doesn't seems fsck is performed. Am I still
> missing something? Thanks.

Well, note that ext4's fsck only does an actual file system check
every now and then. Hence: how did you determine fsck wasn't started?

Do you see the relevant fsck in "systemctl -t service | grep
systemd-fsck@"?

Lennart

--
Lennart Poettering, Berlin
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] perform fsck on everyt boot

2019-11-11 Thread František Šumšal
Hello,

FWIK passno > 0 in /etc/fstab configures only order in which the fsck
is performed, not the frequency. To configure the frequency as well,
I'd recommend taking a look at `man systemd-fsck@.service`, especially
the `fsck.mode=force` kernel command line parameter, which should do
exactly what you're trying to achieve.

On 11/11/19 1:33 PM, Belisko Marek wrote:
> Hi,
> 
> I'm using systemd 234 (build by yocto) and I've setup automount of
> sdcard in fstab. This works perfectly fine. But I have seen from time
> to time when system goes to emergency mode because sdcard filesystem
> (ext4) have an issue and cannot be mounted. I was thinking about
> forcing fsck for every boot. Reading manual it should be enough to set
> passno (6th column in fstab) to anything higher then 0. I set ti to 2
> but inspecting logs it doesn't seems fsck is performed. Am I still
> missing something? Thanks.
> 
> BR,
> 
> marek
> 


-- 
Frantisek Sumsal
GPG key ID: 0xFB738CE27B634E4B



signature.asc
Description: OpenPGP digital signature
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] perform fsck on everyt boot

2019-11-11 Thread Reindl Harald


Am 11.11.19 um 13:33 schrieb Belisko Marek:
> I'm using systemd 234 (build by yocto) and I've setup automount of
> sdcard in fstab. This works perfectly fine. But I have seen from time
> to time when system goes to emergency mode because sdcard filesystem
> (ext4) have an issue and cannot be mounted. I was thinking about
> forcing fsck for every boot. Reading manual it should be enough to set
> passno (6th column in fstab) to anything higher then 0. I set ti to 2
> but inspecting logs it doesn't seems fsck is performed. Am I still
> missing something? Thanks.

every boot dunno, but every day is simple to set with tune2fs [-i
interval[d|m|w]]
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] perform fsck on everyt boot

2019-11-11 Thread Belisko Marek
Hi,

I'm using systemd 234 (build by yocto) and I've setup automount of
sdcard in fstab. This works perfectly fine. But I have seen from time
to time when system goes to emergency mode because sdcard filesystem
(ext4) have an issue and cannot be mounted. I was thinking about
forcing fsck for every boot. Reading manual it should be enough to set
passno (6th column in fstab) to anything higher then 0. I set ti to 2
but inspecting logs it doesn't seems fsck is performed. Am I still
missing something? Thanks.

BR,

marek

-- 
as simple and primitive as possible
-
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel