Booting linux with nvme drives in UEFI mode

⇠ Back to Blog:Tech
m
(My procedure to install linux on my Dell XPS computer in UEFI mode)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Jan  1 16:15:07 kubuntu ubiquity: umount: /target/cdrom: mountpoint not found
+
The paradigm for booting systems changed in 2005 or so. The venerable BIOS increasingly gets replaced by UEFI (Unified Extensible Firmware Interface) that provides more support to basic functionalities (including advanced graphical/mouse support), which, however, comes at the price of increased complexity for linux systems. We are now back in the era where the boot loading sequence is one of the serious challenges of setting up a linux system (LILO had greatly simplified it and by the time of Grub, it was fairly automatic already).
Jan  1 16:15:07 kubuntu /plugininstall.py: log-output -t ubiquity umount /target/cdrom
+
Jan  1 16:15:07 kubuntu /plugininstall.py: log-output -t ubiquity mount --bind /cdrom /target/cdrom
+
Jan  1 16:15:07 kubuntu ubiquity: /usr/lib/ubiquity/apt-setup/generators/01setup: 9: /usr/lib/ubiquity/apt-setup/generators/01setup: cannot open /target/etc/apt/sources.li
+
Jan  1 16:15:08 kubuntu in-target: Reading package lists...
+
Jan  1 16:15:08 kubuntu in-target:
+
Jan  1 16:15:08 kubuntu apt-setup: Using CD-ROM mount point /cdrom/
+
Jan  1 16:15:08 kubuntu apt-setup: Identifying...
+
Jan  1 16:15:08 kubuntu apt-setup: [43aa65744ed4d4e6bf51470e9c73a186-2]
+
Jan  1 16:15:08 kubuntu apt-setup: Scanning disc for index files...
+
Jan  1 16:15:08 kubuntu apt-setup: Found 0 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
+
Jan  1 16:15:08 kubuntu apt-setup: E: Unable to locate any package files, perhaps this is not a Debian Disc or the wrong architecture?
+
Jan  1 16:15:08 kubuntu apt-setup: E: No CD-ROM could be auto-detected or found using the default mount point.
+
Jan  1 16:15:08 kubuntu apt-setup:    You may try the --cdrom option to set the CD-ROM mount point.
+
Jan  1 16:15:08 kubuntu apt-setup:    See 'man apt-cdrom' for more information about the CD-ROM auto-detection and mount point.
+
Jan  1 16:15:11 kubuntu activate-dmraid: No Serial ATA RAID disks detected
+
Jan  1 16:15:11 kubuntu /plugininstall.py: log-output -t ubiquity umount /target/cdrom
+
Jan  1 16:15:11 kubuntu /plugininstall.py: Exception during installation:
+
Jan  1 16:15:11 kubuntu /plugininstall.py: Traceback (most recent call last):
+
Jan  1 16:15:11 kubuntu /plugininstall.py:  File "/usr/share/ubiquity/plugininstall.py", line 1710, in <module>
+
Jan  1 16:15:11 kubuntu /plugininstall.py:    install.run()
+
Jan  1 16:15:11 kubuntu /plugininstall.py:  File "/usr/share/ubiquity/plugininstall.py", line 60, in wrapper
+
Jan  1 16:15:11 kubuntu /plugininstall.py:    func(self)
+
Jan  1 16:15:11 kubuntu /plugininstall.py:  File "/usr/share/ubiquity/plugininstall.py", line 184, in run
+
Jan  1 16:15:11 kubuntu /plugininstall.py:    self.configure_apt()
+
Jan  1 16:15:11 kubuntu /plugininstall.py:  File "/usr/share/ubiquity/plugininstall.py", line 587, in configure_apt
+
Jan  1 16:15:11 kubuntu /plugininstall.py:    "AptSetup failed with code %d" % ret)
+
Jan  1 16:15:11 kubuntu /plugininstall.py: ubiquity.install_misc.InstallStepError: AptSetup failed with code 141
+
Jan  1 16:15:11 kubuntu /plugininstall.py:
+
Jan  1 16:15:12 kubuntu partman:  No matching physical volumes found
+
Jan  1 16:15:12 kubuntu partman:  Reading volume groups from cache.
+
Jan  1 16:15:13 kubuntu ubiquity: tune2fs: Bad magic number in super-block while trying to open /dev/nvme0n1
+
Jan  1 16:15:13 kubuntu ubiquity: Found a gpt partition table in /dev/nvme0n1
+
Jan  1 16:15:13 kubuntu partman: Error running 'tune2fs -l /dev/nvme0n1'
+
Jan  1 16:15:13 kubuntu ubiquity: tune2fs: Bad magic number in super-block while trying to open /dev/nvme0n1
+
Jan  1 16:15:13 kubuntu ubiquity: Found a gpt partition table in /dev/nvme0n1
+
Jan  1 16:15:13 kubuntu partman: Error running 'tune2fs -l /dev/nvme0n1'
+
Jan  1 16:15:14 kubuntu ubiquity[2122]: Device free not found in os-prober output
+
Jan  1 16:15:14 kubuntu ubiquity[2122]: Device /dev/nvme0n1p1 not found in os-prober output
+
Jan  1 16:15:14 kubuntu ubiquity[2122]: Device free not found in os-prober output
+
Jan  1 16:15:14 kubuntu ubiquity[2122]: debconffilter_done: ubi-partman (current: ubi-partman)
+
  
