

- #Installing grub on usb how to
- #Installing grub on usb install
- #Installing grub on usb drivers
- #Installing grub on usb driver
- #Installing grub on usb full
There is one small problem before we carry on: USB drives take a few seconds before they are engaged properly by Linux, and your boot would fail before the drive becomes accessible. It is always a good idea to put comments in any manually changed configurations so you don't get confused later. You need to add these lines to the end of the file: # This is a reminder that these modules have been added to allow a CD to boot a USB drive Which will open the text editor with that file. We need to include some more modules to initrd, so we do: gksudo gedit /etc/initramfs-tools/modules Open a terminal and create the CD folder structure: mkdir -p iso/boot/grubĬopy initrd and vmlinuz to the boot folder: cp /cdrom/casper/initrd.gz iso/boot/
#Installing grub on usb how to
Since an Ubuntu system could not be available, we will show how to build it from the Live CD.īoot your Live CD (this procedure was tested with Ubuntu 9.04 beta) and wait for the whole system to load. To build your own boot CD, you can either use an Ubuntu system or the Live CD. Thus, if you only have one CD-ROM drive, it will not be tied up like it would be with a live CD. Note: Since the kernel and initrd are copied into RAM during the boot and run from there, it is not necessary for the CD to be in the drive after booting has finished. This image is called initrd and gets copied into the RAM during boot to enable the kernel to access the extra modules it contains.
#Installing grub on usb driver
To solve this problem, extra driver modules must be put into an "initial RAM disk" image.
#Installing grub on usb drivers
Besides, the standard Ubuntu kernel does not have all of the drivers needed to boot a USB drive. Therefore a CD or HD boot is easier to create. Though a stripped-down Linux kernel is actually small enough to fit onto a high density (1.44MB) floppy disk, the standard Ubuntu kernel is a little larger than this. The most minimal system would be the Linux kernel itself. Once a foreign OS is booted, it can be used to access any part of an unencrypted hard drive. Placing passwords or locking menu items (in the GRUB configuration files) does not prevent a user from booting manually using commands entered at the GRUB command-line. Using GRUB, any OS can be booted from any USB or CD/DVD drive (as above), circumventing BIOS restrictions. The method described above constitutes the biggest security risk in Linux. If you are not able to find the drive with the help of GRUB, you have to use the Linux kernel as explained in following sections. Of course, if you don't have GRUB installed on your hard drive, change the menu.lst on your GRUB floppy or CD. Note: If you have two internal drives including your CD/DVD drive, the USB drive probably is hd2,0 and so on.īoot the drive by entering: chainloader +1įor convenience, add these commands to your GRUB configuration (usually in /boot/grub/menu.lst): # to boot from a USB device Possible files are: ldlinux.sys mydoc myfile mystick syslinux.cfg # Bingo, that's the USB stick Grub> root (hd1,0) # second hard drive usually is the USB drive if you have only one internal drive
#Installing grub on usb install
# That was my hard drive with my linux install Possible files are: lost+found var etc media. Grub> root (hd0,1) # first harddrive, second partition Grub> find / # type the slash then press, and it will try to list files on this partitionĮrror 17: Cannot mount selected partition # Oops no file system here You can go through your devices like in this example: grub> root (hd0,0) # first harddrive, first partition Now search for your USB drive, using the root command to choose a drive/partition and the find command to see if you found the right one. At the GRUB menu, hit the C key to enter command mode. To check if your BIOS is able to detect the USB drive and hand it over to GRUB, just run GRUB from your hard drive if it already installed, or from a GRUB boot floppy or CD. The easiest way to boot from a USB Drive is to boot via GRUB. In this case the GRUB bootloader can do the job directly, without the need of an initial Linux system.

Note: If the computer was made between 20, it may contain USB drivers, but not an option to boot from USB. A minimal Linux system contains the necessary USB drivers to continue the boot process.
#Installing grub on usb full
