yep thats possible. You can use the SD card to host the boot partition and your USB device will contain the RootFS (incl user data)
Steps to be done:
- copy all your user data back to SD card using dietpi-drive_manager, to get the original status
- un-mount the USB device
- do a reboot to check if all working fine
- do a full backup of your SD card
- boot your system up, it should now running on SD card fully, while USB device is not mounted
- go to dietpi-drive_manager
- select the unmounted USB device
- select Transfer RootFS
- now read the following instruction carefully and confirm
- format your USB device
- last chance to cancel
- once done, you will be ask to select a mount point like /mnt/usb. This is just temporary
- as soon as the device is mounted, Drive Manager will stop all processes and start to copy your entire RootFS
- time for a coffee
- you will be ask to reboot your device once completed
- during reboot you might see some services failing like MariaDB. This is happening because Drive Manager missed to copy /mnt/dietpi_userdata
- don’t worry, let’s fix it
- go to dietpi-drive_manager
- select the unused partition /dev/mmcblk0p2 on your SD card
- mount the partition as /mnt/sd2
- exit Drive Manager
- change directory to cd /mnt/sd2/mnt
- let’s copy the missing data cp -p -r * /mnt/
- reboot your system
- now everything should working fine
If you encounter any issues on this, restore your backup to SD card
MichaIng
Is there a reason why Drive Manager is not copying dietpi_userdata during RootFS relocation?