BBS:      TELESC.NET.BR
Assunto:  Re: Adding a hardware swap partition
De:       Richard Kettlewell
Data:     Mon, 16 Mar 2026 12:18:24 +0000
-----------------------------------------------------------
Richard Harnden  writes:
> On 16/03/2026 09:54, Richard Kettlewell wrote:
>> bp@www.zefox.net writes:
>>> It was a surprise to learn that a single partition is somehow required
>>> for RasPiOS to function correctly. If true, it's a good thing to know.
>> Separate /usr probably still works, but I doubt it gets much
>> testing.
>
> Can you guarantee that /usr will be mounted at boot time?

It depends what you mean by ?boot time?. On a mainstream Linux system
/usr needs to be mounted by the time initramfs hands over to the real
root and init. So in practice unit files/init scripts/etc can safely
assume it?s mounted.

> I remember having to use /bin/sh in init.d scripts because
> /usr/bin/ksh didn't exist yet.  That may have changed.
>
> A long time ago, and not on an rpi. AIX or HP/UX or something.

Historically making sure /usr was mounted (if it was separate) was
init?s job (via an init.d scripts), so very early in boot, /usr might
not have been there. But mounting filesystems was, necessarily, a pretty
early step in the boot process, so by the time it was running (say) the
init script for an X display manager, /usr would have been mounted.

For all I know HPUX and AIX still work that way, I?m glad to say I
don?t have to care any more.

-- 
https://www.greenend.org.uk/rjk/

--- PyGate Linux v1.5.13
 * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)

-----------------------------------------------------------
[Voltar]