20231103 18:57
I finally *melt* my OpenBSD system targeting sticks of 32gb.
0. I prepared a note with the new stick layout I would like to realize.
1. copymachine: I copied my 16gb stick into my target stick.
2. fdisk: I growed size of the OpenBSD partition to 59000000 sectors.
3. disklabel: I incrised the OpenBSD boundaries to 59000000 sectors.
4. disklabel: I erased all the existing partitions.
5. disklabel: I created the new stick layout as from the note above.
6. I *newfs* all the data partitions.
7. I repeated for every partition needing to be data populated:
cd /tmp
umount /mnt/oldkey
umount /mnt/newkey
mount -t ffs /dev/sd1a /mnt/oldkey
mount -t ffs /dev/sd2a /mnt/newkey
cd /mnt/oldkey
pax -rw -pe . /mnt/newkey/
8. installboot: I launched it in this way to prevent any boot problem:
installboot -v -r /mnt/neykey sd2 /usr/mdec/biosboot /usr/mdec/boot
9. I updated /etc/fstab accordingly to new layout of the new stick
a. I rebooted the pc in the new stick to test the resulting system.
b. I recovered all the immutable flags on the pertaining files.
I hope this is helpful to someone.