Unable to mount /dev/loop0 during install with a memory stick
Bug #1431841 reported by
FLORA
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
casper (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I use backbox-
(initramfs) stdin: Not a typewriter
mount: mounting dev/loop0 on //filesystem.
Can not mount /dev/loop0 (/cdrom/
The ISO image is ok (I cheked the md5 sum and sha256 sum). I tried to create my live usb with dd, UNetbootin and also usb-creator-gtk. I tried "install backbox", "Try BackBox without installing", and "check CD for defect".
To post a comment you must log in.
I had a similiar problem, here my solution:
---
Package: casper
Version: 1.340.2
Effect:
filesystem.squashfs cannot be mounted during boot. The system is packed
in iso-image file of type "udf".
This error message is displayed: squashfs failed: invalid argument squashfs"
"(initramfs) mount: mounting /dev/loop0 on //filesystem.
can not mount /dev/loop0 (...) on //filesystem.
Problem:
During start-up, the iso-image file will not be mounted properly.
The file system of the iso-image is "udf". The mount operation is
performed with type "iso9660" instead "udf".
Reason:
The file system of the iso-image is determined with "fstype", located in
/usr/lib/klibc/bin.
Unfortunately, fstype cannot distinguish between iso9660 and udf. The
type "iso9660" is always reported, also if "udf" is the correct file type.
This leads to a wrong mount command.
The iso-image file will be mounted, but all files which are larger
then 4 GB within the image file, cannot be read correctly.
Proposal for solution: initramfs- tools/scripts/ casper- helpers" : initramfs- tools/scripts/ casper- helpers ------------------ ------- ------- ------- ------- ------- ------- ------- ------- ------
Changes within "/usr/share/
If fstype detect an iso9660 file type, an additional check is necessary
to distinguish, if it is udf or iso9660.
For this, add following four source lines (marked with "added by.."):
--- /usr/share/
... snip ...
get_fstype() {
local FSTYPE
local FSSIZE
eval $(fstype < $1)
# added: fstype cannot detect file system of type "udf"
if [ "$FSTYPE" == "iso9660" ]; then # added
/sbin/blkid -s TYPE -o value $1 2>/dev/null # added
return 0 # added
fi # added
if [ "$FSTYPE" != "unknown" ]; then
echo $FSTYPE
return 0
fi
/sbin/blkid -s TYPE -o value $1 2>/dev/null
}
... snip ...
-------
#### Configuration ####### ####### ####### ####### ####### ####
dpkg --list casper
Gewünscht= Unbekannt/ Installieren/ R=Entfernen/ P=Vollständig Löschen/Halten Nicht/Installie rt/Config/ U=Entpackt/ halb konFiguriert/ =(kein) /R=Neuinstallat ion notwendig (Status, Fehler:
Architektur Beschreibung ======= ======= ======= ======= ======= ======= ======= ======= -====== ======= ======= ======= ======= ======= ======= ===-=== ======= ==-==== ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= =
i386 Run a "live"
| Status=
Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?
GROSS=schlecht)
||/ Name Version
+++-===
ii casper 1.340.2
preinstalled system from read-only media
dpkg --status casper
Package: casper
Status: install ok installed
Priority: extra
Section: misc
Installed-Size: 256
Maintainer: Ubuntu Developers <email address hidden>
Architecture: i386
Version: 1.340.2
Depends: libc6 (>= 2.8), libplymouth2 (>= 0.8.0~-13~ppa1),
initramfs-tools (>= 0.92bubuntu55), busybox-initramfs (>=
1:1.1.3-4ubuntu3), dmsetup...