I find run ubuntu usb install drive is very good, no need to install. But in order to utilize the full capacity of USB drive, the following article tell the way.
http://www.pendrivelinux.com/sharing-files-between-ubuntu-flash-drive-and-windows/
Sharing Files Between Ubuntu Flash Drive and Windows
How to Share Files Between your USB Ubuntu Flash Drive install and Windows. In the following tutorial, you will learn how to modify the casper script to allow you to mount your USB Flash Drive as read/write. By default casper only allows the root user to gain full access to the drive, preventing the live user from saving files back to the fat formatted device. This tutorial allows for the default Ubuntu user to also have the same read and write access.
Upon completion, you will be able to save files back to the root of your Flash Drive (mounted as /cdrom) while your running from Ubuntu. Save your documents, photos, movies, mp3's, special configuration files etc… back to the Flash drive. In addition you can add files while running from Windows and then access those files again while running from Linux or vice versa.
The following solution should work on Ubuntu, Kubuntu, Linux Mint, and other "Ubuntu 10.04/10.10". based compilations.
Updated 11/23/2010 Works with Ubuntu 10.04/10.10
How to edit the Casper script to allow read and write access to the entire USB device:
- Boot from your previously created USB Ubuntu Flash Drive
- Open a terminal and type sudo su (to become root)
- Type mkdir /projectaccess (to make our project directory)
- Type cd /projectaccess (to change to the project directory)
- Type lzma -dc -S .lz /cdrom/casper/initrd.lz | cpio -id (to extract the initrd.lz)
- Type gedit scripts/casper (to edit the casper script)
- From gedit, find the following section of code:
home_snapshot_label="home-sn"
- Just below it add the following code:
mountmode="ro,noatime"
- Now find the following section of code:
IGNORE_UUID="Yes" ;;
- Just below it add the following code:
# New command line parameter to select the base device mount mode
basemountmode=*)
mountmode="${x#basemountmode=}";; - Now find the following section of code:
if is_supported_fs ${fstype}; then
- and (as a single line of code) change the first occurrence of mount line to:
mount -t ${fstype} -o ${mountmode} "${devname}" $mountpoint || continue
- Save the file and return to the open terminal
- From the terminal type find . | cpio -o -H newc | gzip -9 > initrd.lz (to zip the new initrd.lz file)
- Type cp initrd.lz /cdrom/casper
- Type gedit /cdrom/syslinux/txt.cfg ( text.cfg if using Ubuntu 10.04)
- On the first append line, replace the following section:
initrd=/casper/initrd.lz
- With the following section (as a single line):
initrd=/casper/initrd.lz basemountmode=ro,noatime,uid=999,gid=999
- Save the file and exit the editor
- Reboot your computer and proceed to boot from your USB Flash Drive again
If all goes well, you should now be able to save files to /cdrom (the root of your Flash Drive) from within Ubuntu and access those files from within Linux or Windows.
Kudos goes out to Julian Chennales who submitted the base information for this fix to pendrivelinux for posting.
Ubuntu is a product of Canonical Ltd.