Copy bootable USB
I have a bootable version of RHEL 5.4 on a flashdrive that we use in the event of a disaster recovery. I would like to copy this to other usb drives in case our original copy fails.
Is there a way that I can copy my current usb drive over the the new one and the new usb drive will be bootable as well?
Use the dd command to do this. Assuming the source drive is /dev/sdb and the target is /dev/sdc, do this:
There are options to make it more efficient, but this will do the job. Do note that you need to be root for this, and both drives should be unmounted.
dd if=/dev/sdb of=/dev/sdc