Install Ubuntu on a USB Flash Drive

Asked by Sharadh Rajaraman

I want to INSTALL ubuntu 10.04 on a USB Flash Drive. I already have made the liveCD on a CD-ROM. I just want to install Ubuntu on the flash drive. Its capacity is 4 GB, and I have partitioned 1 GB to be used as FAT (ordinary file exchange) and the other 3GB as free space. The free space is where I want to install it. And I plan to run it on a Windows native PC. Is there anything special I need to do or can I just install it and boot from the USB Drive?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ubiquity Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ubfan (ubfan1) said :
#1

You can install directly to the stick, but some initial preparation of the stick is desirable. Note the recommendations in the link:
 http://wiki.laptop.org/go/How_to_Damage_a_FLASH_Storage_Device
I know of no way to really tell how large the erase block should be on a usb device, but using 128k seems to work fine on 4G sticks. Additionally, I move /tmp and /var/log into ramdisks, and have links to ram from several other places like my user browser cache, and /var/cache/apt/archives for package downloads. I think you'd be better off without the 1G FAT, the 4G disk is pretty tight when large updates occur, although I do have a .5G home directory. No swap. The default ext2 filesystem's parameters are OK (I don't want journaling). Here's the fstab mods for ramdisks,(add right after /proc):

tmpfs /tmp tmpfs size=256M,mode=1777 0 0
ramfs /var/log ramfs mode=755 0 0

I do some tweaking in rc.local to set up some other things like a user whose home is in ram.
Backup your files regularly, I have used 4G sticks daily for more than 2 years with no problems, but have seen a 2g card burn out on a Windows PC just trying to copy in user directories (after about 300Megs).

Can you help with this problem?

Provide an answer of your own, or ask Sharadh Rajaraman for more information if necessary.

To post a message you must log in.