Hi William,
You have definitely no overlay file with the name "overlay--4C04-9372" in
/LiveOS folder on your USB stick. So overlay will not work.
> [root@livecd sluser]# dir /overlayfs/LiveOS/
> home.img osmin.img squashfs.img
It's hard to say why this happened. However, it should be possible to create
the overlay file just manually.
Change to the /LiveOS on your USB stick and run
dd if=/dev/zero of=overlay--4C04-9372 count=1024 bs=1M
This will create a 1024 MB file (/LiveOS/overlay--4C04-9372) filled with zeros.
If you now boot your USB stick the file /LiveOS/overlay--4C04-9372 should be
found and take to store the persistence changes.
Please note that the overlay file should not be used completely:
http://www.livecd.ethz.ch/usbdisk.html#limits
In worst case you can just remove it again and start with a new and "empty" one.
Cheers,
Urs
On 03/17/2011 08:56 PM, William Shu wrote:
Dear Urs,
What I obtained is below. Unfortunately, a bit mobile now, I have only the USB
stick to work on SL6 and so cannot un-install it as such; but I had no
complaints!
I recall when installing SL6 on the USB that I had warning about its label
(made up of some control-character sequence, starting, I think, with ^17).
Since installation was complete, and in prior attempts the label was changed, I
did not think it was a problem. Now, I'm not so sure!
Regards,
William.
[sluser@livecd ~]$ su
[root@livecd sluser]# dir /LiveOS/overlay--4C04-9372
dir: cannot access /LiveOS/overlay--4C04-9372: No such file or directory
[root@livecd sluser]# dir /LiveOS/overlay--4C04-9372
[root@livecd sluser]# find / -iname "*4C04-9372*" -print
/dev/disk/by-uuid/4C04-9372
/dev/.udev/links/disk\x2fby-uuid\x2f4C04-9372
[root@livecd sluser]# mkdir /overlayfs
[root@livecd sluser]# mount -n -t auto UUID=4C04-9372 /overlayfs
[root@livecd sluser]# [ -f /overlayfs/LiveOS/overlay--4C04-9372 -a -w
/overlayfs/LiveOS/overlay--4C04-9372 ]&& echo ok
[root@livecd sluser]# dir /overlayfs/
boot/ EFI/ LiveOS/ syslinux/
[root@livecd sluser]# dir /overlayfs/LiveOS/
home.img osmin.img squashfs.img
[root@livecd sluser]#
William
--- On Thu, 3/17/11, Urs Beyerle<[email protected]> wrote:
From: Urs Beyerle<[email protected]>
Subject: Re: Persistent Data in SL LiveDVD on USB
To: "William Shu"<[email protected]>
Cc: [email protected]
Date: Thursday, March 17, 2011, 10:00 AM
Hi William
On 03/17/2011 06:15 AM, William Shu wrote:
Thank you very much Urs.
Below are the requested outputs: (A) for losetup; and
(B) for dracut. It seems the overlay is not being found!
On a related matter, you say livecd-tools and
liveusb-creator are part of the live iso's, but I had to
"yum install" them before I could use them in making the
USB!
Thanks for the debug info.
You are right. liveusb-creator is not part of Live iso's.
But livecd-tools and therefore livecd-iso-to-disk should be
installed. However, doing "yum update livecd-tools" is
always a good idea.
Yes, the overlay is not found in your case:
dracut: + mkdir /overlayfs
dracut: + mount -n -t auto UUID=4C04-9372 /overlayfs
dracut: + [ -f /overlayfs/LiveOS/overlay--4C04-9372 -a -w
/overlayfs/LiveOS/overlay--4C04-9372 ]
dracut: + umount -l /overlayfs
dracut: + [ -z ]
dracut: + [ -n UUID=4C04-9372 -a -n
/LiveOS/overlay--4C04-9372 ]
dracut: + warn Unable to find persistent overlay; using
temporary
Can you quickly check, if the overlay file is on your Live
USB drive and if it is writable (w)? In your case the
overlay
file should be
/LiveOS/overlay--4C04-9372
You might want to reproduce the mounting of your USB stick
(as done be dracut) on a SL6 system. Plugin the stick. If it
gets auto-mounted, un-mount it. As root try
mkdir /overlayfs
mount -n -t auto UUID=4C04-9372 /overlayfs
[ -f /overlayfs/LiveOS/overlay--4C04-9372 -a -w
/overlayfs/LiveOS/overlay--4C04-9372 ]&& echo ok
Cheers,
Urs