[Bug 1155216] Re: Unable to install to disk when using grub loopback method

Michel-Ekimia contact at ekimia.fr
Fri Feb 14 13:44:23 UTC 2020


*** This bug is a duplicate of bug 684280 ***
    https://bugs.launchpad.net/bugs/684280

** This bug has been marked a duplicate of bug 684280
   casper toram forgets to disconnect loop device

-- 
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/1155216

Title:
  Unable to install to disk when using grub loopback method

Status in ubiquity package in Ubuntu:
  Triaged

Bug description:
  How to quickly reproduce :

  - From a Linux distro installed (Ubuntu 18.04 here)
  - Install grml  : sudo apt install grml-rescueboot
  - Get Focal iso : wget -0 /boot/grml/focal.iso http://cdimage.ubuntu.com/daily-live/current/focal-desktop-amd64.iso
  - add toram option  :  echo ' CUSTOM_BOOTOPTIONS="toram" ' | sudo tee -a /etc/default/grml-rescueboot
  - Generate the Grub entry : sudo update-grub
  - Reboot and select the Grub entry for the iso
  - on the Second grub menu ( the live iso one ) edit with e key to add the toram option , boot with F10
  - Start the Ubuntu installation : Ubiquity ask if it should try to umount /isodevice - You accept - But patitioning fails anyway .

  See https://help.ubuntu.com/community/Grub2/ISOBoot for more info


  
  -----Solution ---------------

  Before starting ubiquity :

  sudo umount -l -r -f /isodevice
  sudo losetup -d /dev/loop1

  You can then install Ubuntu and partition your disk like if you were
  on USB !

  --- Initial report ----

  When installing from an iso file, with grub's loopback option,
  Ubiquity displays a message stating the isodevice cannot be unmounted,
  even when the isofile is not located on the same harddrive as the
  installation target.

  sudo umount -l -r -f /isodevice

  solves this problem, so Ubiquity should be able to issue this command
  by itself, without any user action.

  Arbiel

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



More information about the foundations-bugs mailing list