LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-25-2014, 03:00 PM   #1
J.Sickness
LQ Newbie
 
Registered: Feb 2014
Posts: 2

Rep: Reputation: Disabled
Question Linux on Windows 8 (UEFI) NEED HELP WITH Grub.cfg file!


I'm trying to install Linux on my personal Windows 8 laptop (Sony Vaio Flip 15).


To my knowledge there are currently only two distributions of Linux that support Windows 8 (Ubuntu and Fedora)
I have tried Ubuntu with no errors running the distro live.(I did not try installing it)
However, for the tasks I'm trying to accomplish I need Back track5 r3 (or *preferably) Kali

I have currently installed Kali Linux on a USB flash drive using:
Universal USB Installer ()
At this point, I have configured my laptop to boot from an external device before booting form the internal hard drive. I understand Windows 8 uses Unified Extensible Firmware Interface (UEFI) and not BIOS. Therefore, I have disabled secure boot and created the following directory in my USB flash drive root.

/EFI/BOOT
Within this directory I have copied (Bootx64.efi & Grubx64.efi) from Ubuntu; additionally, I have created a Grub.cfg file (

As of now I have been able to
1). Boot into GRUB shell - Unfortunately I do not know how to boot Kali from the shell
When I attempt command boot (error: you need to load the kernel first)
2). Boot kali install menu - when I attempt to run the distribution live it encounters the following errors:
Error: Disk 'hd0,1' not found
Error: You need to load the kernel first


In an attempt to fix the above 'hd0'1' error I have changed the set root=(hd0,1) to (hd1,1) as my USB is currently listed as disk 1 (under windows management)
After changing the hd, the grub recognizes the HD but can not find:
/live/vmlinuz boot=live noconfig=sudo username=root hostname=kali
*VMLINUZ is the file It needs to find*
So basically (I'm assuming) I'm still not booting the correct hd? because the usb contains the live folder and has vmlinuz file in it!


IS THERE ANY WAY TO ENSURE THE CORRECT (hd0,1) or (hd1,1) or (hd?,?)
Also, what's with grub saying I need to boot the kernel first ?
(am I not already trying to do that?)
***BTW the Grub.txt file attached is actually the




Thank you for your time!





GRUB.CFG


# 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-cfe41b... 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}
 
Old 02-25-2014, 08:36 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,368

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
If it isn't a rescue prompt this should work
Code:
ls
and
Code:
set
to determine where grub is looking at for configuration files and what grub is calling the partition that grub.cfg is located on.
Code:
configfile(hd?,gpt?)/path/to/grub.cfg
this should bring up your grub prompt if the grub.cfg is on a gpt formatted drive. The Grubx64.efi has only a few modules and if grub can't find modules to load will result in the errors that your seeing. On most system the grub.cfg needs to be in the same directory as the Grubx64.efi. Instead of coping the Grubx64.efi try running
Code:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub --recheck --debug
or something similar. This is assuming the efi partition is mounted to /boot/efi.

Last edited by colorpurple21859; 02-25-2014 at 08:38 PM.
 
1 members found this post helpful.
Old 02-27-2014, 10:30 AM   #3
J.Sickness
LQ Newbie
 
Registered: Feb 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Talking Code

Thank you for the Code (I'm a complete noobie when it comes to grub commands) I'm so use to just sticking my USB into my Windows Vista desk top and booting with out any issues!

On another forum someone posted that i could use Easy BCD to Chain boot Grub before (UEIF) I don't know how simple that may be so im going to attempt your ideas first!

Thanks again!

J.Sickness

Last edited by J.Sickness; 02-27-2014 at 10:31 AM. Reason: Typ0 :)
 
Old 03-06-2014, 07:46 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
On maybe the General forums today one of the guys posted a link or how to on 7 ways to get this to work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Help me with Arch Linux and Windows XP dualboot, grub.cfg messed!! p3ini Linux - Newbie 4 06-11-2011 02:22 PM
grub.cfg file in grub2 sheine Linux - Software 2 01-22-2011 12:06 PM
GRUB2 doesn't recognize grub.cfg file dragos240 Linux From Scratch 3 07-27-2010 10:16 AM
[SOLVED] How does Grub2 find the grub.cfg file? LenW Linux - Software 8 03-15-2010 03:28 AM
grub.cfg file configuration help niravshah Linux - Newbie 4 09-19-2009 09:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 05:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration