New install not booting on second boot, disk mounting problem?

Hi, so I've done a new install wiping one disk that had OpenSUSE Slowroll installed on it and keeping two others as-they-were because they just held games and backups. First boot after installation worked fine, but when I try to re-boot I get the splash screen forever with no progress. I've attached a screenshot of what I can see when I look at the boot process. I think it is failing to mount a disk but I cannot find the fstab when I've booted into a recovery live USB, can anyone help?
No description
31 Replies
nagito || Knight of Emilia
yeah it's tryin to mount something but not succeeding also yeah you can get to fstab it's a bit onnoying though unless you happened to add the root account in which case it's pretty simple
1Lemon
1LemonOP•8h ago
I made one user account that was the admin on install, would that be considered the root account?
nagito || Knight of Emilia
no it can use sudo but it ain't root
1Lemon
1LemonOP•8h ago
Well then no, sadly
nagito || Knight of Emilia
you noticed there's a separate root account option in the installer we can still get to it the paths are just a bit wonky compared to normal
1Lemon
1LemonOP•8h ago
I usually do this on new installs too, oh well, wonky paths it is
nagito || Knight of Emilia
you can add the emergency argument to the kernel command line this is single user mode but in the initramfs no root password required mount the system partition somewhere the normal place for it on fedora atomic is /sysroot that partition has an ostree folder in there you have the deploy folder in there you have fedora in there is some random hash in the hash folder is etc/fstab so /sysroot/ostree/deploy/fedora/somehash/etc/fstab oh it's deploy/fedora/deploy there are multiple hash folders for each system instance
1Lemon
1LemonOP•8h ago
Ok so I've added emergency to the ostree:0 boot option and started the boot from that, it's on a step 'job dev-disk-by\xxxxxx\ running (6min/no limit)'
nagito || Knight of Emilia
oh i know of another way init=/bin/bash this will either work & put you into the system where you can just edit fstab or send you to emergency mode o the initrd
1Lemon
1LemonOP•8h ago
Stick the init at the end of the linux line?
nagito || Knight of Emilia
yeah this usually switches to the real system & runs bash as the init process handy though it might not work the same on fedora atomic
1Lemon
1LemonOP•8h ago
Same thing has happened, it's hit that job again. I presume I can access those folders if I boot into my recovery live USB so I'll try that
nagito || Knight of Emilia
yeah try that i guess or you can mess up the ostree= argument
1Lemon
1LemonOP•8h ago
Please hold while I boot off the worlds slowest USB drive 😆
nagito || Knight of Emilia
this should definitely make it fail this is why the toram option exists usually i guess the initial boot would be just as slow though but after it's booted you just forget the USB
1Lemon
1LemonOP•8h ago
Progress, so I've found fstab in /root/ostree/deploy/HASH.0/etc/fstab
nagito || Knight of Emilia
now you just fix it i guess
1Lemon
1LemonOP•8h ago
So the UUID that is in the job at the top is neither one of my partitions or in the fstab In fact the fstab looks just fine
nagito || Knight of Emilia
this might be the other system's fstab if it is you just boot the other system boom fixed & update
1Lemon
1LemonOP•8h ago
No description
nagito || Knight of Emilia
to make sure both instances are fixed
1Lemon
1LemonOP•8h ago
Do you mean the Ostree:1 version?
nagito || Knight of Emilia
yeah it usually says the system version in grub but sometimes not
1Lemon
1LemonOP•8h ago
I just had ostree:0 and ostree:1 in GRUB, just tried the ostree:1 and same issue I suspect the eaiest thing is just to do a new install at this point, and totally reformat the installation drive. It was only an afternoon old so it's not the end of the world
nagito || Knight of Emilia
yeah this time don't forget the root account i guess
1Lemon
1LemonOP•8h ago
Because I don't know what is going on with my swap partition, it should have been 24GB but is 600MB and has a weird UUID
nagito || Knight of Emilia
if you ever do manual partitioning a boot partition is required it seems OSTree doesn't seem to work without one
1Lemon
1LemonOP•7h ago
To be fair I let the automatic tool do the positioning, I'll do it myself next time Thanks for your help
nagito || Knight of Emilia
oh my bad i looked at the picture again & it looks like it's trying to mount the drive in the initrd which means fstab really doesn't matter which explaoms why fstab wasn't the problem the only other thing i know it can be is / more specifically /sysroot that's the only partition the initrd really needs so all we probably needed to do is change root= on the kernel command line
1Lemon
1LemonOP•4h ago
Oh to be fair I've not done the reformatting yet! I was rudely asked to do my actual job so was going to do it this evening, what would need doing exactly to recover this?
nagito || Knight of Emilia
you should already have root=UUID=SOMETHING on the command line you could just add something like root=/dev/sdaX or wherever your / is this should make it boot at least fun fact you can also use root=LABEL=YOUR_ROOT_LABEL if you had one as for how you'd fix it permanently i'm not sure if it'd fix itself but you can add/overwrite kernel arguments with rpm-ostree karg root=value i think it was no idea why it'd mess itself up though

Did you find this page helpful?