I'm having some problems with a system on which i have two copies of the os installed on a cm4 where i can't get the second one to boot.
This is the layout of the disk, i mounted the second root and boot partition to check if i can access them and they show up readable ad i can read/write on them.
The first partition is a small fat32 just for the autoboot file, the fourth partition is the extended partition that contains the other logical disks.
I cloned mmcblk0p2/3 withand i have changed cmdline on the second root partition to
console=serial0,115200 console=tty1 root=PARTUUID=cec498e0-06 rootfstype=ext4 fsck.repair=yes rootwait
so that it points to the correct root partition.
fstab on the second root has also been changed to point to the correct ones:But when i try to reboot to the second OS, either by changing it in the autoboot.txt or with tryboot i get an error in the boot screen:
Trying partition 5
Failed to open partition 5
blkid shows me the following:Does anyone see anything i might be doing wrong here??
Code:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTSmmcblk0 179:0 0 14.6G 0 disk├─mmcblk0p1 179:1 0 60M 0 part /home/pi/tryboot├─mmcblk0p2 179:2 0 512M 0 part /boot/firmware├─mmcblk0p3 179:3 0 2.9G 0 part /├─mmcblk0p4 179:4 0 1K 0 part├─mmcblk0p5 179:5 0 512M 0 part /home/pi/boot├─mmcblk0p6 179:6 0 2.9G 0 part /home/pi/root└─mmcblk0p7 179:7 0 7.7G 0 part /datammcblk0boot0 179:32 0 4M 1 diskmmcblk0boot1 179:64 0 4M 1 disk
The first partition is a small fat32 just for the autoboot file, the fourth partition is the extended partition that contains the other logical disks.
I cloned mmcblk0p2/3 with
Code:
dd bs=4M if=/dev/mmcblk0p2 of=/dev/mmcblk0p5 status=progressdd bs=4M if=/dev/mmcblk0p3 of=/dev/mmcblk0p6 status=progress
console=serial0,115200 console=tty1 root=PARTUUID=cec498e0-06 rootfstype=ext4 fsck.repair=yes rootwait
so that it points to the correct root partition.
fstab on the second root has also been changed to point to the correct ones:
Code:
proc /proc proc defaults 0 0PARTUUID=cec498e0-05 /boot/firmware vfat defaults 0 2PARTUUID=cec498e0-06 / ext4 defaults,noatime 0 1PARTUUID=cec498e0-07 /data ext4 defaults 0 3
Trying partition 5
Failed to open partition 5
blkid shows me the following:
Code:
sudo blkid/dev/mmcblk0p7: LABEL="data" UUID="8ffa3287-289b-4460-a0e9-384c31ec517e" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="cec498e0-07"/dev/mmcblk0p5: LABEL_FATBOOT="bootfs" LABEL="bootfs" UUID="71AB-B477" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="cec498e0-05"/dev/mmcblk0p3: LABEL="rootfs" UUID="4a4a096c-ed68-4647-8c87-4430de912edb" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="cec498e0-03"/dev/mmcblk0p1: LABEL_FATBOOT="trybootfs" LABEL="trybootfs" UUID="71AA-E39E" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="cec498e0-01"/dev/mmcblk0p6: LABEL="rootfs" UUID="4a4a096c-ed68-4647-8c87-4430de912edb" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="cec498e0-06"/dev/mmcblk0p2: LABEL_FATBOOT="bootfs" LABEL="bootfs" UUID="71AB-B477" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="cec498e0-02"
Statistics: Posted by nachte — Tue Feb 13, 2024 9:54 am