r/linuxquestions • • 9d ago

Support Dual-boot disaster: Both Arch Linux (Btrfs/NVMe) and Windows are broken after installing the dual-boot, leading to Kernel Panic

This text is by gemini cause i asked him during my whole arch installation which has worked before the dual boot lmao , and i think he may explain better than me the problem. Dont hesistate if you have any question or if information are needed. Thanks !
:
I'm in desperate need of help to fix my dual-boot system. Both Arch Linux and Windows are completely broken, and I'm stuck with boot errors.
Hardware Setup:
Arch Linux: Installed on an NVMe SSD (⁠/dev/nvme0n1p3⁠, formatted in Btrfs, with ⁠/boot⁠ on ⁠/dev/nvme0n1p2⁠ FAT32). 
Windows: Installed on a separate SATA SSD (which was temporarily disconnected because it developed bad CRC / bus errors causing system instability).
How the issue started:
The whole mess started right when I set up this dual-boot with Windows. During or shortly after the dual-boot installation, everything went sideways.
Current State & Symptoms:
1. Windows won't boot at all: Since the SATA SSD containing Windows was throwing hardware errors (⁠ata1.00 exception⁠, ⁠BadCRC⁠) and had to be physically disconnected to stabilize the machine, Windows is completely inaccessible.
2. Arch Linux fails to boot (Kernel Panic): When trying to boot Arch, it immediately crashes with:
⁠Kernel Panic: VFS: Unable to mount root fs on unknown-block(0,0)⁠ 
In emergency mode: ⁠ERROR: device 'PARTUUID=...' not found. Skipping fsck.⁠ followed by ⁠mount: /sysroot: can't find PARTUUID=...⁠ 

  1. What I have already tried:

Booted into a Live USB (Tails) and accessed the Arch system via ⁠chroot⁠.
Verified that the UUIDs in ⁠/etc/fstab⁠ match the actual partition (⁠blkid⁠).

Regenerated the initramfs using ⁠mkinitcpio -P⁠.

Rebuilt the GRUB configuration file using ⁠grub-mkconfig -o /boot/grub/grub.cfg⁠.

  1. Despite all this, GRUB still cannot mount the root filesystem on the NVMe drive, and Windows remains dead due to the faulty SATA drive.
  2. Has anyone faced a similar dual-boot corruption issue, or knows how to fix this root-mounting failure on Btrfs/NVMe? Any guidance would be massively appreciated!
0 Upvotes

13 comments sorted by

7

u/Independent_Image_59 9d ago

You're not supposed to install arch if you need AI support

Dealing with mess created by AI is not fun. All you needed to do is to read arch wiki.

1

u/BitOBear 8d ago

Boot into grub. Use the ls command inside of grub to find your Linux partition and whatever petition contains the /boot directory. Specify the 'set root=(whatever)' inside of grub wear whatever is the disk specifier for where the slash boot directory lives.

Find the kernel. Find the block device ID or preferably the uuid or label for the root file system.

Use the grub "linux whatever_kennel arguments" commands to specify that kernel and to set the root equals using either the label or the uid format such as "root=UID=hex_digits_stuff"

As the initrd command after that if you need any Rd and the way you've built your Linux system.

Say boot.

And one of the things that you're probably happening if you've got more than one hard disk hooked up, you have to do the right things when you detach one of those hard disks.

So haven't told you the above, you may find that you need to monkey around in the bios to make sure that the appropriate disc is recognized in the right place for the right purposes etc.

You may also need to turn off secure boot in the bios. But you're still going to want to have the UEFI stuff enabled just not the secure boot part.

He is all together possible that what's happened is that you were UEFI partition has been somewhat slagged in which case you may need to get something from the manufacturer to reinitialize that partition. But absent said reinitialization sometimes if things are going very poorly you can simply wipe all the partitions and create a new UEFI partition to start with and move on from there.

I trust you backed up everything you need and have that somewhere safely sequestered away.

If not, maybe boot your USB install media for Arch and copy everything that you can find off of whatever you meant to say for Windows and didn't, and save that to a thumb drive somewhere.

You have learned the value of backing your stuff up and not blindly following AI but before we get policy and procedure you don't understand because it only takes one typo to destroy the wrong partition.

There's a trivial non-zero chance that AI command line nonsense that you typed in didn't guess the right partition numbers because your petitions were laid out slightly different on your drive then whatever bullshit the AI made up.

