LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-25-2012, 07:53 PM   #1
fankh
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
Help me, I have grub problem


Hi all.

I have installed Windows 7 on my new laptop.(It is Lenovo S205)

Then I have installed gentoo on that, all is well.

and I have rebooted laptop, I hope see grub screen.

But I couldn't see grub screen !

It is my laptop's information

- Partition -
/dev/sda1 fat32 (maybe windows EFI loader)
/dev/sda2 system area
/dev/sda3 Windows 7
/dev/sda4 Swap
/dev/sda5 Gentoo root(/)
/dev/sda6 /boot
/dev/sda7 Windows Data Partition

I have commended
# grub-install (hd 0)
# grub-install (hd 0,6)
# grub
grub > find /boot/grub/stage1
(hd 0,5)
grub > root (hd 0,5)
grub > setup (hd 0) --> and setup (hd 0,5)

- grub.conf -
default=0
timeout=5
splashimage=(hd0,5)/grub/splash.xpm.gz
title Gentoo
root (hd0,5)
kernel /boot/gentoo-3.2.1-r2 root=/dev/sda5

Those are command that I hited.

Why I can't see grub screen?

Thanks guys.
 
Old 03-25-2012, 10:28 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Your partition information doesn't look right unless you have mislabelled something. You should have an Extended partition in which to create your logical partitions.

Quote:
grub > root (hd 0,5)
grub > setup (hd 0)
Did you copy/paste the above or are those typos? You cannot have a space between the hd and the 0.
 
Old 03-25-2012, 11:06 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
So,is the machine working at all ?. That is, do you boot into gentoo ?.
Try commenting out the splashimage.

Let's see the output from (as root) "fdisk -l"
 
Old 03-27-2012, 09:32 AM   #4
fankh
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
yancek//
Thanks for reply. That information is true. My laptop is using EFI system and GPT disk. So, I could create many primary partition.
I tried that install grub, but I can't see grub screen.
How information is needed for advice?

syg00//
Thanks for reply.
No, I can't boot into gentoo.
It is my disk's information.
# parted
(parted) print
Model: ATA ST9500325AS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 1049KB 106MB 105MB fat32 EFI system Partition boot
2 106MB 240MB 134MB Microsoft reserved partition msftres
3 240MB 62.9GB 62.7GB ntfs Basic data partition
4 62.9GB 68.9GB 5984MB linux-swap(v1)
5 68.9GB 120GB 51.1GB ext4
6 120GB 121GB 500MB ext2
7 121GB 278GB 157GB ntfs

How chang Flags of /dev/sda1 boot to other?

Last edited by fankh; 03-27-2012 at 09:33 AM. Reason: editing
 
Old 03-27-2012, 09:38 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Are you using Grub1? For EFI/GPT systems you have to use a bootloader that supports EFI, like elilo or Grub2. It all is described in the UEFI page of the Gentoo Linux Wiki.
 
Old 03-27-2012, 09:43 AM   #6
fankh
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Wow. Thanks TobiSGD.

Last edited by fankh; 03-27-2012 at 09:54 AM.
 
Old 03-27-2012, 09:53 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by fankh View Post
So, Have to I recompile kernel?
If you don't have the options already enabled that the Wiki mentions, then yes.

Quote:
I think elilo is not support Windows 7 as I known.
Isn't it?
Sorry, I don't know, I neither use EFI nor elilo.

Edit: But according to the info on the ArchWiki it is possible with the EFI version of Grub2.

Last edited by TobiSGD; 03-27-2012 at 09:56 AM. Reason: Added info
 
  


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
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Problem with GRUB: partition not found. Grub Rescue?? genoboss Ubuntu 117 01-04-2011 07:56 PM
Installing GRUB in another disk problem, GRUB Hangs in boot caosxxi Linux - General 7 08-26-2009 01:55 PM
installing GRUB 2, grub-install problem r00tb33r Linux - Software 1 02-26-2007 09:42 PM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:46 AM.

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