2021年3月7日 星期日

[pre noted] 將linux移到其他硬碟

 因為公司筆電的ssd很小(128G)上面大只夠run一個linux

  1. Create an ext4 partition and a swap partition on the new drive.

  2. Boot from LiveUSB.

  3. Mount the old Ubuntu partition to some directory, mount the new one to some other directory.

  4. Copy all files from the old one to the new one using cp -a command.

  5. Install grub to the new drive.

  6. Update /etc/fstab with new UUIDs.

沒有留言:

張貼留言