[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: No fsck in battery mode



From: "Cristian Ionescu-Idbohrn" <cristian.ionescu-idbohrn@axis.com>

> On Mon, 1 Sep 2003, Derek Broughton wrote:
>
> > From: "Frédéric Bothamy" <fbothamy@mail.dotcom.fr>
> >
> > > Except that since it is under /usr, it might not be available at fsck
> > > time (that is, before /usr is mounted in /etc/rcS.d/S30checkfs.sh).
> >
> > Doh!  Of course you're right.  I wonder if it could be copied to /boot
> > and still work?
>
> Sure:
>
> $ ldd /usr/bin/on_ac_power
>         not a dynamic executable

That's what I expected, but hadn't checked yet.

> > Matt's solution is good - but it must have the same problem:
> > grep will be available at the same time as on_ac_power!
>
> $ which grep
> /bin/grep
>
> Did you set up with / and /boot on separate partitions?

You betcha :-)  But it's a non-generic situation, anyway.  During
S10checkroot.sh, / is available - but there's no telling how your system is
partitioned.  In my case, /usr (and /usr/bin) are on /.  Obviously, in other
cases /usr isn't.




Reply to: