I wrote down // notes down as I did this for TLDR people viewing this thread.
Code: Select all
// If making changes to a dat container that is accessed through the changes cheat code booting up, use Always Flash mode to avoid issues. For these Terminal commands use Super User Mode (AKA root account).
// Create a dat container. Where "seek" is the new size in mb, 1024 is a gb.
dd if=/dev/null of=/mnt/sdb1/porteus/new_save_ext4.dat bs=1M seek=1024
// Formats the internal file system xfs in the dat I think. To avoid confusion -l is a lowercase L, not a capital i in the perimeter.
/sbin/mkfs.xfs -b size=4096 -l internal /mnt/sdb1/porteus/new_save_ext4.dat
// Creates an "old" and "new" folder in the /mnt folder for later.
mkdir /mnt/{old,new}
// Mount those 2 dat containers on those 2 created folders as an accessible drive file system.
mount /mnt/sdb1/porteus/old_save_ext4.dat /mnt/old
mount /mnt/sdb1/porteus/new_save_ext4.dat /mnt/new
// Copy and paste all the files from the "old" to the "new" dat container.
cp -a /mnt/old/* /mnt/new
// Can see if files copied by going to /mnt/new. Where inside such as pictures /home/guest/Pictures/ can be checked if they there.
// Finish by unmounting the dat containers. The folders will remain but empty.
umount /mnt/old
umount /mnt/new