[Bug 201750] Re: Cannot remount loopfiles

Noorez 201750 at bugs.launchpad.net
Fri May 16 15:47:53 UTC 2014


ref: https://bugs.launchpad.net/ubuntu/+source/initramfs-
tools/+bug/1317437

possibly related to this bug:

The kernel parameter 'rw' was required to make loopinstalled (wubi)
ubuntu 14.04 boot. I have a small fix for the initramfs-tools that fixes
this.

The loop device that root.disk was mounted on needs to be setup read-
write so that the loop filesystem can be remounted as read-write from
read-only.

I have a patch almost ready... (first ever ubuntu patch so working
through the process...)

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

Title:
  Cannot remount loopfiles

Status in Wubi, Windows Ubuntu Installer:
  In Progress
Status in “initramfs-tools” package in Ubuntu:
  In Progress

Bug description:
  Binary package hint: initramfs-tools

  Loopfiles inside of vfat cannot be remounted rw. This preventfs people
  from booting off loopinstallations in vfat. At the moment there is an
  exception in scripts/local to mount ntfs filesystems rw by default
  since those too cannot be remounted (bug #186117). It might be
  necessary to extend the treatment to all loopinstalation filesystems.
  Following are some of my experiments, not sure if there is some other
  way to be able to remount the host/loopfile.

  root at nbago~#mount -t vfat -o rw /dev/sda8 /mnt
  root at nbago~#mount -o loop,ro /mnt/root.disk /media/tmp 
  root at nbago~#mount -o remount,rw /media/tmp
  mount: block device /mnt/root.disk is write-protected, mounting read-only
  root at nbago~#umount /media/tmp
  root at nbago~#mount -o loop,rw /mnt/root.disk /media/tmp
  root at nbago~#mount -o remount,ro /media/tmp           
  root at nbago~#mount -o remount,rw /media/tmp
  root at nbago~#mount -o remount,ro /mnt      
  mount: /mnt is busy
  root at nbago~#mount -o remount,ro /media/tmp
  root at nbago~#mount -o remount,ro /mnt      
  mount: /mnt is busy
  root at nbago~#umount /media/tmp
  root at nbago~#umount -d /mnt
  root at nbago~#mount -t vfat -o ro /dev/sda8 /mnt
  root at nbago~#mount -o loop,rw /mnt/root.disk /media/tmp
  root at nbago~#mount -o remount,rw /media/tmp
  mount: block device /mnt/root.disk is write-protected, mounting read-only
  root at nbago~#umount /media/tmp 
  root at nbago~#losetup /dev/loop3 /mnt/root.disk 
  root at nbago~#mount -o ro -t ext3 /dev/loop3 /media/tmp
  root at nbago~#mount -o remount,rw /media/tmp           
  mount: block device /dev/loop3 is write-protected, mounting read-only

To manage notifications about this bug go to:
https://bugs.launchpad.net/wubi/+bug/201750/+subscriptions



More information about the foundations-bugs mailing list