Cannot remount loopfiles
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Wubi |
In Progress
|
Low
|
Unassigned | ||
initramfs-tools (Ubuntu) |
New
|
Undecided
|
Unassigned |
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@nbago~#mount -t vfat -o rw /dev/sda8 /mnt
root@nbago~#mount -o loop,ro /mnt/root.disk /media/tmp
root@nbago~#mount -o remount,rw /media/tmp
mount: block device /mnt/root.disk is write-protected, mounting read-only
root@nbago~#umount /media/tmp
root@nbago~#mount -o loop,rw /mnt/root.disk /media/tmp
root@nbago~#mount -o remount,ro /media/tmp
root@nbago~#mount -o remount,rw /media/tmp
root@nbago~#mount -o remount,ro /mnt
mount: /mnt is busy
root@nbago~#mount -o remount,ro /media/tmp
root@nbago~#mount -o remount,ro /mnt
mount: /mnt is busy
root@nbago~#umount /media/tmp
root@nbago~#umount -d /mnt
root@nbago~#mount -t vfat -o ro /dev/sda8 /mnt
root@nbago~#mount -o loop,rw /mnt/root.disk /media/tmp
root@nbago~#mount -o remount,rw /media/tmp
mount: block device /mnt/root.disk is write-protected, mounting read-only
root@nbago~#umount /media/tmp
root@nbago~#losetup /dev/loop3 /mnt/root.disk
root@nbago~#mount -o ro -t ext3 /dev/loop3 /media/tmp
root@nbago~#mount -o remount,rw /media/tmp
mount: block device /dev/loop3 is write-protected, mounting read-only
Related branches
description: | updated |
description: | updated |
Changed in wubi: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in wubi: | |
status: | Confirmed → In Progress |
Changed in wubi: | |
milestone: | none → 8.10 |
Changed in wubi: | |
milestone: | 8.10 → none |
The workaround involves mounting all loopinstallations rw to begin with:
--- local 2008-03-13 11:15:50.346417000 +0000
+++ local.new 2008-03-13 11:16:44.140677000 +0000
@@ -62,7 +62,7 @@
[ "$quiet" != "y" ] && log_end_msg
if [ ${readonly} = y ] && \
roflag= -r
roflag= -w
- ([ -z "$LOOP" ] || [ "${FSTYPE#ntfs}" = "$FSTYPE" ]); then
+ [ -z "$LOOP" ]; then
else