LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   cannot create wheezy live-system with persistence (https://www.linuxquestions.org/questions/debian-26/cannot-create-wheezy-live-system-with-persistence-4175430819/)

cccc 10-06-2012 06:39 AM

cannot create wheezy live-system with persistence
 
Hi

I created a wheezy live-system on a flash-disk.
I followed http://live.debian.net/manual-3.x/ht...al.en.html#538.
I added "persistence" in "syslinux/live.cfg", so I have:
Code:

label live
menu label Live Persistent
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live config persistence quickreboot noeject

I also created a second partition on this flash disk with ext4 file-system and label "persistence" and created live-persistence.conf file by doing:
Code:

# mount -t ext4 /dev/sdb2 /mnt
# echo "/home" >> /mnt/persistence.conf
# umount /mnt

But this second partition is not mounted automatically during the startup.
What's wrong?

widget 10-07-2012 01:05 PM

I don't know what version you are using but this bug claims to have been fixed.
http://lists.debian.org/debian-live/.../msg00175.html

Could be you should report this problem.

cccc 10-08-2012 08:53 AM

It is a BUG:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685270

Pin live-boot and live-boot-initramfs-tools from sid to /config/packages.chroot and created new hdd binary.img on my wheezy solved this problem!

tomiro 01-23-2013 10:12 AM

live-persistence.conf
 
The configuration file on the persistence partition needs to be named live-persistence.conf not persistence.conf

I got it working a couple of months back, then forgot how I did it myself. So when I went to test our R4W 2013 (Replacement for Windows) on a flash drive I couldn't get it to work either, even though I know it should. After renaming persistence.conf to live-persistence.conf it worked perfectly.

So it should have been:
Quote:

# mount -t ext4 /dev/sdb2 /mnt
# echo "/home" >> /mnt/live-persistence.conf
# umount /mnt
or in mny case, since I'm using full persitence:
Quote:

# mount -t ext4 /dev/sdb2 /mnt
# echo "/ union" >> /mnt/live-persistence.conf
# umount /mnt

cccc 05-19-2013 04:39 PM

Quote:

Originally Posted by tomiro (Post 4876182)
The configuration file on the persistence partition needs to be named live-persistence.conf not persistence.conf

I got it working a couple of months back, then forgot how I did it myself. So when I went to test our R4W 2013 (Replacement for Windows) on a flash drive I couldn't get it to work either, even though I know it should. After renaming persistence.conf to live-persistence.conf it worked perfectly.

So it should have been:


or in mny case, since I'm using full persitence:

According to:

http://live.debian.net/manual/stable...al.en.html#529

Code:

# mkfs.ext4 -L persistence /dev/sdb1
# mount -t ext4 /dev/sdb1 /mnt
# echo "/home" >> /mnt/persistence.conf
# echo "/var/cache/apt" >> /mnt/persistence.conf
# umount /mnt

I've tried and it works well.

>>During the first boot the contents of /home and /var/cache/apt will be copied into the persistence volume, and from then on all changes to these directories will live in the persistence volume. Please note that any paths listed in the persistence.conf file cannot contain white spaces or the special . and .. path components. Also, neither /lib, /lib/live (or any of their sub-directories) nor / can be made persistent using custom mounts. As a workaround for this limitation you can add / union to your persistence.conf file to achieve full persistence. <<


All times are GMT -5. The time now is 12:26 AM.