Linux – grub rescue mode on kali linux (usb flash)

grubgrub2kali-linuxlinuxrescue

Trying to create Kali Linux live USB persistance.
Split the usb like this:

|| first part FAT for data || second part FAT for LINUX || third part for persistance||

Then set "bootable" flag in gparted on /dev/sdb2

Format: mkfs.vfat -n linux /dev/sdb2

Then trying to copy kali linux files, like this:

`dd if=kali-linux-1.0.9a-amd64.iso of=/dev/sdb2 bs=512k`

Now, I reboot my laptop, select Flash Drive as boot-able device,
and have this:

    grub error: File not found...
    grub entering rescue mode
    grub rescue>

Then, I tried out things mentioned in the following links:

bbs.archlinux.org/viewtopic.php?id=169650

adw0rd.com/2010/4/5/grub-rescue/

askubuntu.com/questions/142300/fixing-grub-error-error-unknown-filesystem

and nothing helps!

    grub rescue> ls
    hd0, (hd0,msdos3), (hd0,msdos1), (hd0,msdos2), (hd1,msdos4), (hd1,msdos3), (hd1,msdos1), (hd1,msdos2), hd1
    grub rescue> set
    prefix=(hd0,msdos2)/boot/grub
    root=(hd0,msdos2)

I have already spent 3 days to solve this problem and can't find a solution.

P.S.
fdisk shows for /dev/sdb2

Command (m for help): p

Disk /dev/sdb2: 4294 MB, 4294967296 bytes
193 heads, 32 sectors/track, 1358 cylinders, total 8388608 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: 0x0a9a1b1a

     Device Boot      Start         End      Blocks   Id  System
/dev/sdb2p1   *          64     6324223     3162080   17  Hidden HPFS/NTFS
/dev/sdb2p2         6324224     6485375       80576    1  FAT12

Are it's normal partition table for Kali Linux?

Best Answer

You could solve your problem by following these steps :

Find out which devices are available by typing ls

Set to the correct value :

set prefix=(hd0,1)/grub
set root=(hd0,1)
insmod normal
normal

The above commands will get you out of the rescue mode to the normal terminal mode. After the above commands you can go ahead and start the rest of the settings.

insmod linux 
linux /vmlinuz root=/dev/sdXY ro 

If the above command doesnt work try this :

linux /boot/vmlinuz-3.2.0-14-generic root=/dev/sda1 ro
boot

Additionally dont forget to update your grub

Update the GRUB config file.:

sudo update-grub

Reinstallation of Grub on the device:

sudo grub-install /dev/sdX

hope it helps

Related Question