[Bug 1992297] Re: Installation enters wrong UUID for EFI partition in fstab when installing Ubuntu with "ubiquity -b"

Launchpad Bug Tracker 1992297 at bugs.launchpad.net
Wed Dec 14 04:17:16 UTC 2022


[Expired for ubiquity (Ubuntu) because there has been no activity for 60
days.]

** Changed in: ubiquity (Ubuntu)
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1992297

Title:
  Installation enters wrong UUID for EFI partition in fstab when
  installing Ubuntu  with "ubiquity -b"

Status in ubiquity package in Ubuntu:
  Expired

Bug description:
  Ubuntu wouldn't boot after installing it on my SSD using the "ubiquity -b" command, and instead comes with the recovery menu(terminal).
  the reason it didn't boot was because ubiquity assigned the wrong UUID for my EFI partition in fstab.
  manually changing the UUID to the correct one fixed the system and it works normally now.
  the UUID of the EFI partition did not change relative to the UUID it had before installing Ubuntu, I confirmed this by checking what UUID that partition had in a fstab file of a other distro installation on that SSD using the same EFI partition which I had used before installing ubuntu and didn't change after installing ubuntu.

  Basic system information:
  1:Dell latitude E6430(this mashine) with old nvidia gpu.
  2:lenovo Ideapad 5 14ARE05(other mashine) ryzen 5 16gb ram
  3: sharkoon QuickPort XT Duo Clone(device for connecting SSD or HDD to a computer over usb)
  4: in device 2 there was a hardware encrypted samsung SSD build in to it(the default one 512gb) this one had the default software and os from lenovo on it(windows) and hadn't been altered since for school and "work" they require one to use that, I didn't select it in the installer and it was hardware encrypted, but perhaps it being there might be part of the bug/cause.

  the SSD in question is a "PNY CS900 1TB SSD" 
  ----EAN =751492629964
  ----Vendorcode=SSD7CS900-1TB-RB
  ----capacity=1TB
  ----it has 4 partitions
  -first partition is the 300mb EFI partition<--(this is the partition which had the wrong UUID in FSTAB after installation)
  -second partition is 100gb ext4 to which a linux mint distro with nvidia drivers is installed
  -third partition is 100gb ext4 to which this Ubuntu intallation is installed<--(this is the installation which didn't boot before manually altering the fstab)
  -fourth partition is the rest of the space and is used for storing files and programs.

  The process which resulted in this bug:
  first I installed mint on that SSD for that old dell computer and used it, that Linux mint distro also used a old HDD in that laptop for general file storage, this was done some days ago.

  Next we skip to the installation of ubuntu:
  first I made sure to put the latest LTS of ubuntu on it, I downloaded it using the torrent and checked the checksum. the usb was using the latest version of RUFUS in uefi mode with secure boot enabled.
  The next of the proces was done on device 2 that Lenovo laptop, and the SSD was in device 3 so it was connected to the laptop(2) using USB
  my laptop gave problems with the usb due to the security engine so I disables secure boot in the bios, after that I could boot in the live usb(also connected to the computer. I went to try out ubuntu, 
  logged in to the wifi,
  ran ubiquity using the "ubiquity -b" command.
  selected "something else" at the install options for installation location.
  enebled codecs and third party drivers, and enabled update ubuntu while installing
  selected the 100gb partition for mountpoint '/' and selected the option to format it.
  selected the 300mb efi partition to be used as efi partition, didn't format or change it.
  installed ubuntu.

  after that I shut down the computer, connected the usb from the Clone 2 Duo(device 3) to the Dell laptop(1)
  the next is in laptop 1
  I booted into linux mint and ran update-grub to update grub.

  the next is on laptop 2, i switched back to laptop 2. and tried to
  boot into ubuntu, that didn't work and chrashed with some weird errors
  which seemed to be grub related as if grub used sd*x (sda1, etc.)
  mountpoints which prevented it from working on that laptop, that is
  however not a ubuntu related problem.

  so I switched back to laptop 1 the next from here on is all on that laptop, the SSD however is now directly in the system in one of the 2 HDD slots(the one to which the dvd player used to be connected).
  I booted into that new Ubunto install and got errors refferencing to that EFI partion could not be found/connected and it showed the UUID it had for that drive. so I ran blkid to check the UUID, I only have one efi partition on that drive and none on the others so there is only one efi partition and I read that UUID.

  I then opened fstab and checked the UUID it had in fstab for that efi partition, and the ID it showed did not match the ID of any partition or drive UUID on the system.
  note I didn't make any changes to the fstab before fixing this UUID to make it working. 
  so the values in there should be the values that where put in there by the installer.
  the root file system mounted at '/' at that other partiton was mounted right and the UUID was right as well.
  I checked the ID of that EFI partition using the fstab file in the linux mint partition which I already had on that ssd. before installing ubuntu, and the EFI partition's real UUID didn't change when comparing the UUID from before the instal and after the install.

  so in short:
  ubunu lts live usb using rufus, ran ssd using device 3 on device 2 during the installation(so usb connected), went into "try ubuntu", ran installer using "ubiquity -b" to not install a new bootloader. after shutdown connected ssd to device 1 using device 3, just like how it was connected to device 2 during install. I booted into Linux mint and ran "update-grub" to make ubuntu show in the grub menu. I booted into ubuntu, got a error, found out that in the fstab file the UUID of the EFI partiton was wrong despite the UUID not having changed after correcting it to the right one it worked.

  type of problem/bug: depends on how likely it is and the type of user, for me it is no problem anymore since I fixed it and to me it was easy to fix and obvious what the fault was. if this problem is something that seems to be hardware speciffic or speciffic and very rare to happen then the chance that it happens to many people who don't know what to do is small. however if this problem turns out to be more common or that it could happen also on normal systems with a new install then that could be a problem if it caused general users from not being able to boot their system directly after install.
  My reason for submitting this bug rapport is solely in case it might affect others, simply changing the /etc/fstab to correct it fixes it for me, but doesn't fix whatever caused the UUID to be set wrong during the ununtu installer, and so this report is for the chance that this might be a bigger bug hiding somewhere.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: ubiquity (not installed)
  ProcVersionSignature: Ubuntu 5.15.0-48.54-generic 5.15.53
  Uname: Linux 5.15.0-48-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.1
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Sun Oct  9 14:48:50 2022
  InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash ---
  InstallationDate: Installed on 2022-10-09 (0 days ago)
  InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
  SourcePackage: ubiquity
  Symptom: installation
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1992297/+subscriptions




More information about the foundations-bugs mailing list