[SOLVED] PC restarts by itself and boots to initramfs, issue with iommu or nvme ssd storage

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
cornwaffles
Level 1
Level 1
Posts: 2
Joined: Tue Jan 25, 2022 12:10 pm

[SOLVED] PC restarts by itself and boots to initramfs, issue with iommu or nvme ssd storage

Post by cornwaffles »

Hello, I have Linux Mint 20.3 Cinnamon installed and sometimes noticed my pc restarting after on idle for a long while but this time it won't boot to any graphical ui, even in older kernel or recovery mode.

I have the following hardware in the PC:

Motherboard: B450M PRO-VDH MAX
Procssor(+graphics): AMD Athlon 3000G
RAM: Patriot Viper Steel DDR4 16GB (2 x 8GB) 3000MHz
Storage: WD Blue SN550 1 TB M.2 PCIe NVMe SSD

Now letting the PC boot by itself, yields a shell with these logs (I'm using Google Lens to copy the text from the screen and edited the ocr errors out)

Code: Select all

[0.322284] do_IRQ: 1.55 No irg handler for vector 
[0.322284] do_IRQ: 2.55 No irq handler for vector 
[0.322284] do_IRQ: 3.55 No irg handler for vector 
[1.592550] kfd kfd: Failed to resume IOMMU for device 1002:15dd 
[1.592717] kfd kfd: device 1002:15dd NOT added due to errors

BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.4) built-in shell (ash) Enter 'help' for a list of built-in commands.

(initramfs)


On some reports of people running into initramfs, they enter 'exit' that would show a log, which I did and it would run and that give me this output

Code: Select all

(Initramfs) exit
/dev/nvmeon1p2: Note: If several inode or block bitmap blocks or part of the inode table require relocation, you may wish to try running e2fsck with the -b 32768 option first. The problem may lie only with the primary block group descriptors, and the backup block group descriptors may be OK.

/dev/nvme0n1p2: Block bitmap for group 2752 is not in group. (block 6364308314708987980)

/dev/nvme0n1p2: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY. (i.e., without a or -p options) 
fsck exited with status code 4

The root filesystem on /dev/nvon1p2 requires a manual fsck

BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.4) built-in shell (ash)

Enter 'help for a list of built-in commands.

(initramfs)
I thought it was an issue with IOMMU, so I set it from Auto to Disabled in the BIOS. However it still boots to initramfs and has the same log when entering 'exit' but the first logs are different.

Code: Select all

[1.283148] kfd kfd: error getting iommu info. is the lommu enabled? 
[1.283158] kfd kfd: Error initializing iommuv2 
[1.283259] kfd kfd: device 1002:15dd NOT added due to errors

BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.4) built-in shell (ash) Enter 'help' for a list of built-in commands.

(initramfs)
However it may be more if an issue with the storage rather than iommu. And before before I run some command that initramfs suggests but I'm not familiar with, how do I make it boot normally again without losing any data from the home folder.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepakdeshp
Level 20
Level 20
Posts: 12334
Joined: Sun Aug 09, 2015 10:00 am

Re: PC restarts by itself and boots to initramfs, issue with iommu or nvme ssd storage

Post by deepakdeshp »

As indicated you need to run fsck on /dev/nvme0n1p2

https://askubuntu.com/questions/885062/ ... 066#885066
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
cornwaffles
Level 1
Level 1
Posts: 2
Joined: Tue Jan 25, 2022 12:10 pm

Re: PC restarts by itself and boots to initramfs, issue with iommu or nvme ssd storage

Post by cornwaffles »

I ran

Code: Select all

fsck -yf /dev/nvme0n1p2
as you described and after entering exit, it showed the login screen and all the files are still there. Thank you very much
Locked

Return to “Installation & Boot”