I know that during initial setup it asks if you will be using an HDD with the Pi. I do. Previously, I have been running Raspbian Wheezy for about 2 years off of an external HDD…
What is the best method to get Dietpi running this way? I.e. SD is needed for initial boot up, but every part of the OS after it booted via USB HDD.
When I had Raspbian, this is the method, I followed:
sudo fdisk -l
Find the disk I need and run:
sudo mount /dev/sd## /mnt
Copy contents from SD to HDD without traversing the filesystem:
sudo rsync -ax / /mnt/
Then changed the rootfs location in:
sudo nano /boot/cmdline.txt
And changed /dev/mmcblk0p1 to be /dev/sdXX:
sudo nano /mnt/etc/fstab
After that added in the swap partition location, etc.
Does the DietPi installation do this when I select that I have an external HDD? Or does it just install programs to the HDD, while keeping rootfs and everything still on the SD card?
If it does not, is it recommended that I do what I did above before running initial setup where it asks me about how I will be using the pi?