Skip to main content

New SSD migration

·141 words

Modify BIOS to enable booting off nvme? See http://www.win-raid.com/t871f16-Guide-How-to-get-full-NVMe-support-for-Intel-Chipset-systems-from-Series-up-42.html

  • Install windows so EFI partitions etc are created

  • Create a boot partition. This is because refind doesn’t understand LVM.

  • Create another partition which will become our LVM PV

  • Create a VG in the PV vgcreate vg-samsung /dev/nvme0n1p6

  • Create 2 LVs in the PV, for the root partition and home

    lvcreate -L 55G vg-samsung -n Root

    lvcreate -l 100%FREE vg-samsung -n Home

  • Format the partitions

    mkfs.ext4 /dev/mapper/vg--samsung-Root

    mkfs.ext4 /dev/mapper/vg--samsung-Home

mount /dev/mapper/vg–samsung-Root /mnt/temp/ rsync -aAXv –exclude={"/dev/","/proc/","/sys/","/tmp/","/run/","/mnt/","/media/","/lost+found","/home/","/srv/","/boot/"} / /mnt/temp mkfs.ext4 /dev/nvme0n1p5 mount /dev/nvme0n1p5 /mnt/media/ rsync -aAXv /boot /mnt/media

Mount the EFI partition and install refind mount /dev/nvme0n1p2 /boot/efi/ refind-install

The refind-install script doesn’t quite work with NVMe device names, so fails to add a boot entry for refind.

Manually do this with efibootmgr /usr/bin/efibootmgr -c -l “\EFI\refind\refind_x64.efi” -L rEFInd Boot Manager -d /dev/nvme0n1 -p 2