Hello! My RasPi runs PiHole, Unbound, Wireguard and Nextcloud.
I wanted to upgrade my external HDD from one that’s powered by the Pi to an HDD which has its own power. To do the change, I did the following:
- Unplug the old HDD
- Plug old HDD and new HDD in my windows pc
- Move data from old to new HDD (this took about 12 hours, so I’d like to NOT move stuff to the new HDD again, if possible!)
- Plug new HDD in
I didn’t expect it to work that easy, and it didn’t The Pi didn’t even boot, only after I attached the old HDD again.
Checking lsblk, it seems like the device isn’t mounted:
root@DietPi:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
└─sda1 8:1 0 1.8T 0 part /mnt/extern
sdb 8:16 0 1.8T 0 disk
├─sdb1 8:17 0 16M 0 part
└─sdb2 8:18 0 1.8T 0 part
mmcblk0 179:0 0 29.7G 0 disk
├─mmcblk0p1 179:1 0 256M 0 part /boot
└─mmcblk0p2 179:2 0 29.5G 0 part /
Is there a way to make the new HDD behave like the old one? Could I unmount the old one and mount the new one in the same place? It has the same files, after all. Or do I have to switch dietpi-userdata to a new folder?