In order to create bootable USB stick from CD image (ISO file) of System Rescue Linux, generally we follow steps given in this link. After following instructions given, I have created a small shell script to create bootable rescue USB.
The contents of the script create_rescue_usb.sh are: $ cat create_rescue_usb.sh #!/bin/bash
if [[ $# < 4 ]]
then echo "Usage: $0 CDROM_Device CDROM_mount USB_Device USB_mount" exit fi
echo "$USB_Device is now ready to serve as bootable Linux USB." #end of script
Now, you can make it executable. $ chmod u+x create_rescue_usb.sh
Sample execution of above script (Please run as root user): # ./create_rescue_cd.sh /path/of/system-rescue-cd.iso /mnt/cdrom /dev/sdb /mnt/usb
Where, a. /path/of/system-rescue-cd.iso -- ISO image of the CD can be created as given in blog Creation of ISO Image of CD/DVD. b. /mnt/cdrom -- directory, where you want to mount above ISO. c. /dev/sdb -- or /dev/sdb1, your usb-stick device. May differ according to your system configuration d. /mnt/usb -- directory, where you want to mount usb-stick.
Now, your usb stick is ready to serve as bootable rescue USB. You can test it. At the time of BIOS boot, please select USB device as first boot device in BIOS. then save and reboot with the usb-stick plugged in one USB port.
This is Mitesh Singh Jat from Bangalore, India.
This blog is created as a small service to GNU/Linux Community.
The blog provides small and useful tips for GNU/Linux, which I
have learnt in due course of using Linux.
I will feel obliged if this blog is of any use to anyone.
Kindly write comment, if you have any suggestions
for this blog.