BBS: TELESC.NET.BR Assunto: Re: Adding a hardware swap partition De: Jim Jackson Data: Fri, 13 Mar 2026 10:00:02 +1100 ----------------------------------------------------------- Newsgroups: comp.sys.raspberry-pi From: Jim JacksonSubject: Re: Adding a hardware swap partition References: <10os4nv$17t1j$1@dont-email.me> Followup-To: On 2026-03-11, bp@www.zefox.net wrote: > Is there a "recipe" for adding a hardware swap partition to an > existing RasPiOS installation? Ideally I'd like a traditional > layout, with swap situated between / and /usr. AFAIK modern PIOS versions all use merged /usr, as they are based on debian which /usr merged. This means that the /usr directory has to reside on the root partition. I usually put my swap partition between root and /home partitions. I'm assuming your PIOS is running systemd so try looking at man systemd.swap I remember that on a SYSV init system I think I ran mkswap on the disk partition, then added an entry to /etc/fstab like /dev/sda2 none swap sw 0 0 and just rebooted. I tend to use a swap file nowadays. cheers Jim --- PyGate Linux v1.5.12 * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10) ----------------------------------------------------------- [Voltar]