How to install linux in USB hard drive?
In the following tutorial below shown how to install linux in the external USB drive, installing linux in the USB drive will help you plug and play the external linux OS on any machine. You can also delete the file from the USB drive if you do not need them.
1. Before installing linux in the USB drive, make sure you format the USB drive using the NTFS file system and also name the volume label USB.
2. After formatting the USB drive from the windows go to start > Run > type cmd in the command prompt type diskpart and press enter
3. When you press the enter the list of volumes will be displayed on the screen
4. Locate the Volume with the USB disk and type select volume # (were # is the volume number of your USB disk and press enter.
5. Now type active to make a bootable disk.
6. Next, copy all the file from your hard drive to USB drive also the view the hidden files.
7. There should be files ubuntu, boot.ini, NTDETECT.com, ntldr, wubildr, wubildr.mbr shown on the USB drive.
8. Now from the USB disk find ubuntu\disks\boot\grub and open the file menu.lst with the text editor.
9. Scroll down to line 132 and change the root= UUID from root=UUID= 1234567890 to root=LABEL=USB
10. Now save all the changes and boot your system. Go to BIOS and set the boot device order when the boot menu window XP and Ubuntu is shown then select the option Ubuntu and boot the system.
11. Once the system is booted safely you have successfully installed linux on your USB drive.