install linux into USB

November 21, 2011 at 02:54:01
Specs: redhat linux
Hi,
I have 2 question.
1)how can I install the redhat linux 5 into USB disk and boot from USB disk forever.
2) how can I backup an existing redhat linux from hd to USB by disk image and make the USB bootable afterward , so I can use usb to boot the linux in another machine ....

Please advice ..


See More: install linux into USB

Report •

#1
November 21, 2011 at 03:40:33
I do hope you meant Red Hat Enterprise Linux 5. Red Hat Linux 5 is about 14 years old.

Red Hat doesn't officially support this, and if you're interested in doing things that aren't supported by Red Hat you should be using Fedora anyway (which does support this). You should be able to adapt an existing system fairly easily. Just

dd if=/dev/sda of=/dev/sdb

to copy the contents of the drive to the USB drive (make sure you use the correct device names or you'll wreck your system!). Don't worry if dd complains if you run out of space; as long as you have your root and home directory (if any) and all its contents copied, you can just run fsck on the file system to resolve any issues. If your swap partition isn't copied, create a swap file and put an entry for it in /etc/fstab. Finally, make sure the configuration for your bootloader gives the correct UUID for the root file system of your new drive.


Report •
Related Solutions


Ask Question