RBERRYPI ---------------- < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 58 из 100
 От   : Richard Harnden                     3:633/10          16 мар 26 11:49:01
 К    : All                                                   16 мар 26 10:55:38
 Тема : Re: Adding a hardware swap partition
----------------------------------------------------------------------------------
                                                                                 
@MSGID: 3:633/10 f18dc7c8
@REPLY: 3:633/10 469fd468
@PID: PyGate 1.5.13
@TID: PyGate/Linux 1.5.13
@CHRS: CP1252 2
@TZUTC: 0000
@REPLYADDR: richard.nospam@gmail.invalid
@REPLYTO: 3:633/10 UUCP
@RFC-Message-ID: <10p8qnd$1uh6h$1@dont-email.me>
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?

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.

Anyway, I`d keep /usr under / just to be safe.

/home on its own partition.



> It?s really not going to make swapping significantly faster. Nor is
> trying to find an optimal location for swap - you have quite possibly
> already spent more time on the matter in this thread than you could ever
> possibly save.

>>> Back in the good old days there were enough programs in /bin (which
>>> was an actual directory, not a link to /usr/bin) to recover a system
>>> with disk errors (when possible, anyway).  But now that /bin is a
>>> link, I wonder if the system will even boot properly, since "user
>>> space" would have to mount /usr before almost all (all?) programs are
>>> available.  Including systemd.
>>
>> Given that RasPiOS has an /sbin directory, I`m pretty sure the machine
>> will come up at worst in single-user if /usr can`t be mounted
>> normally.

> $ ls -ld /sbin
> lrwxrwxrwx 1 root root 8 Nov 17  2023 /sbin -> usr/sbin

> However I believe this is neither here nor there since initramfs is
> responsible for mounting /usr if it?s separate. If it fails to mount you
> will most likely end up in an initramfs shell (which is a pretty
> reasonable recovery environment).

>> Whether /home/, /var/ and  /tmp/  can be links to /usr is less clear to
>> me at this point.

> You might run into trouble with AppArmor. Not particularly hard to fix.


> If all this is about adding some swap space then you are massively
> overcomplicating matters. If there?s no unpartitioned space left then
> just create a swapfile and get on with your life. If you do anything
> more complicated than that then make sure your backups are up to date
> first.



--- PyGate Linux v1.5.13
 * Origin: Dragon`s Lair, PyGate NNTP<>Fido Gate (3:633/10)
SEEN-BY: 19/10 50/109 153/757 218/840 840 220/70
221/1 6 360 226/17 100
SEEN-BY: 229/426 240/1120 267/800 301/1 113 812
310/31 335/364 341/66 463/68
SEEN-BY: 633/10 280 414 416 418 420 422 509 2744
712/848 770/1 3 100 340 350
SEEN-BY: 772/210 220 230 5019/40 5020/715 848 1042
4441 12000 5030/49 722
SEEN-BY: 5030/1081 1474 5053/55 5061/133 5075/128
@PATH: 633/10 280 770/1 218/840 221/6 301/1
5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх