1

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?

  • I partly solve the problem by reformatting partition /dev/sdb2 and reinstall grub on it. Now. I have new problem. Can't start kali linux from grub. – Михаил Загурский Aug 27 '15 at 9:21
2

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

  • Unfortunatly it didn't help. I found, that: ls (hd0, msdos1) is my first partition with media data ls (hd0, msdos2) didn't show anything. All other "partitions" shows "unknown filesystem" After set prefix=(hd0,msdos2)/grub and root=(hd0,msdos2) command insmod normal shows "file not found". Any other combinations of prefix, root, and path to grub didn't help. – Михаил Загурский Aug 26 '15 at 14:52
  • For me this does help in fixing grub and getting it to boot, but then when I reboot I get the same error :( – cascer1 Aug 27 '16 at 17:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.