Is it possible to create bootable SD for Raspberry Pi with VenusOS that there it has custom partitioning?
Or at least one partition, not be affected by the update system?
Venus OS already has a /data partition which is not affected by the update system.
The SD card used as the system drive for the Raspberry PI supports at most 4 partitions without going to extended partitions. Venus OS uses all 4 of the partitions: rootfs 1, rootfs 2, data, boot. In order to create more partitions, one of these needs to be deleted and an extended partition added in its place. Then you can add the partition you deleted to the extended partition and add your additional partition. But I don't think Venus OS can deal with the extended partitions so it's complaining that it can't find one of the partitions it is looking for.
Boot is formatted FAT (or FAT32). Data and the two root partitions are formatted ext4. I believe the partition order is hard coded, especially the two root partitions.
Venus OS alternates between the two root partitions when updating so these don't survive a firmware update. Boot and data are not touched by a normal firmware update so these could be used to store your persistent data. Boot is currently small but I don't see any reason it couldn't be expanded.
Note that anything you change in fstab will be lost with a Venus OS update since it is located in the root partition.
No way found...
I tried naively way:
copy files from "data" partition
remove "data" partition
create extended partition instead "data"
create two logical partitions
copy "data" files to one of the logical partition
Ok, os started, "data" partition mounted. But web console don't work. I do not know what the problem is.
And on this way edit of fstab is necessary. So update becomes impossible.
Eventually, I just formatted existed "data" partition as I want.
made it work then
wrote image to sd card
edited /etc/init.d/ zzz-resize-sdcard 'parted / dev / mmcblk0 -ms resizepart 2 30% mkpart primary ext4 30% 60% mkpart primary ext4 60% 90%'
booted pi and then halt
mounted in a linux pc write down sctors and deleted last partition
made extended + one same size ext4 + ext4 rest of emty space
edited fstab to
/ dev / mmcblk0p1 / u-boot
/ dev / mmcblk0p5 / data
started up pi and everything worked.
mkdir / home / root / test
mount / dev / mmcblk0p6 / home / root / test
wrote a file two test and restarted
58 People are following this question.