LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 10-06-2012, 06:39 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,615

Rep: Reputation: 47
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?
 
Old 10-07-2012, 01:05 PM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,261

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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.
 
Old 10-08-2012, 08:53 AM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,615

Original Poster
Rep: Reputation: 47
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!
 
Old 01-23-2013, 10:12 AM   #4
tomiro
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
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
 
Old 05-19-2013, 04:39 PM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,615

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by tomiro View Post
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. <<

Last edited by cccc; 05-19-2013 at 04:43 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backtrack Live & Ubuntu Persistence - Dual Boot Fcukinyahoo Linux - Newbie 8 10-13-2011 11:20 AM
ClutchOS v12.2 A Pure Slackware 12.2 Live CD/USB with Persistence! linus72 Slackware 13 03-02-2010 07:35 AM
FC7 Live on USB wont write with persistence linux-stick Fedora 3 09-24-2007 03:33 PM
persistence in debian live usb ciden Linux - Desktop 0 09-09-2007 12:18 PM
Live CD Persistence ArthurDent Ubuntu 4 10-29-2006 03:30 PM


All times are GMT -5. The time now is 01:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration