Tips for convert a LiveUSB into a 'normal' boot

I just want a LiveUSB without the Live mode.
Let's go!
  • Create a LiveUSB with persistence file from the Startup Disk Creator.
  • Skip boot menu: Copy the 5 first lines from /syslinux/txt.cfg to syslinux/syslinux.cfg (in my case with lubuntu 12.04):
default live
label live
    menu label ^Try Lubuntu without installing
    kernel /casper/vmlinuz
    append noprompt cdrom-detect/try-usb=true persistent file=/cdrom/preseed/lubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash --

autologin-user=
greeter-show-manual-login=true
  • Create an admin user from the System Tool app. Append your new user to sudo & root groups. (Don't encript your home, I found permission problems with my files).
  • Logout and login as new user.
  • Remove lubuntu user home and its entries ('lubuntu') in these files:
sudo rm -r /home/lubuntu
/etc/group
/etc/password

sudo apt-get purge ubiquity
  • Clear all: 
sudo apt-get clean ; sudo apt-get autoremove -y
Create backup (from your Desktop Ubuntu):
sudo su -
cd /media/USB
tar cvpzf /file.tar.gz .


Restore backup (from your Desktop Ubuntu):
sudo su -
cd /media/USB

rm -r *
tar xpvzf /file.tar.gz

and it's done! :)

No comments:

Post a Comment