[Grub] Creating a UEFI bootable Linux USB drive using dd

First things first, you need to make your USB drive bootable in UEFI. You should :

  1. Plug in your pendirve ( minimum 4 Gig )
  2. Give
     $ sudo fdisk -l 

    Find out your USB drive mount name from the output. Hint : You can always check for the drive size and spot that one out. The above command would give something similar to :

    # sudo fdisk -l
    Disk /dev/sdc: 15.9 GB, 15854469120 bytes
    255 heads, 63 sectors/track, 1927 cylinders, total 30965760 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x094a46d6
    

    You will figure out that /dev/sdc corresponds to your pendrive. For the ease, I would continue with the assumption that /dev/sdc is your USB drive.

  3. Open terminal, move to the place where you have your iso file ready
  4. Use dd command to clone the iso to the pendrive
    $ sudo if=ubuntu14.iso of=/dev/sdc
    
  5. The cloning will take few minutes depending on the speed of your pendrive. Once finished, give the final step :
    $ sync
    
  6. That’s it ! You are ready with your UEFI bootable pendrive ! Now restart the system – press F9 or something similar to change the boot order and select :

     SANDISK UEFI BOOT Ubuntu
    

    or something similar from the boot menu and boot!

    Advertisements

[Grub] Fixing GRUB the hard way

It’s been almost an year since I touched the Linux Grub and for the past two days, I have been paying very well for that.
Situation:
* Created Debian Wheezy (7) live USB disk wont boot in UEFI mode ( It just wont show up in BIOS )
* Windows 8.1 is installed in UEFI mode.
* Debian Wheezy installed in Legacy mode.
* Grub wont show up – shows grub rescue :\
* Tried Boot-Repair : it wont fix as I can only boot the Debian Live in Legacy mode. Boot repair needs Linux to be booted in EFI mode to fix this. Deadlock situation in which the boot repair needs a UEFI booted OS to fix the GRUB and your USB wont boot in UEFI mode.

The following series will be fixing these one by one 🙂 Stay tuned. Happy hacking!