You are not logged in.

#1 2020-09-07 23:09:12

calvertdw
Member
Registered: 2020-02-07
Posts: 18

[SOLVED] NVMe Drive not working in Raid On Mode

I have had Arch Linux installed and working on my laptop for about a year now. Every now and then I close the lid and the battery dies. On power up I always have to enter the current time and setup the BIOS settings again. It usually works, however this time now it is failing to boot with the following error:

:: running early hook [udev]
Starting version 244.3-1-arch
:: running hook [udev]
:: Triggering uevents...
Waiting 10 seconds for device /dev/disk/by-uuid/0f44a1ff-b26d-4ba4-80cf-aadec1289f82 ...
[    2.956417] Disabling IRQ #16
ERROR: device 'UUID=0f44a1ff-b26d-4ba4-80cf-aadec1289f82' not found. Skipping fsck.
:: mounting 'UUID=0f44a1ff-b26d-4ba4-80cf-aadec1289f82' on real root
mount: /new_root: can't find UUID=0f44a1ff-b26d-4ba4-80cf-aadec1289f82.
You are now being dropped into an emergency shell.
sh: can't access tty; job controle turned off
[rootfs ]#

There are no sdx entries in /dev

In the grub console the drive shows up (and I can browse the contents of both the efi and root partitions):

grub> ls -lah
Device hd0: No known filesystem detected - Sector size 512B - Total size 500107608KiB
        Partition hd0,gpt2: Filesystem type ext* - Last modification time 2020-07-11 22:36:30 Saturday, UUID 0f44a1ff-b26d-4ba4-80cf-aadec1289f82 - Partition start at 257024KiB - Total size 499850567.500107608KiB
        Partition hd0,gpt1: Filesystem type fat, UUID 1C24-9A14 - Partition start at 1024KiB - Total size 254976,500107608KiB
Device hd1: No known filesystem detected - Sector 512B - Total size 2147483648KiB

When I use a Arch ISO image to obtain a UEFI Interactive Shell v2.2, I can list the current boot entries:

Mapping table
      FS0: Alias(s):HD0r0b:;BLK1:
          PciRoot(0x0)/Pci(0x14,0x0)/USB(0x11,0x0)/HD(1,MBR,0x2FBBE9FE,0x108,0x20000)
      FS1: Alias(s):HD1c32768a1:;BLK3:
          PciRoot(0x0)/Pci(0x17,0x0)/Sata(0x2,0x8000,0x0)/HD(1,GPT,EA19BBF6-B14A-1D4D-9618-BD1D2193C685,0x800,0x7C801)
     BLK0: Alias(s):
         PciRoot(0x0)/Pci(0x14,0x0)/USB(0x11,0x0)
     BLK2: Alias(s):
         PciRoot(0x0)/Pci(0x17,0x0)/Sata(0x2,0x8000,0x0)
     BLK4: Alias(s):
         Pci(0x0)/Pci(0x17,0x0)/Sata(0x2,0x8000,0x0)/HD(2,GPT,870DEB3D-0B64-AC49-B366-47E159E793CD,0x7D800,0x3B963A8F)
     BLK5: Alias(s):
         PciRoot(0x0)/Pci(0x1C,0x1)/Pci(0x0,0x0)
Press ESC in 1 seconds to skip startup.nsh or any other key to continue.
Shell> bcfg boot dump -v
Option: 00. Variable: Boot0002
  Desc    - GRUB
  DevPath - PciRoot(0x0)/Pci(0x17,0x0)/Sata(0x2,0x8000,0x0)/HD(1,GPT,EA19BBF6-B14A-1D4D-9618-BD1D2193C685,0x800,0x7C801)/\EFI\GRUB\grubx64.efi
  Optional- N
Option: 01. Variable: Boot0004
  Desc    - UEFI: Samsung Flash Drive 1100, Partition 1
  DevPath - PciRoot(0x0)/Pci(0x14,0x0)/USB(0x11,0x0)/HD(1,MBR,0x2FBBE9FE,0x108,0x20000)
  Optional- Y
  00000000: 00 00 42 4F                                      *..B0*

My grub menuentry is doing the following:

load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root 0f44a1ff-b26d-4ba4-80cf-aadec1289f82
else
  search --no-floppy --fs-uuid --set=root 0f44a1ff-b26d-4ba4-80cf-aadec1289f82
fi
echo    'Loading Linux linux...'
linux   /boot/vmlinuz-linux root=UUID=0f44a1ff-b26d-4ba4-80cf-aadec1289f82 rw  loglevel=3 quiet
echo    'Loading initial ramdisk...'
initrd  /boot/initramfs-linux-fallback.img

When I run the search commands, they do not fail, indicating the UUID is correct.

Some extra details:

The laptop is a Dell Precision 5510 and I replaced its primary drive
with a Samsung 970 Pro M.2 SSD (but it has been working with that change).

It's SATA mode is set to "Raid On" and its setup with UEFI and legacy mode disabled.

The dell ePSA hard drive diagnostic utility says the hard drive is good.

Last edited by calvertdw (2020-09-13 17:07:25)

Offline

#2 2020-09-08 01:10:07

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [SOLVED] NVMe Drive not working in Raid On Mode

If you can reproduce the issue with SATA mode set to AHCI then please post the dmesg from the live media.  See tip box from pastebin to post from console.

Offline

#3 2020-09-08 01:13:12

Buddlespit
Member
From: Chesapeake, Va.
Registered: 2014-02-07
Posts: 501

Re: [SOLVED] NVMe Drive not working in Raid On Mode

The root UUID from grub= 0f44a1ff-b26d-4ba4-80cf-aadec1289f82
The root UUID shown in your mapping table= EA19BBF6-B14A-1D4D-9618-BD1D2193C685

Offline

#4 2020-09-08 02:12:09

calvertdw
Member
Registered: 2020-02-07
Posts: 18

Re: [SOLVED] NVMe Drive not working in Raid On Mode

Buddlespit wrote:

The root UUID from grub= 0f44a1ff-b26d-4ba4-80cf-aadec1289f82
The root UUID shown in your mapping table= EA19BBF6-B14A-1D4D-9618-BD1D2193C685

Doing some reading (https://askubuntu.com/a/473936/189273) I think the mapping table is showing the GUID of the partition table and the UUID is a separate identifier using by Linux to identify a partition. As noted, I can browse the root system partition in the GRUB command-line and view all the files in my home folder and stuff.

Offline

#5 2020-09-08 02:29:54

calvertdw
Member
Registered: 2020-02-07
Posts: 18

Re: [SOLVED] NVMe Drive not working in Raid On Mode

loqs wrote:

If you can reproduce the issue with SATA mode set to AHCI then please post the dmesg from the live media.  See tip box from pastebin to post from console.

When I set to AHCI I can't get into GRUB on the disk but I can boot to the USB live media. In dmesg (http://ix.io/2wKv) I saw the error:

nvme nvme0: missing or invalid SUBNQN field.

Offline

#6 2020-09-08 02:42:36

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [SOLVED] NVMe Drive not working in Raid On Mode

Please post the output the following from the live media:

# blkid
# parted -l

Offline

#7 2020-09-08 02:51:09

calvertdw
Member
Registered: 2020-02-07
Posts: 18

Re: [SOLVED] NVMe Drive not working in Raid On Mode

blkid:

/dev/nvme0n1p1: UUID="1C24-9A14" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="ea19bbf6-b14a-1d4d-9618-bd1d2193c685"
/dev/nvme0n1p2: UUID="0f44a1ff-b26d-4ba4-80cf-aadec1289f82" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="870deb3d-0b64-ac49-b366-47e159e793cd"
/dev/sda1: BLOCK_SIZE="2048" UUID="2020-09-01-17-37-13-00" LABEL="ARCH_202009" TYPE="iso9660" PTUUID="2fbbe9fe" PTTYPE="dos" PARTUUID="2fbbe9fe-01"
/dev/sda2: SEC_TYPE="msdos" LABEL_FATBOOT="ARCHISO_EFI" LABEL="ARCHISO_EFI" UUID="72F4-9D10" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="2fbbe9fe-02"
/dev/loop0: TYPE="squashfs"

parted -l:

Model: Samsung Flash Drive (scsi)
Disk /dev/sda: 32.1GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start  End     Size    Type     File system  Flags
 2      135kB  67.2MB  67.1MB  primary  fat16        esp


Model: Samsung SSD 970 PRO 512GB (nvme)
Disk /dev/nvme0n1: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name  Flags
 1      1049kB  262MB  261MB  fat32              boot, esp
 2      263MB   512GB  512GB  ext4

Offline

#8 2020-09-08 02:52:45

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED] NVMe Drive not working in Raid On Mode

