migrate home partition from ssd to hdd for hybrid config

find disk name
sudo fdisk -l
 create partition using gparted and format using desired file system
find mount point and mount it temporarily
sudo mount /dev/sda7 /mnt
cd /mnt
ls -ahl
sudo rm -rf lost+found
sudo cp -rp /home/* /mnt
ls to confirm its contents
backup original home  
sudo mv /home /home.orig 
sudo mkdir /home
sudo mount /dev/sda7 /home/ 
df to verify mountpoint

for persistent we need to edit fstab
backup it first in case of mistake we can easily revert 
sudo cp /etc/fstab /etc/fstab.orig 
sudo editor /etc/fstab 
editor can be gedit,mousepad,nano,vim anything
 # <file system> <mount point>   <type>  <options>       <dump>  <pass>
UUID=9ec38e42-02ed-4e51-a73d-3b504240388c / ext4 errors=remount-ro 0 1
UUID=8C39-EE85 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
UUID=11ba4432-41f3-42a0-a05c-7fc4d47ffcb1 /home ext4 defaults 0 0
use uuid for better flexibility. you can also use address like /dev/sdax
use blkid cmd get uuid,label,partuuid, info 
sudo reboot now
df to confirm mountpoint
cd /  
sudo rm -rf home.orig/ 


Popular posts from this blog

sxhkd volume andbrightness config for dwm on void

fix idm integration on chrome

Hidden Wiki