My solution is to run [https://sourceforge.net/p/boot-repair/home/Home/ boot-repair] after the installer crashed.
+
--more--
  
sudo add-apt-repository ppa:yannubuntu/boot-repair
+
My [[Caliz (computer)|Dell XPS]] computer comes with [https://en.wikipedia.org/wiki/NVM_Express nvme] hard drive, which are a headache for old-style (so-called ''legacy'') booting.
sudo apt-get update
+
sudo apt-get install -y boot-repair && boot-repair
+
  
Boot-repair comes with problems of its own, along the lines of Please enable a repository containing the [...] packages in the software sources of ... Then try again. Generating the report and looking at the error, it shows where the software is looking for sources.list. It is then just a matter of locating it (locate) and symlink, then run again. Following the steps boot-repairs advises you to take successfully installs the boot-loader.
+
I installed [[kubuntu]] by booting from USB in UEFI mode. You achieve this by pressing F2 when the DELL logo shows up and in ''Boot Option'', select UEFI. Secure mode will surely have to be disabled. The default installer fails. My solution is to run [https://sourceforge.net/p/boot-repair/home/Home/ boot-repair] after the installer crashes (you need internet connection)
 +
 
 +
sudo add-apt-repository ppa:yannubuntu/boot-repair
 +
sudo apt-get update
 +
sudo apt-get [[Media:Example.ogg]]install -y boot-repair && boot-repair
 +
 
 +
Boot-repair comes with problems of its own, along the lines of
 +
 
 +
Please enable a repository containing the [...] packages in the software sources of ... Then try again.
 +
 
 +
Generating the report (pasted in http://paste.ubuntu.com/p/Zt2b7KMXdS/ in my case) and looking at the error, it shows where the software is looking for sources.list. It is then just a matter of locating it (locate) and symlink, then run again. In my case, that required:
 +
 
 +
sudo ln -s /etc/apt/sources.list /target/etc/apt
 +
 
 +
Following the steps boot-repairs advises you to take successfully installs the boot-loader.
 +
{{wl-publish: 2019-01-03 21:06:26 +0000 | Laussy }}

Latest revision as of 21:06, 3 January 2019

The paradigm for booting systems changed in 2005 or so. The venerable BIOS increasingly gets replaced by UEFI (Unified Extensible Firmware Interface) that provides more support to basic functionalities (including advanced graphical/mouse support), which, however, comes at the price of increased complexity for linux systems. We are now back in the era where the boot loading sequence is one of the serious challenges of setting up a linux system (LILO had greatly simplified it and by the time of Grub, it was fairly automatic already).

My Dell XPS computer comes with nvme hard drive, which are a headache for old-style (so-called legacy) booting.

I installed kubuntu by booting from USB in UEFI mode. You achieve this by pressing F2 when the DELL logo shows up and in Boot Option, select UEFI. Secure mode will surely have to be disabled. The default installer fails. My solution is to run boot-repair after the installer crashes (you need internet connection)

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update 
sudo apt-get Media:Example.ogginstall -y boot-repair && boot-repair

Boot-repair comes with problems of its own, along the lines of

Please enable a repository containing the [...] packages in the software sources of ... Then try again.

Generating the report (pasted in http://paste.ubuntu.com/p/Zt2b7KMXdS/ in my case) and looking at the error, it shows where the software is looking for sources.list. It is then just a matter of locating it (locate) and symlink, then run again. In my case, that required:

sudo ln -s /etc/apt/sources.list /target/etc/apt

Following the steps boot-repairs advises you to take successfully installs the boot-loader.