Alan McKinnon wrote: > On 13/01/2018 23:16, Neil Bothwick wrote: >> On Sat, 13 Jan 2018 14:57:59 -0600, John Johnson wrote: >> >>> Shouldn't that be taken care of by the "/etc/fstab" entries? >> Those say whether the filesystem should be checked, not when. >> >>> Obviously, if "/usr" is on a separate partition, it needs to be mounted >>> at the time when "/usr/sbin/fsck" is expected to be present. >> fsck is in /sbin, but that's not the point. If you have an initramfs, >> fsck should be in it and run before /usr is mounted rw, which means it >> has to be done by the initramfs. It's too late to do it when control has >> been handed over because then /usr is already mounted rw. > > So what does the dirty check and fsck of / ? > > I don't have an initramfs, I don't have a separate /usr, I run OpenRC > and the kernel command line says where / is for mounting > >
I think without a init thingy, it mounts / ro at first, runs the checks and then remounts rw. I think it does the same with /usr. I'm not sure what decides that tho. The last I rebooted, the checks are done within the init thingy for / and /usr, while mounted ro of course. Once / and /usr are in the clear, it swaps from the init thingy and the normal kernel/OS boot starts. I think it checks /home after the init thingy is gone. I think. It's been a while since I rebooted. 167 days so far. The power company is doing a good job of keeping our power going. If I ever redo my setup, /usr will be on / and hopefully no init thingy. With drives and file systems like they are now, it's just not worth the trouble. Dale :-) :-)