remastered 15.10 live usb doesn't find the persistent home medium (casper-rw) and drops to busybox

Asked by Thomas Weissel

the short log would be:
___________________________________________________
Begin: Running /scripts/casper-premount ... done.
done.
umount: can't umount /cdrom: Device or resource busy
Warning: Unable to find the persistent home medium
umount: can't umount /cdrom: Device or resource busy
Warning: Impossible to include the casper-sn Snapshot
umount: can't umount /cdrom: Device or resource busy
Warning: Impossible to include the home-sn Snapshot
done.
___________________________________________________

removing the "persistence" keyword from the syslinux.cfg works and the live usb drive boots just fine.
i found older bug reports concerning the same problem but the fix proposed in 2010 is already integrated into the script "casper".

so i started the flashdrive with the casper debug= option and i see the following (after probing several other devices it finally finds the right device and partition (sdb3)

___________________________________________________

+ cow_backing_mp=/cdrom
+ [ -e /cdrom/casper-rw ]
+ umount /cdrom
+ sys2dev /sys/block/sdb/sdb3
+ sysdev=/block/sdb/sdb3
+ udevadm info -q name -p /block/sdb/sdb3
+ echo /dev/sdb3
+ devname=/dev/sdb3
+ /sbin/blkid -s LABEL -o value /dev/sdb3
+ [ casper-rw = casper-rw ]
+ echo /dev/sdb3
+ return
+ cowprobe=/dev/sdb3
+ [ -b /dev/sdb3 ]
+ cowdevice=/dev/sdb3
+ get_fstype /dev/sdb3
+ local FSTYPE
+ local FSSIZE
+ fstype
+ eval FSTYPE=ext4 FSSIZE=8458862592
+ FSTYPE=ext4 FSSIZE=8458862592
+ [ ext4 != unknown ]
+ echo ext4
+ return 0
+ cow_fstype=ext4
+ cow_mountopt=rw,noatime
+ mount -t ext4 -o rw,noatime /dev/sdb3 /cow
+ [ ! -d /cow/upper ]
+ mkdir -p /cow/upper
+ continue
+ continue
+ mkdir -p /cow/work
+ [ -f /cow/format ]
+ [ DEFAULT = DEFAULT ]
+ modprobe -q -b overlay
+ grep -q ^overlay$
+ cut -f2 /proc/filesystems
+ UNIONFS=overlay
+ break
___________________________________________________

this looks fine to me.. it looks like it recognizes everything .. it's ext4 .. label casper-rw.. it's mounting it...

a little bit further down in the loooong log file it states the following:

______________________________________________

+ cow_backing_mp=/home-rw-backing
+ [ -e /home-rw-backing/home-rw ]
+ umount /home-rw-backing
+ sys2dev /sys/block/sdb/sdb3
+ sysdev=/block/sdb/sdb3
+ udevadm info -q name -p /block/sdb/sdb3
+ echo /dev/sdb3
+ devname=/dev/sdb3
+ /sbin/blkid -s LABEL -o value /dev/sdb3
+ [ casper-rw = home-rw ]
+ get_fstype /dev/sdb3
+ local FSTYPE
+ local FSSIZE
+ fstype
+ eval FSTYPE=ext4 FSSIZE=8458862592
+ FSTYPE=ext4 FSSIZE=8458862592
+ [ ext4 != unknown ]
+ echo ext4
+ return 0
+ [ ext4 = vfat ]
+ homecow=
+ [ -b ]
+ [ n != y ]
+ log_warning_msg Unable to find the persistent home medium
+ _log_msg Warning: Unable to find the persistent home medium\n
+ [ n = y ]
+ printf Warning: Unable to find the persistent home medium\n
Warning: Unable to find the persistent home medium
__________________________________________________________

so what's the problem here??

i am using kubuntu 15.10 beta on my system (syslinux install is also broken but that's something for a bug report)
i created a iso out of my system by using the distroshare ubuntu-imager script which i altered to create a ubuntu startdisc creator conform hybrid iso that supports syslinux ..

this is probably due to the remastering process but since i changed nothing within the casper scripts and everything works very well except the "persistens" thing.. it's probably a bug ??

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Thomas Weissel
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggets you report a bug. 15.10 is not ready and not remotely stable

Revision history for this message
Thomas Weissel (valueerror) said :
#2

i just testet the newest 15.10 beta iso (the original) and it seems that persistence is working ...

so i guess it has something to do with the remastering process.. i tried the initrd.lz from the original livecd but it didn't work either.. same problem.. i also tried to use the vmlinuz kernel from the original live cd.. doesn't work either.. so i copied the filesystem.squashfs from the original livecd to my flashdrive and tried

original vmlinuz
original initrd
orignial filesystem

and it dropped to a busybox and was unable to find the home medium

i'm going to try it the other way around.. create an original liveusb medium and replace the filesystem.squashfs and the filesystem.size files with my own..

is it possible that something in the filesystemstructure on the live medium is responsible for this?

Revision history for this message
Thomas Weissel (valueerror) said :
#3

i can now confirm that the problem isn't in the filesystem structure of the livecd.

the original livecd isn't working with my kernel ramdisk and filesystem either.

so i tried to boot the original live cd with an casper-rw partition instead of a casper-rw file and i dropped to a busybox..

using a casper-rw file seemed to work (even if i saw the same "unable to find home medium" error message for a second..

so i'm trying my own remastered system with a casper-rw file instead of a casper-rw partition and it manages to mount it properly..

so i guess i'm back at your initial proposal.. filing a bug report ;-)