Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Thursday, June 16, 2011

Ubuntu persistence

Persistence on live USB keeps going wrong and leading to stalled boots - boot can always be achieved by removing 'persistent' from boot params.

Can use a second live USB with Puppy Linux to read the first USB and check the casper-rw file (can't do it from live Ubuntu as casper-rw is mounted). NB that in this case we're using a path to a file, not a device name, as the first argument to mount because the filesystem we're mounting is inside a file.

mkdir /mnt/cas
mount /mnt/sdb1/casper-rw /mnt/cas -o loop

(the /mnt/sdb1 bit may be different according to where Puppy has mounted the USB)

We can now ls /mnt/cas to see the files inside casper-rw. And we can also check the filesystem:

fsck -y /mnt/sdb1/casper-rw

(after a stalled boot this will find and fix lots of errors)

Boot with 'persistent' will now work again - though persistence still won't work!

Followers

Blog Archive