Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get Debian live running from flash with persistence

23 views
Skip to first unread message

Michael Heerdegen

unread,
Apr 13, 2013, 3:00:02 PM4/13/13
to
Hi,

hope this is the right forum for my question.

I wanted to use Debian live
(http://live-build.debian.net/cgi-bin/live-build) on a 468 Laptop
installed on a flash drive with full persistence.

I followed the recipe given here:

https://www.linux.com/community/blogs/133-general-linux/420179-creating-a-debian-live-usb-flash-drive-with-persistence-for-non-techies

I.e., I copied the an iso with dd to the drive device and made the
rest of space an ext2 partition named "live-rw".

First, I tried the stable iso from here:

http://cdimage.debian.org/debian-cd/current-live/i386/usb-hdd/

I had persistence, but dbus wasn't started. I had to start X manually
with startx. I could not start wicd because of missing dbus, so I had
no connection to the web. Bad.

Next, I downloaded testing live from

http://live.debian.net/cdimage/release/next+nonfree/i386/iso-hybrid/

It worked well, but I got no persistence, although I started with the
persistence boot parameter. Maybe because it wasn't a "usb-hdd"
image??? (was not available).

Next, I tried "hdd" of wheezy built from here:

http://live-build.debian.net/cgi-bin/live-build

but again I didn't get persistence.

Please help - how can I get a working system with full persistence? The
help pages I found said that it should have worked, and experimenting is
very long-winded.


Thanks,

Michael.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87mwt2u...@web.de

Rob Owens

unread,
Apr 13, 2013, 9:00:02 PM4/13/13
to
On Sat, Apr 13, 2013 at 08:50:06PM +0200, Michael Heerdegen wrote:
> Hi,
>
> hope this is the right forum for my question.
>
> I wanted to use Debian live
> (http://live-build.debian.net/cgi-bin/live-build) on a 468 Laptop
> installed on a flash drive with full persistence.
>
I used to use Debian Live with persistence, but lately I've changed to a
much easier method. Now I just do a normal Debian install but install
it to a USB stick instead of a hard drive. Works fine. I make some
tweaks to improve performance, such as mounting various folders at
tmpfs. But it works pretty well even without those tweaks.

Just make sure you install grub to the USB stick and not to the hard
drive of whatever computer you're using for the installation.

-Rob


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/2013041400...@aurora.owens.net

Arun Khan

unread,
Apr 14, 2013, 7:20:01 AM4/14/13
to
On Sun, Apr 14, 2013 at 6:23 AM, Rob Owens <row...@ptd.net> wrote:
> On Sat, Apr 13, 2013 at 08:50:06PM +0200, Michael Heerdegen wrote:
>> Hi,
>>
>> hope this is the right forum for my question.
>>
>> I wanted to use Debian live
>> (http://live-build.debian.net/cgi-bin/live-build) on a 468 Laptop
>> installed on a flash drive with full persistence.
>>
> I used to use Debian Live with persistence, but lately I've changed to a
> much easier method. Now I just do a normal Debian install but install
> it to a USB stick instead of a hard drive. Works fine. I make some
> tweaks to improve performance, such as mounting various folders at
> tmpfs. But it works pretty well even without those tweaks.
>
> Just make sure you install grub to the USB stick and not to the hard
> drive of whatever computer you're using for the installation.
>

+1. I have been doing the same and works very well.

--
Arun Khan
Sent from my non-iphone/non-android device


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/CAHhM8gA7UPUVPb4t_3tSOyz1...@mail.gmail.com

Christer Oldhoff

unread,
Apr 14, 2013, 8:20:01 AM4/14/13
to
Hi Michael,

On 2013-04-13 20:50, Michael Heerdegen wrote:
> Hi,
>
> hope this is the right forum for my question.
>
> I wanted to use Debian live
> (http://live-build.debian.net/cgi-bin/live-build) on a 468 Laptop
> installed on a flash drive with full persistence.
> [...]
>
> Next, I downloaded testing live from
>
> http://live.debian.net/cdimage/release/next+nonfree/i386/iso-hybrid/
>
> It worked well, but I got no persistence, although I started with the
> persistence boot parameter. Maybe because it wasn't a "usb-hdd"
> image??? (was not available).
>
Perhaps my answer on the list yesterday to Jim on the
subject: Internet with Debian could be of help?

First of all, I have another architecture (amd64) and I never got
persistence to work with stable (Squeeze).
But it works really well with testing (Wheezy) using the regular
iso-hybrid .iso image.

There is a link to a very helpful instruction in my previous mail.
Note that using Wheezy, the partition used for persistent storage has
to be labeled �persistence� if You use the standard boot parameter
�persistence� (other options are mentioned in the manual).

Regards,
--
Chris


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/516A9DA9...@swipnet.se

Michael Heerdegen

unread,
Apr 15, 2013, 9:30:02 AM4/15/13
to
Hi Rob,

> On Sat, Apr 13, 2013 at 08:50:06PM +0200, Michael Heerdegen wrote:
> > Hi,
> >
> > hope this is the right forum for my question.
> >
> > I wanted to use Debian live
> > (http://live-build.debian.net/cgi-bin/live-build) on a 468 Laptop
> > installed on a flash drive with full persistence.
> >
> I used to use Debian Live with persistence, but lately I've changed to a
> much easier method. Now I just do a normal Debian install but install
> it to a USB stick instead of a hard drive. Works fine. I make some
> tweaks to improve performance, such as mounting various folders at
> tmpfs. But it works pretty well even without those tweaks.
>
> Just make sure you install grub to the USB stick and not to the hard
> drive of whatever computer you're using for the installation.

Good advice, thanks. However, I don't want to do that in this case -
because it's my business notebook. When I upgrade the system after some
time has passed - it might happen that grub is installed to the hdd and
the notebook won't start anymore. So I'll try to get live work first.


Thanks,

Michael.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87d2tw3...@web.de

Michael Heerdegen

unread,
Apr 15, 2013, 9:30:02 AM4/15/13
to
Hi Christer,


> First of all, I have another architecture (amd64) and I never got
> persistence to work with stable (Squeeze).
> But it works really well with testing (Wheezy) using the regular
> iso-hybrid .iso image.
>
> There is a link to a very helpful instruction in my previous mail.
> Note that using Wheezy, the partition used for persistent storage has
> to be labeled ´persistence´ if You use the standard boot parameter
> ´persistence´ (other options are mentioned in the manual).

Thanks for the hints, it now works! I labeled the partition
`persistence', but to get it work, I also had to put a persistence.conf
file on it.

About internet: I think I faced a different problem - not a missing
firmware was the culprit, but the not running dbus. I also had no LAN,
and without getting wicd started, no chance to establish a connection
from the workspace. Anyway, on the testing system I use now everything
worked out of the box.


Many thanks,

Michael.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/878v4j5...@web.de

Brian

unread,
Apr 15, 2013, 9:40:02 AM4/15/13
to
On Mon 15 Apr 2013 at 15:20:07 +0200, Michael Heerdegen wrote:

> Hi Rob,
>
> > On Sat, Apr 13, 2013 at 08:50:06PM +0200, Michael Heerdegen wrote:
> > > Hi,
> > >
> > > hope this is the right forum for my question.
> > >
> > > I wanted to use Debian live
> > > (http://live-build.debian.net/cgi-bin/live-build) on a 468 Laptop
> > > installed on a flash drive with full persistence.
> > >
> > I used to use Debian Live with persistence, but lately I've changed to a
> > much easier method. Now I just do a normal Debian install but install
> > it to a USB stick instead of a hard drive. Works fine. I make some
> > tweaks to improve performance, such as mounting various folders at
> > tmpfs. But it works pretty well even without those tweaks.
> >
> > Just make sure you install grub to the USB stick and not to the hard
> > drive of whatever computer you're using for the installation.
>
> Good advice, thanks. However, I don't want to do that in this case -
> because it's my business notebook. When I upgrade the system after some
> time has passed - it might happen that grub is installed to the hdd and
> the notebook won't start anymore. So I'll try to get live work first.

That cannot happen. Updating the system might alter grub.cfg but GRUB
itself is not installed or reinstalled to, for example, the MBR of any
disk.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20130415133028.GO30093@desktop

Michael Heerdegen

unread,
Apr 15, 2013, 9:50:01 AM4/15/13
to
Brian <ad...@cityscape.co.uk> writes:

> > When I upgrade the system after some time has passed - it might
> > happen that grub is installed to the hdd and the notebook won't
> > start anymore. So I'll try to get live work first.
>
> That cannot happen. Updating the system might alter grub.cfg but GRUB
> itself is not installed or reinstalled to, for example, the MBR of any
> disk.

I see, good to know.


Thanks,

Michael.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/874nf75...@web.de

Henrique de Moraes Holschuh

unread,
Apr 15, 2013, 8:30:01 PM4/15/13
to
On Mon, 15 Apr 2013, Brian wrote:
> That cannot happen. Updating the system might alter grub.cfg but GRUB
> itself is not installed or reinstalled to, for example, the MBR of any
> disk.

This is not entirely correct. You need to put all grub* packages on hold to
make sure it won't ever update the boot loader itself.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20130416002...@khazad-dum.debian.net

Christer Oldhoff

unread,
Apr 16, 2013, 2:20:01 PM4/16/13
to
Hi Michael,

On 2013-04-15 15:26, Michael Heerdegen wrote:
>> [...]
>
> Thanks for the hints, it now works! I labeled the partition
> `persistence', but to get it work, I also had to put a persistence.conf
> file on it.
> [...]
>
> Many thanks,
>
> Michael.
>
I´m glad I could help.

You were apparently stuck at the same point as I before I stumbled upon
the informative man page.

Regards,
--
Chris


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/516D949...@swipnet.se

Brian

unread,
Apr 16, 2013, 3:00:01 PM4/16/13
to
On Mon 15 Apr 2013 at 21:29:22 -0300, Henrique de Moraes Holschuh wrote:

> On Mon, 15 Apr 2013, Brian wrote:
> > That cannot happen. Updating the system might alter grub.cfg but GRUB
> > itself is not installed or reinstalled to, for example, the MBR of any
> > disk.
>
> This is not entirely correct. You need to put all grub* packages on hold to
> make sure it won't ever update the boot loader itself.

It is entirely correct. Although the OP may not have realised it, he was
concerned whether

grub-install /dev/sdX

was executed during an upgrade or dist-upgrade. He may have thought it
could occur during installing new GRUB packages or a new kernel. If it
does I've never experienced anything like this happening. Of course,
there may be a script which does this and I have overlooked it.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20130416185911.GQ30093@desktop

Henrique de Moraes Holschuh

unread,
Apr 16, 2013, 9:00:02 PM4/16/13
to
On Tue, 16 Apr 2013, Brian wrote:
> On Mon 15 Apr 2013 at 21:29:22 -0300, Henrique de Moraes Holschuh wrote:
> > On Mon, 15 Apr 2013, Brian wrote:
> > > That cannot happen. Updating the system might alter grub.cfg but GRUB
> > > itself is not installed or reinstalled to, for example, the MBR of any
> > > disk.
> >
> > This is not entirely correct. You need to put all grub* packages on hold to
> > make sure it won't ever update the boot loader itself.
>
> It is entirely correct. Although the OP may not have realised it, he was
> concerned whether
>
> grub-install /dev/sdX
>
> was executed during an upgrade or dist-upgrade. He may have thought it
> could occur during installing new GRUB packages or a new kernel. If it
> does I've never experienced anything like this happening. Of course,
> there may be a script which does this and I have overlooked it.

It certainly won't happen because of the install of a new kernel.

However, it will be done if the postinst script of grub-pc has any reason to
update stage 1. AFAIK, currently it only does that when upgrading from the
previous branch of grub, but in the future it may happen because of an
update that fixes a bug or limitation from stage 1, for example.

It may or may not do the right thing and update the right MBR. If you need
to be sure it will never be done, place the apropriate packages on hold.
Alternatively, tell the grub-pc package's config script to install to a
persistent name for the pendrive (maybe one is available in /dev/disk/by-* ?
Otherwise, you need to tweak udev to create one), and it will update stage 1
in that place if it ever needs to do it. dpkg-reconfigure grub-pc lets you
do that.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20130417005...@khazad-dum.debian.net
0 new messages