[Howto] [Installation] [Linux] [Tutorials] [Ubuntu]
How to boot Ubuntu from USB and make persistent install for saving sessions
Don't want to miss a single bit? Subscribe to our RSS Feed!
You can try Ubuntu with downloading the Live CD and booting up from a CD or USB, but every time you get the same session without saving your work. Do you like the idea that you can always carry your personal OS in your pocket everywhere? And also saving your sessions? Checking mail with your personal OS at your friends computer? Here is tutorial (http://www.pendrivelinux.com) how to do that with Live CD:
You need Ubuntu Live CD and USB 1GB or more!
- First download Live CD from Ubuntu official site, or just click here, and burn it to empty CD.
- Now boot up from a Ubuntu CD
- When Ubuntu is started insert the USB
- On main Ubuntu menu click Applications/Accessories/Terminal, and type sudo su
- Next type fdisk -l to list available drives/partitions (note which device is your flash drive Example: /dev/sdb). Throughout this tutorial, replace all instances of x with your flash drive letter. For example, if your flash drive is sdb, replace x with b.
- Type umount /dev/sdx1
- Type fdisk /dev/sdx
- type p to show the existing partition
- type d to delete it
- type p again to show any remaining partitions (if partitions exist, repeat the previous step)
- type n to make a new partition
- type p for primary partition
- type 1 to make this the first partition
- hit enter to use the default 1st cylinder
- type +750M to set the partition size
- type a to make this partition active
- type 1 to select partition 1
- type t to change the partition filesystem
- type 6 to select the fat16 file system
- type n to make another new partition
- type p for primary partition
- type 2 to make this the second partition
- hit enter to use the default cylinder
- hit enter again to use the default last cylinder
- type w to write the new partition table
- Type umount /dev/sdx1 to unmount the partition
- Type mkfs.vfat -F 16 -n ubuntu8 /dev/sdx1 to format the first partition
- Type umount /dev/sdx2 to ensure the partition is unmounted
- Type mkfs.ext2 -b 4096 -L casper-rw /dev/sdx2 to format the second partition
- Remove and re-insert your flash drive (if prompted that a new medium has been detected, select to open in a new window and click ok)
- In terminal, type sudo apt-get install syslinux mtools
- Type syslinux -sf /dev/sdx1
- Type cd /cdrom
- Type cp -rfv casper dists install pics pool preseed .disk isolinux/* md5sum.txt README.diskdefines install/mt86plus /media/ubuntu8
- Type cd /media/ubuntu8
- Type wget pendrivelinux.com/downloads/u8/syslinux.cfg
- Type cd casper
- Type rm initrd.gz
- Type wget pendrivelinux.com/downloads/u8/initrd.gz
- Reboot your computer and set your system BIOS boot priority to boot from the USB stick.
Notes: If your having trouble getting Ubuntu to boot, your memory stick may have a corrupted MBR. To repair the MBR of your USB device, at the terminal type sudo apt-get install lilo then type lilo -M /dev/sdx (replacing x with the letter of your flash device).
The good thing is that you can boot up your OS from USB stick and learn a lot of things for Linux, and then decide to install it on your hard drive.
The negative side is the speed (is a little slowly) and protection - becouse is open session everyone who is using your usb can enter in your computer - for example.
Did you enjoy this post? Why not leave a comment below and continue the conversation, or Subscribe to Feed and get articles like this delivered automatically to your Email or feed reader.
2 comments:
you forgot to add the link of ubuntu live cd
Miss TT
Link added. Thank U Miss TT :)
Post a Comment