You're always booting the fallback initramfs? Are you sure that's the entry you're using?

Last edited by Scimmia (2020-09-08 02:53:52)

Offline

#9 2020-09-08 02:54:12

calvertdw
Member
Registered: 2020-02-07
Posts: 18

Re: [SOLVED] NVMe Drive not working in Raid On Mode

Scimmia wrote:

Boot the fallback initramfs

I tried this. Doesn't make a difference. Still same UUID disk not found and emergency shell error.

Offline

#10 2020-09-08 02:55:53

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED] NVMe Drive not working in Raid On Mode

You're also booting an initramfs from last Feb? What kernel are you on?

Offline

#11 2020-09-08 03:27:47

calvertdw
Member
Registered: 2020-02-07
Posts: 18

Re: [SOLVED] NVMe Drive not working in Raid On Mode

I updated the initial description to add more info about possible cause.

"I have had Arch Linux installed and working on my laptop for about a year now. Every now and then I close the lid and the battery dies. On power up I always have to enter the current time and setup the BIOS settings again. It usually works, however this time now it is failing to boot with the following error:"

Since I am able to chroot in AHCI w/ live media, I am trying a pacman -Syu and updating GRUB and there's some other stuff to try there.

Offline

#12 2020-09-08 03:42:40

calvertdw
Member
Registered: 2020-02-07
Posts: 18

Re: [SOLVED] NVMe Drive not working in Raid On Mode

I was able to perform a full upgrade in chroot and update grub but I'm getting the same behavior. fallback initramfs not working. "Raid On" mode gets me to Emergency shell. Will not boot even into GRUB in "AHCI" mode.

My BIOS is fully up to date but wasn't earlier today but has been for the duration of this thread.

Last edited by calvertdw (2020-09-08 03:43:20)

Offline

#13 2020-09-08 04:02:13

calvertdw
Member
Registered: 2020-02-07
Posts: 18

Re: [SOLVED] NVMe Drive not working in Raid On Mode

I found a message from the kernel during boot to live media in "Raid On" mode. (full dmesg:  http://ix.io/2wKY)

[    4.970449] ahci 0000:00:17.0: version 3.0
[    4.970572] ahci 0000:00:17.0: Found 1 remapped NVMe devices.
[    4.970573] ahci 0000:00:17.0: Switch your BIOS from RAID to AHCI mode to use them.
[    4.970578] ahci 0000:00:17.0: controller can't do SNTF, turning off CAP_SNTF
[    4.970588] ahci 0000:00:17.0: SSS flag set, parallel bus scan disabled
[    4.970601] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x2 impl RAID mode
[    4.970603] ahci 0000:00:17.0: flags: 64bit ncq stag pm led clo only pio slum part deso sadm sds apst 
[    4.971003] scsi host0: ahci
[    4.971211] scsi host1: ahci

Last edited by calvertdw (2020-09-08 04:13:46)

Offline

#14 2020-09-08 04:10:13

calvertdw
Member
Registered: 2020-02-07
Posts: 18

Re: [SOLVED] NVMe Drive not working in Raid On Mode

Offline

#15 2020-09-13 17:05:22

calvertdw
Member
Registered: 2020-02-07
Posts: 18

Re: [SOLVED] NVMe Drive not working in Raid On Mode

Fixed.

1. BIOS now set to AHCI mode.
2. Used live image to reformat my EFI partition (didn't change it -- fat32).
3. In arch-chroot, reinstall GRUB
4. Update /etc/fstab to new ESP UUID

Thanks all for the help!

Offline

Board footer

Powered by FluxBB