BBS:      TELESC.NET.BR
Assunto:  Re: Adding a hardware swap partition
De:       bp
Data:     Fri, 13 Mar 2026 10:00:02 +1100
-----------------------------------------------------------
Lawrence D?Oliveiro  wrote:
> On Wed, 11 Mar 2026 16:20:15 -0000 (UTC), bp wrote:
> 
>> This needs to be done under single-user mode and I don't know
>> how to get at single-user in RasPiOS.
> 
> This is done by modifying the kernel command line -- there should be a
> bootloader option to do this on a one-time basis before actually
> loading the kernel.
> 
> The option ?single? should do the trick, though I think it will prompt
> for the root password before allowing you in.
> 
> Another option to try is ?init=/bin/bash?.
> 
> These options should be common across Linux kernels, independent of
> architecture or bootloader.

I can understand editing cmdline.txt and rebooting as a way to get single
user, but by the time there's anything visible on the monitor the kernel
is already starting services and well past any opportunity to intervene.

It looks as if swap files have their advocates. Just how much slower is
a swap file? It certainly looks easier and might be a good experiment.

Thanks to everybody for replying!

bob prohaska
 

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

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