You are not logged in.

#1 2021-04-28 09:32:10

Wang
Member
Registered: 2016-01-23
Posts: 10

[SOLVED]Cannot boot into GRUB after migrating system to a new SSD

I had dual boot on my laptop (win10+arch). Then I have decided that I just want Linux and also on a new drive. The new drive now has three partitions, in which /dev/nvme0n1p2 is the partition that I cloned from the old system (root dir). I figured that i only need to reinstall a boot loader and it is good to go. Despite no error messages in GRUB installation and configuration, the laptop cannot boot into grub/new drive. In BIOS, I can only see the SSD as a boot device in legacy mode and once selected fail to start. It always automatically boot into the usb live environment.

The installation of GRUB went like:

mount /dev/nvme0n1p2 /mnt
arch-chroot /mnt 
mount /dev/nvme0n1p1 /boot/efi
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch-grub
grub-mkconfig -o /boot/grub/grub.cfg

lsblk -f gives

 NAME        FSTYPE   FSVER            LABEL       UUID                                 FSAVAIL FSUSE% MOUNTPOINT
loop0       squashfs 4.0                                                                              
sda         iso9660  Joliet Extension ARCH_202104 2021-04-01-17-14-04-00                              
|-sda1      iso9660  Joliet Extension ARCH_202104 2021-04-01-17-14-04-00                              
|-sda2      vfat     FAT16            ARCHISO_EFI FCFD-B5F5                                           
`-sda3                                                                                                
nvme0n1                                                                                               
|-nvme0n1p1 vfat     FAT32                        290D-21CF                             511.8M     0% /boot/efi
|-nvme0n1p2 ext4     1.0                          26b43509-a1f5-41c9-8698-50496a0b2d56  778.6G    10% /
`-nvme0n1p3 swap     1                            c3b6334c-1e85-4a14-9118-fc28fad66a3d

efibootmgr gives

BootCurrent: 0009
Timeout: 0 seconds
BootOrder: 0001,0006,0007,0009,000A
Boot0000* arch-grub
Boot0001* Diskette Drive
Boot0006* USB Storage Device
Boot0007* M.2 PCIe SSD
Boot0009* UEFI: Intenso Rainbow Line 8.07, Partition 2
Boot000A* CD/DVD/CD-RW Drive

Notably the boot order had 0000, i.e. arch-grub, as the first but after rebooting it disappeared in the boot order.

I would appreciate it if someone can point out the problem and provide possible solution. smile

Last edited by Wang (2021-04-28 09:50:53)

Offline

#2 2021-04-28 09:34:57

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED]Cannot boot into GRUB after migrating system to a new SSD

What laptop? Reads like a broken NVRAM implementation, rerun the grub-install command with --removable to populate the fallback path.

Offline

#3 2021-04-28 09:50:03

Wang
Member
Registered: 2016-01-23
Posts: 10

Re: [SOLVED]Cannot boot into GRUB after migrating system to a new SSD

V1del wrote:

What laptop?

It is dell xps 15 9550.

After adding removable tag to grub-install, I can now enter grub menu. Thanks, I can't believe that I missed it.

Last edited by Wang (2021-04-28 10:45:56)

Offline

Board footer

Powered by FluxBB