Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Systemd: fsck error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mrl4n
Guru
Guru


Joined: 08 Apr 2009
Posts: 598

PostPosted: Wed Apr 23, 2014 5:06 pm    Post subject: Systemd: fsck error Reply with quote

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
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 464

PostPosted: Wed Apr 23, 2014 5:55 pm    Post subject: Reply with quote

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).
_________________
System: AMD Phenom II X4 840, 16GB RAM, NVidia GeForce GT 520, ASUS M4A87TD/USB3, Raid, Seagate Constellation ES
AMD64 system slow/unresponsive during disk access...
Back to top
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 4004

PostPosted: Wed Apr 23, 2014 6:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
mrl4n
Guru
Guru


Joined: 08 Apr 2009
Posts: 598

PostPosted: Wed Apr 23, 2014 7:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 4004

PostPosted: Thu Apr 24, 2014 7:53 am    Post subject: Reply with quote

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
View user's profile Send private message
mrl4n
Guru
Guru


Joined: 08 Apr 2009
Posts: 598

PostPosted: Fri Apr 25, 2014 6:46 pm    Post subject: Reply with quote

Thank you very much ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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