boot failure after installing Mint 20
hi to all Linux Mint experts!
I'm not new to Linux at all, but new to Linux Mint, and new to grub. I've started installing Linux Mint for friends and family on accounts of it being beginner-friendly. But I have come across an issue that a beginner can't solve. A minor nuisance is that the installer freezes occasionally. I've observed that on two machines, using the same GT 240 graphics card. My assumption is that it is nouveau-related, and well, i can re-boot until the installer runs through. A much bigger problem is this: whenever I try a non-trivial partitioning scheme (I choose "Something else" and then create two partitions mounted at / and /boot, for instance) the installation runs through, but the subsequent boot ends up with kernel panic - root filesystem not found. Upon further inspection it turns out that the grub parameters for root= are wrong (wrong UUIDs or no UUIDS at all) When I repeat the install with a simpler scheme (only one partition mounted on /) everything is installed correctly. Now the questions to the experts: what am I doing wrong? how can I fix the grub installation in case of a botched install? I am familiar with fdisk and the like, just not with grub. |
Why not select alongside or use whole disk, to see what the installer does? Do note if you select whole disk it will erase everything on the disk, and create a new partition layout. For alongside you will need empty space on the drive where no partition exists.
Code:
Now the questions to the experts: what am I doing wrong? how can I fix the grub installation in case of a botched install? |
I'll have a small wager on EFI. Let's see "lsblk -f" from one of the victims where your manual partitioning failed initially.
|
1 Attachment(s)
Quote:
Quote:
|
1 Attachment(s)
Quote:
|
The first thing that stands out is the size of your /boot partition 94M, that may be to small, would recommend at least 512M.
|
As it happens, you don't actually need a separate /boot partition even for a LUKS encrypted system. Setup is more complex, and I don't know it Mint supports it from the installer. I'd doubt it actually. I'll toss in a thought - why in hell do you want to encrypt the OS itself ?. Give them a separate /home and encrypt that.
As for your system, the odd UUIDs aren't actually UUIDs at all - Microsoft filesystems don't include them, so Linux generates a fudged entry just for convenience; most people can't tolerate inconsistency ... :p As suggested above, you need to allocate an EFI mountpoint to the installer - best IMHO to use the Windoze one on /dev/nvme1n1p1. Personally I wouldn't use a /boot partition at all, but it's easily accommodated even with an EFI. |
OK, thanks. Would it be wrong to have two separate EFI partitions, one on each NVME drive? That would give me the option of taking out a drive at will. I think I'll just try it out.
According to df, the boot partition is 30% full at this point in time. Regarding encryption, I don't like the performance overhead at all, but we live in Orwellian times. It is always hard to control what data ends up where, in /var/cache, /tmp, /opt etc. and with LUKS you need a key for every volume. Doing / is just the most simple option... I'll think about it. |
Quote:
|
1 Attachment(s)
Creating an EFI partition on the first NVME worked fine, windoze boots from it, but Mint still baulks with the "root fs not found" panic. /etc/fstab has the correct UUIDs this time. I noticed in the editor snippet that I get when hitting "e" from the grub menu, on the kernel command line, it says root=/dev/nvme0n1p3 (which is technically correct). I changed it to root=UUID=722a3c99-96a1-4158-91f2-43996924843a but it still fails. So I'm a little bit out of my depth, other than trying to club everything into a single partition.
lsblk output is attached. |
OK, having spent way too much time on this issue already my verdict is as follows: for some unknown reason it is impossible to set up an installation with / and /boot on different partitions with the Mint 20 installer. The grub stanza it creates looks correct (I changed the last line to UUID= with no effect):
Code:
menuentry 'Linux Mint 20 Cinnamon' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-722a3c99-96a1-4158-91f2-43996924843a' { Together with the constantly freezing nouveau driver, my first impression has been less than stellar... |
All times are GMT -5. The time now is 09:18 PM. |