View previous topic :: View next topic |
Author |
Message |
198728 l33t
Joined: 08 Apr 2009 Posts: 693
|
Posted: Wed Apr 23, 2014 5:06 pm Post subject: Systemd: fsck error |
|
|
Hi, during the boot with systemd, all works fine, but every time an error message about fsck.
I've some disk with a ntfs partition; systemd mount all, but every boot Code: | fsck.ntfs-3g: not found |
|
|
Back to top |
|
|
lagalopex Guru
Joined: 16 Oct 2004 Posts: 562
|
Posted: Wed Apr 23, 2014 5:55 pm Post subject: |
|
|
You mount a ntfs partition at boot time? Whats the entry in your fstab?
(The sixth column should be 0 if the partition should not be checked.)
Ntfs is not well supported.
sys-fs/ntfs3g with the ntfsprogs use flag should install some utilities:
ntfsck should be the one you are looking for. Maybe a symlink works (ln -s /usr/bin/ntfsck /usr/bin/fsck.ntfs-3g). |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Wed Apr 23, 2014 6:09 pm Post subject: |
|
|
lagalopex wrote: | You mount a ntfs partition at boot time? Whats the entry in your fstab?
(The sixth column should be 0 if the partition should not be checked.) |
We are speaking about systemd: It gives a damn about traditional /etc/fstab format: Everything your write there is mounted and checked at boot time, flags not to do this are plainly ignored.
If you want to avoid mounting, you have to use the systemd mechanisms like linking a corresponding .mount unit to /dev/null. |
|
Back to top |
|
|
198728 l33t
Joined: 08 Apr 2009 Posts: 693
|
Posted: Wed Apr 23, 2014 7:27 pm Post subject: |
|
|
mv wrote: |
If you want to avoid mounting, you have to use the systemd mechanisms like linking a corresponding .mount unit to /dev/null. |
Please, can you explain this? |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Thu Apr 24, 2014 7:53 am Post subject: |
|
|
You have to provide a .mount unit which overrides the .mount unit generated automatically from your /etc/fstab. For a starters you can copy the autogenerated unit from /run/systemd/system into /etc/systemd/system (I hope that I remember the paths correctly); the latter should override the autogenerated unit, and you can add some configuration options here. I do not remember whether there is an option to avoid fsck; read the above man-pages for this. At least, you can add a dependency so that the mounting is not done too early. If you make the unit just a link to /dev/null instead, systemd will not mount this device at all. Unfortunately, this means that it will also not umount it properly on shutdown... |
|
Back to top |
|
|
198728 l33t
Joined: 08 Apr 2009 Posts: 693
|
Posted: Fri Apr 25, 2014 6:46 pm Post subject: |
|
|
Thank you very much |
|
Back to top |
|
|
|