ayufan-pine64 / linux-build

Pine64 Linux build scripts, tools and instructions (based on Longsleep work)
MIT License
154 stars 36 forks source link

RO filesystem to increase lifetime #88

Closed Darkvater closed 4 years ago

Darkvater commented 4 years ago

Hi,

I am rewiring my rock64 running the latest ayufan 4.4-190 loosely following this guide https://www.domoticz.com/wiki/Setting_up_overlayFS_on_Raspberry_Pi

I am quite confused by the boot partition bit. Under /boot there is an /boot/extlinux and a /boot/efi/extlinux partition. /etc/fstab mounts label=BOOT to /boot/efi.

What do I change to mount /boot as to? /boot/efi/extlinux/extlinux.cmd or /boot/extlinux/extlinux.cmd or neither of them as I see /etc/default/extlinux is supposed to be updated so it survives upgrades? However there is only an APPEND option there, so I presume I cannot change the "rw" to "to". Any help would be appreciated

I have the boot partition on the emmc, this is what fdisk says:

root@rock64:~# fdisk -l
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/mtdblock0: 4 MiB, 4128768 bytes, 8064 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

Disk /dev/mmcblk0: 14.5 GiB, 15518924800 bytes, 30310400 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: gpt
Disk identifier: C989EB79-6CD9-43DA-9AB4-9E11956FD426

Device          Start     End Sectors  Size Type
/dev/mmcblk0p1     64    8063    8000  3.9M Linux filesystem
/dev/mmcblk0p2   8064    8191     128   64K Linux filesystem
/dev/mmcblk0p3   8192   16383    8192    4M Linux filesystem
/dev/mmcblk0p4  16384   24575    8192    4M Linux filesystem
/dev/mmcblk0p5  24576   32767    8192    4M Linux filesystem
/dev/mmcblk0p6  32768  262143  229376  112M Microsoft basic data
/dev/mmcblk0p7 262144 4186111 3923968  1.9G Linux filesystem

Disk /dev/mmcblk0boot1: 4 MiB, 4194304 bytes, 8192 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                                         

Disk /dev/mmcblk0boot0: 4 MiB, 4194304 bytes, 8192 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
Darkvater commented 4 years ago

Oops, wrong project