mirror of https://github.com/CIRCL/Circlean
Update setup_with_proot.md
parent
40f8889bcf
commit
644df64c30
|
@ -34,7 +34,7 @@ Preparation
|
||||||
Download the Raspbian image
|
Download the Raspbian image
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
* Get the most recent version of RaspiOS Lite from [here.](https://downloads.raspberrypi.org/raspios_lite_armhf/images/):
|
* Get the most recent version of RaspiOS Lite from [here](https://downloads.raspberrypi.org/raspios_lite_armhf/images/):
|
||||||
|
|
||||||
```
|
```
|
||||||
wget https://downloads.raspberrypi.org/raspbian_lite_latest
|
wget https://downloads.raspberrypi.org/raspbian_lite_latest
|
||||||
|
@ -45,7 +45,7 @@ Download the Raspbian image
|
||||||
```
|
```
|
||||||
* Unpack it:
|
* Unpack it:
|
||||||
```
|
```
|
||||||
unzip XXXX-XX-XX-raspbian-buster-lite.zip
|
unxz XXXX-XX-XX-raspios-bullseye-armhf-lite.img.xz
|
||||||
```
|
```
|
||||||
|
|
||||||
Add space to the image
|
Add space to the image
|
||||||
|
@ -54,38 +54,40 @@ Add space to the image
|
||||||
* Use dd to add 2GB (2048 blocks of 1024k each). Using /dev/zero as the input
|
* Use dd to add 2GB (2048 blocks of 1024k each). Using /dev/zero as the input
|
||||||
file yields an unlimited number of "0x00" bytes.
|
file yields an unlimited number of "0x00" bytes.
|
||||||
```
|
```
|
||||||
> dd if=/dev/zero bs=1024k count=2048 >> XXXX-XX-XX-raspbian-jessie-lite.img
|
dd if=/dev/zero bs=1024k count=2048 >> XXXX-XX-XX-raspios-bullseye-armhf-lite.img
|
||||||
```
|
```
|
||||||
|
|
||||||
* Expand the root (second) partition using sfdisk:
|
* Expand the root (second) partition using sfdisk:
|
||||||
```
|
```
|
||||||
> echo ", +" | sfdisk -N 2 XXXX-XX-XX-raspbian-jessie-lite.img
|
echo ", +" | sfdisk -N 2 2023-05-03-raspios-bullseye-armhf-lite.img
|
||||||
Checking that no-one is using this disk right now ... OK
|
|
||||||
|
|
||||||
Disk 2017-11-29-raspbian-stretch-lite.img: 3.7 GiB, 4005560320 bytes, 7823360 sectors
|
Checking that no-one is using this disk right now ... OK
|
||||||
Units: sectors of 1 * 512 = 512 bytes
|
|
||||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
|
||||||
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
|
||||||
Disklabel type: dos
|
|
||||||
Disk identifier: 0x37665771
|
|
||||||
|
|
||||||
Old situation:
|
Disk 2023-05-03-raspios-bullseye-armhf-lite.img: 3.83 GiB, 4114612224 bytes, 8036352 sectors
|
||||||
|
Units: sectors of 1 * 512 = 512 bytes
|
||||||
|
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||||
|
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
||||||
|
Disklabel type: dos
|
||||||
|
Disk identifier: 0x4c4e106f
|
||||||
|
|
||||||
Device Boot Start End Sectors Size Id Type
|
Old situation:
|
||||||
2017-11-29-raspbian-stretch-lite.img1 8192 93236 85045 41.5M c W95 FAT32 (LBA)
|
|
||||||
2017-11-29-raspbian-stretch-lite.img2 94208 3629055 3534848 1.7G 83 Linux
|
|
||||||
|
|
||||||
2017-11-29-raspbian-stretch-lite.img2:
|
Device Boot Start End Sectors Size Id Type
|
||||||
New situation:
|
2023-05-03-raspios-bullseye-armhf-lite.img1 8192 532479 524288 256M c W95 FAT32 (LBA)
|
||||||
Disklabel type: dos
|
2023-05-03-raspios-bullseye-armhf-lite.img2 532480 8036351 7503872 3.6G 83 Linux
|
||||||
Disk identifier: 0x37665771
|
|
||||||
|
|
||||||
Device Boot Start End Sectors Size Id Type
|
2023-05-03-raspios-bullseye-armhf-lite.img2:
|
||||||
2017-11-29-raspbian-stretch-lite.img1 8192 93236 85045 41.5M c W95 FAT32 (LBA)
|
New situation:
|
||||||
2017-11-29-raspbian-stretch-lite.img2 94208 7823359 7729152 3.7G 83 Linux
|
Disklabel type: dos
|
||||||
|
Disk identifier: 0x4c4e106f
|
||||||
|
|
||||||
|
Device Boot Start End Sectors Size Id Type
|
||||||
|
2023-05-03-raspios-bullseye-armhf-lite.img1 8192 532479 524288 256M c W95 FAT32 (LBA)
|
||||||
|
2023-05-03-raspios-bullseye-armhf-lite.img2 532480 8036351 7503872 3.6G 83 Linux
|
||||||
|
|
||||||
|
The partition table has been altered.
|
||||||
|
Syncing disks.
|
||||||
|
|
||||||
The partition table has been altered.
|
|
||||||
Syncing disks.
|
|
||||||
```
|
```
|
||||||
|
|
||||||
* Edit `shell_utils/basic_mount_image.sh` to use the correct image path ($IMAGE)
|
* Edit `shell_utils/basic_mount_image.sh` to use the correct image path ($IMAGE)
|
||||||
|
|
Loading…
Reference in New Issue