Move Ubuntu/Linux to SSD from old hard disk

  1. Copy files from hard disk to SSD
  2. Modify UUID in /etc/fstab of the SSD
  3. Dealing with GRUB

Copy files to SSD

sudo cp -Tax /media/hd /media/ssd

Modify UUID /etc/fstab

Dealing with GRUB

sudo -s
for f in sys dev proc ; do mount --bind /$f /media/ssd/$f ; done
chroot /media/ssd
grub-install /dev/ssd

You can also download Boot Repair to fix GRUB

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
enter image description here


电子邮件地址不会被公开。 必填项已用*标注

Ubuntu/Linux 进程内存占用排序
Previous post
Next post