Groups | Search | Server Info | Login | Register


Groups > comp.sys.raspberry-pi > #37812

Re: Adding a hardware swap partition

From Jim Jackson <jj@franjam.org.uk>
Newsgroups comp.sys.raspberry-pi
Subject Re: Adding a hardware swap partition
Date 2026-03-12 09:31 +0000
Organization A noiseless patient Spider
Message-ID <slrn10r51uu.3jc.jj@iridium.wf32df> (permalink)
References <10os4nv$17t1j$1@dont-email.me> <slrn10r50u0.3jc.jj@iridium.wf32df>

Show all headers | View raw


Sorry finger trouble - didn't mean to post a reply.

On 2026-03-12, Jim Jackson <jj@franjam.org.uk> wrote:
> On 2026-03-11, bp@www.zefox.net <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. I know how to
>> do it with FreeBSD during the install process but this particular
>> case involves a running, somewhat valuable RasPiOS installation
>> and the tools offered on RasPiOS are different enough to warrant
>> a study of prior art if it's available. 
>>
>> What I'd like to do is resize the existing root to roughly its
>> present, occupied size, add a swap partition in the freed space
>> and then create /usr in the remaining space, copying the old
>> /usr to the new, cleaning out usr files from the original root 
>> partition and mounting the new /usr on the empty mountpoint. 
>>
>> This needs to be done under single-user mode and I don't know
>> how to get at single-user in RasPiOS. It could be done via booting
>> from a microSD, but that pitches me into the installer which isn't
>> exactly familiar territory.
>>
>> In case it matters, this is on an 8GB Pi5 running Bookworm with
>> dual monitors and a 1 TB mechanical hard drive. df reports
>>
>> Filesystem     1K-blocks     Used Available Use% Mounted on
>> udev             4081296        0   4081296   0% /dev
>> tmpfs            1650304     6512   1643792   1% /run
>> /dev/sda2      961067256 61907904 850331260   7% /
>> tmpfs            4125728   163136   3962592   4% /dev/shm
>> tmpfs               5120       48      5072   1% /run/lock
>> /dev/sda1         522230    79520    442710  16% /boot/firmware
>> tmpfs             825136      272    824864   1% /run/user/1000
>>
>> The need for "real" swap arises when Chromium and Firefox are both
>> running with multiple tabs open.
>>
>> Thanks for reading, and any suggestions!
>>
>> bob prohaska
>>  

Back to comp.sys.raspberry-pi | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Adding a hardware swap partition bp@www.zefox.net - 2026-03-11 16:20 +0000
  Re: Adding a hardware swap partition The Natural Philosopher <tnp@invalid.invalid> - 2026-03-11 16:43 +0000
  Re: Adding a hardware swap partition Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-11 21:39 +0000
    Re: Adding a hardware swap partition bp@www.zefox.net - 2026-03-12 15:37 +0000
      Re: Adding a hardware swap partition Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-12 20:59 +0000
        Re: Adding a hardware swap partition bp@www.zefox.net - 2026-03-13 01:26 +0000
          Re: Adding a hardware swap partition The Natural Philosopher <tnp@invalid.invalid> - 2026-03-13 11:15 +0000
            Re: Adding a hardware swap partition Theo <theom+news@chiark.greenend.org.uk> - 2026-03-13 14:16 +0000
              Re: Adding a hardware swap partition The Natural Philosopher <tnp@invalid.invalid> - 2026-03-13 16:01 +0000
                Re: Adding a hardware swap partition Theo <theom+news@chiark.greenend.org.uk> - 2026-03-13 18:28 +0000
                Re: Adding a hardware swap partition The Natural Philosopher <tnp@invalid.invalid> - 2026-03-13 21:50 +0000
              Re: Adding a hardware swap partition druck <news@druck.org.uk> - 2026-03-13 21:26 +0000
          Re: Adding a hardware swap partition Kees Nuyt <kees@nospam.demon.invalid> - 2026-03-13 22:25 +0100
  Re: Adding a hardware swap partition Jim Jackson <jj@franjam.org.uk> - 2026-03-12 09:13 +0000
    Re: Adding a hardware swap partition Jim Jackson <jj@franjam.org.uk> - 2026-03-12 09:31 +0000
  Re: Adding a hardware swap partition Jim Jackson <jj@franjam.org.uk> - 2026-03-12 10:07 +0000
  Re: Adding a hardware swap partition Jim Diamond <zsd@jdvb.ca> - 2026-03-13 14:40 -0300
    Re: Adding a hardware swap partition druck <news@druck.org.uk> - 2026-03-15 13:25 +0000
      Re: Adding a hardware swap partition The Natural Philosopher <tnp@invalid.invalid> - 2026-03-15 14:02 +0000
        Re: Adding a hardware swap partition Josef Möllers <josef@invalid.invalid> - 2026-03-15 17:02 +0100
        Re: Adding a hardware swap partition Jim Diamond <zsd@jdvb.ca> - 2026-03-15 18:04 -0300
          Re: Adding a hardware swap partition Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-15 21:31 +0000
            Re: Adding a hardware swap partition Theo <theom+news@chiark.greenend.org.uk> - 2026-03-16 16:01 +0000
              Re: Adding a hardware swap partition Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-16 22:53 +0000
          Re: Adding a hardware swap partition bp@www.zefox.net - 2026-03-15 22:53 +0000
            Re: Adding a hardware swap partition Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-16 01:41 +0000
            Re: Adding a hardware swap partition Richard Kettlewell <invalid@invalid.invalid> - 2026-03-16 09:54 +0000
              Re: Adding a hardware swap partition Richard Harnden <richard.nospam@gmail.invalid> - 2026-03-16 11:49 +0000
                Re: Adding a hardware swap partition Richard Kettlewell <invalid@invalid.invalid> - 2026-03-16 12:18 +0000
            Re: Adding a hardware swap partition Jim Diamond <zsd@jdvb.ca> - 2026-03-17 18:30 -0300
              Re: Adding a hardware swap partition bp@www.zefox.net - 2026-03-19 01:36 +0000
                Re: Adding a hardware swap partition Richard Kettlewell <invalid@invalid.invalid> - 2026-03-19 08:52 +0000
                Re: Adding a hardware swap partition bp@www.zefox.net - 2026-03-19 14:49 +0000
                Re: Adding a hardware swap partition The Natural Philosopher <tnp@invalid.invalid> - 2026-03-19 19:23 +0000
                Re: Adding a hardware swap partition Richard Kettlewell <invalid@invalid.invalid> - 2026-03-19 22:01 +0000
                Re: Adding a hardware swap partition Richard Kettlewell <invalid@invalid.invalid> - 2026-03-19 22:00 +0000
                Re: Adding a hardware swap partition bp@www.zefox.net - 2026-03-20 03:50 +0000
                Re: Adding a hardware swap partition The Natural Philosopher <tnp@invalid.invalid> - 2026-03-20 07:02 +0000
                Re: Adding a hardware swap partition Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-19 22:56 +0000
                Re: Adding a hardware swap partition Anssi Saari <anssi.saari@usenet.mail.kapsi.fi> - 2026-03-25 14:53 +0200
                Re: Adding a hardware swap partition bp@www.zefox.net - 2026-03-25 18:53 +0000
          Re: Adding a hardware swap partition The Natural Philosopher <tnp@invalid.invalid> - 2026-03-16 12:38 +0000

csiph-web