domenica 9 marzo 2014

"grub-pc package failed to install into /target/"

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH

This problem is a fuc*ing problem!

I beated my HEAD, alone, on internet but N O T H I N G. But now I understood how we can resolve this issue on KALI LINUX, that is the failed installation of GRUB

However, I would like to install Kali near Windows 8. Into BIOS I disabled UEFI boot, and I make an USB Live version of Kali. Then, into pendrive of Kali, we need to make a EFI/BOOT directory and put into it the following files: BOOTx64.efi and grubx64.efi that you can find here: ftp://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/os/EFI/BOOT/

Moreover, I opened a ISO file of Ubuntu and I copied and pasted the /boot directory in Kali pendrive. Then I edit the grub.cfg file into boot directory deleting it content and writing:

# Config file for GRUB2 - The GNU GRand Unified Bootloader
# /boot/grub/grub.cfg

# DEVICE NAME CONVERSIONS
#
# Linux Grub
# -------------------------
# /dev/fd0 (fd0)
# /dev/sda (hd0)
# /dev/sdb2 (hd1,2)
# /dev/sda3 (hd0,3)
#
# root=UUID=dc08e5b0-e704-4573-b3f2-cfe41b73e62b persistent

set menu_color_normal=yellow/blue
set menu_color_highlight=blue/yellow

function load_video {
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
insmod all_video
}

load_video
set gfxpayload=keep

# Timeout for menu
set timeout=5

# Set default boot entry as Entry 0
set default=0
set color_normal=yellow/blue

menuentry "Kali - Boot Non Persistent Mode" {
set root=(hd0,1)
linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali
initrdefi /live/initrd.img
}

menuentry "Kali - Boot Persistent" {
set root=(hd0,1)
linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali persistence
initrdefi /live/initrd.img
}

menuentry "Kali Failsafe" {
set root=(hd0,1)
linuxefi /live/vmlinuz boot=live config memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal
initrdefi /live/initrd.img
}

menuentry "Kali Forensics - No Drive or Swap Mount" {
set root=(hd0,1)
linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali noswap noautomount
initrdefi /live/initrd.img
}

menuentry "Kali Graphical Install" {
set root=(hd0,1)
linuxefi /install/gtk/vmlinuz video=vesa:ywrap,mtrr vga=788
initrdefi /install/gtk/initrd.gz
}

menuentry "Kali Text Install" {
set root=(hd0,1)
linuxefi /install/vmlinuz video=vesa:ywrap,mtrr vga=788
initrdefi /install/initrd.gz
}

I also copied this file in EFI/BOOT directory.

Then, I closed all and

PLUG IN KALI PEN DRIVE TO BEGIN THE INSTALLATION!

To avoid some issues about freezes during installation, I started Kali Live (not graphical or text mode) and by there, I installed it.

I started installation, blablabla, after it asked me to configure connection because it must use connection to download afterwards packages that are useful for installation of grub.

Then blablabla, when it asked me Network Mirror, I said YES, then I left blank the "input method" and clicked on Continue. If it gives problems here, if you want to insert network mirror in manual way, you must insert "http.kali.org" with directory "/kali".

It will configure package manager, so then, we must wait 5-10 min and after, it will install correctly GRUB!

UPDATE: If this method doesn't work, to solve this problem, you need to install Kali Linux (FROM BEGINNING) keeping plugged in the ETHERNET CABLE on PC, in this way you can connect to internet to download the grub from internet... If you are with a Laptop, remember that WiFi connection doesn't work, you need to use Ethernet Cable :)



Nessun commento:

Posta un commento