RBERRYPI ---------------- < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 11 из 100
 От   : bp                                  3:633/10          12 мар 26 10:00:01
 К    : All                                                   12 мар 26 02:25:01
 Тема : Adding a hardware swap partition
----------------------------------------------------------------------------------
                                                                                 
@MSGID: <10os4nv$17t1j$1@dont-email.me> ec5a280b
@PID: PyGate 1.5.12
@TID: PyGate/Linux 1.5.12
@CHRS: ASCII 1
@TZUTC: 1100
@REPLYADDR bp@www.zefox.net
@REPLYTO 3:633/10 UUCP
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
 

--- PyGate Linux v1.5.12
 * Origin: Dragon`s Lair, PyGate NNTP<>Fido Gate (3:633/10)
SEEN-BY: 1/19 100 16/0 19/37 50/109 80/1 105/81
106/201 123/130 128/187
SEEN-BY: 129/14 305 142/104 153/7715 154/110 201/0
203/0 218/700 221/0 1 6
SEEN-BY: 226/30 227/114 229/110 112 134 200 206
300 317 400 426 428 470 616
SEEN-BY: 229/664 700 705 230/0 240/1120 5832
266/512 280/5003 291/111 292/854
SEEN-BY: 301/1 113 812 320/119 219 319 2119
322/757 762 325/304 335/364
SEEN-BY: 342/200 396/45 423/81 460/58 463/68 633/10
280 414 416 418 420 422
SEEN-BY: 633/509 2744 712/848 770/1 902/26 2320/105
5019/40 5020/400 715 848
SEEN-BY: 5020/1042 4441 12000 5030/49 722 1081
1474 5053/55 58 5061/133
SEEN-BY: 5075/35 128
@PATH: 633/10 280 229/426 320/219 221/1 301/1
5020/1042 4441



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

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