1 |
On Sat, 13 Jan 2018 14:57:59 -0600, John Johnson wrote: |
2 |
|
3 |
> Shouldn't that be taken care of by the "/etc/fstab" entries? |
4 |
|
5 |
Those say whether the filesystem should be checked, not when. |
6 |
|
7 |
> Obviously, if "/usr" is on a separate partition, it needs to be mounted |
8 |
> at the time when "/usr/sbin/fsck" is expected to be present. |
9 |
|
10 |
fsck is in /sbin, but that's not the point. If you have an initramfs, |
11 |
fsck should be in it and run before /usr is mounted rw, which means it |
12 |
has to be done by the initramfs. It's too late to do it when control has |
13 |
been handed over because then /usr is already mounted rw. |
14 |
|
15 |
> |
16 |
> On Sat, Jan 13, 2018 at 2:54 PM, Neil Bothwick <neil@××××××××××.uk> |
17 |
> wrote: |
18 |
> |
19 |
> > On Sat, 13 Jan 2018 21:29:12 +0200, Alan McKinnon wrote: |
20 |
> > |
21 |
> > > fwiw, fsck here runs automagically at startup whenever the fs is |
22 |
> > > dirty, and I do not use an initramfs at all. Not sure exactly what |
23 |
> > > code does this, I assume it's something in OpenRC. |
24 |
> > |
25 |
> > It is, and the reason it works is that you do not use an initramfs |
26 |
> > that mounts /usr before openrc gets a look in. If you use an |
27 |
> > initramfs, that should take care of running fsck when needed. |
28 |
> > |
29 |
> > |
30 |
> > -- |
31 |
> > Neil Bothwick |
32 |
> > |
33 |
> > Puns are bad, but poetry is verse... |
34 |
> > |
35 |
|
36 |
|
37 |
|
38 |
|
39 |
-- |
40 |
Neil Bothwick |
41 |
|
42 |
If a book about failures doesn't sell, is it a success? |