USB Ubuntu 8.04.1 Persistent install from Linux

View previous topic View next topic Go down

USB Ubuntu 8.04.1 Persistent install from Linux

Post  Admin on Sat Jul 11, 2009 7:28 pm

USB Ubuntu 8.04.1 Persistent install from Linux without using a CDROM. This tutorial will enable a user to install Ubuntu 8.04.1 Hardy Heron to a USB flash drivevia a running (Ubuntu) Linux environment. The persistence feature is being utilized to allow the user to save and restorechanges on subsequent boots. If you already have a working Ubuntu Linux installation on your PC and do not wish to use or your system does not have a CD drive, this tutorial is for you.


Update: Some have reported that the persistence feature is broken again in Ubuntu 8.04.1. You may want to use the Ubuntu 8.10 persistent flash drive installation tutorial instead.


rerequisites for installing Ubuntu 8.04.1 to a flash drive:
Working Linux environment (we used a local Ubuntu installation)
Established internet connection
1GB or larger USB flash drive

How to install Ubuntu 8.04.1 to a USB flash drive from Linux:
Insert a 1GB or larger USB flash drive (2GB+ recommended)
Open a terminal and type sudo su
As one line, type wget releases.ubuntu.com/releases/8.04/ubuntu-8.04.1-desktop-i386.iso
Type mount -o loop -tiso9660 ubuntu*.iso /cdrom
Type fdisk -l to list available drives/partitions (note which device is your flash drive I.E. /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 and 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)
Back at the 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.

You should be able to boot Ubuntu 8.04.1 from the memory stick and by default it should save your changes, restoring them on subsequent boots.

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)


Source:
[url=http://www.pendrivelinux.com/usb-ubuntu-804-persistent-install-from-linux/]http://www.pendrivelinux.com/usb-ubuntu-804-persistent-install-from-linux//url]


[silent killer]

Admin
Admin

Posts : 408
Join date : 2009-04-25

http://xd627.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum