π Introduction
The following steps allow you to mount a new hard drive to the /home path and successfully move the old data to the new storage space.
ιιδ»₯δΈηζ₯ι©ε°ε―δ»₯ε°ζ°η瑬η’ζθΌε° /home θ·―εΎδΈοΌδΈ¦ι ε©ε°θηθ³ζ移εε°ζ°ηε²εη©Ίι裑ι’γ
π Steps
1. unmount /dev/sdb
sudo mkfs.ext4 /dev/sdb
2. mount to new path
sudo mkdir /mnt/newstorage
sudo mount /dev/sdb /mnt/newstorage
3. copy old data (sda) to sdb
sudo rsync -av /home/ /mnt/newstorage/
4. get sdb UUID
sudo blkid
5. update fstab file
append this string to /etc/fstab
UUID=<Your-sdb-UUID> /home ext4 defaults 0 2
6. reboot
sudo reboot
Β