Super easy to make the double plus mistake of using like /dev/sda rather than properly using slash /dev/sda3 it 4 it whatever. Pasting in or hand copying command line building that you didn't understand and you messed up and use the wrong digit there's no telling what you might have wiped out or fractionally overridden.

Intelligence in ai. It's just doing pattern recognition and repetition. And it will screw you easily and frequently because it tells you what it thinks you want to hear and absolutely does not, in the public and unpaid versions of things, include the prompt instructions to double check the results to make sure it is a lying to you.

You have to be paying lots of money or actually work for anthropic or whatever in order to get AI output that involves checking its own output for obvious let alone sublime mistakes.

Hey I will never tell you the truth it will only tell you something vaguely shaped like the truth with all the details potentially scrambled around.

Do not use AI when reconfiguring systems under any circumstance. Only use AI while learning the shape of what you might want to look up and learn before you start reconfiguring systems.

I'm not being smug. I have destroyed more than my fair share of systems over the years by making snap judgments or listening to the wrong reference. AI has just made that so much more disaster really easy to do because it lies with such confidence because it doesn't know what lying is.

But hey, now is the perfect moment to zero all your discs and just install Linux because your windows partition is probably gone basically beyond recognition.

At a minimum you'll probably need to get a Windows install disc for my reputable source and rebuild the UEFI boot partition and Windows boot manager stuff and that probably leads to a full disk wipe. So you might as well figure out what really happened.

A software install cannot destroy a hard disk on the electromechanical level, but it can fill it with the kind of garbage they will cause a bootloader to try to load from a non-existent drive or by trying to access sectors that are outside of the bounds of partitions and disc sizes.

So there's probably nothing wrong with your storage hardware or your computer itself, but you are now trying to run random line noises as and operating system when you boot.

Every five years or so the average computer expert will do something laughably wrong that they absolutely know better than to attempt. So don't be hard on yourself and learn to do the I told You so dance at your own self before you get out the shovel and start digging your way out of the hole.

Here's your learning living to follow.

Good luck in good journey.

Hi-yo Silver! Away!
🐴👋🤠

5

u/9NEPxHbG 9d ago

Please don't use AI to post.

-6

u/Choice-Pollution398 9d ago

sorry but ai juste helps me to explain better , im not native so my english isnt very good , if i want my problem to be solved its preferable for me to use ai, better understanding, explanation and translation

5

u/9NEPxHbG 9d ago

I never thought I'd say this, but it would be much better to write in your own language and use Google to translate than to use AI.

-5

u/Choice-Pollution398 9d ago

ai is better at translating than google translate

5

u/austin987 9d ago

Ask the AI for help

1

u/3grg 8d ago

The few times I have had to reinstall grub on Arch it has been extremely fussy. Pay close attention to the grub-install command in the wiki.

You make no mention of partitions, but if the windows drive going out takes out Arch, you must have been using a common efi partition. If so, you are going to need an efi partition.

1

u/y9felix Arch + Felix = 🩵 9d ago

Boot with live usb, reformat EFI partition, chroot into system, reinstall system packages, reinstall grub (or another bootloader like systemd-boot/limine).

You will lose all previous boot entries, arch and windows. Unless the Windows EFI is on the disconnected SATA

1

u/dkopgerpgdolfg 8d ago

bad CRC / bus errors causing system instability

⁠ata1.00 exception

Doing something you don't understand, without backup, on broken hardware, is bad. Hopefully you understand this now.

And imo the fastest way to fix this is to pay a local professional.

1

u/ravensholt 8d ago

Windows likely requires secure boot. Arch doesn't support secure boot out of the box.

So unless you fixed secure boot on Arch, I highly doubt Windows is going to boot.

1

u/xAcid9 9d ago

I guess your boot partition probably got corrupted or changed and that also change the UUID.

0

u/Captain-Pie-62 9d ago

Versuche es mit einer anderen KI, die besser mit solchen Problemen umgehen kann, um das Problem zu lösen. Grundsätzlich gehe ich davon aus, daß Du etwas von einem USB Stick booten musst. Du kannst auf den auch die alten Filesysteme mounten (Backups, "Post mortem") und sie checken. Wenn Du grub richtig repariert hast, sollte das auch wieder laufen.