LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2009, 04:05 AM   #1
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Rep: Reputation: 36
Ubuntu GRUB Install giving me headache


Hi all,

I have just trashed my full install of windows vista with linux vmware and decided to use linux as my main OS and have a small partition of vista for my gaming.

So I have reinstalled vista as a 400GB slice and am using the rest of the disk (1TB samsung F1) for Ubuntu 9.04

I have set up the partitions using LVM as below:

Quote:

sudo fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd2cae5f5

Device Boot Start End Blocks Id System
/dev/sda1 * 1 51559 414147636 7 HPFS/NTFS
/dev/sda2 * 51560 51611 417690 8e Linux LVM
/dev/sda3 51612 52917 10490445 8e Linux LVM
/dev/sda4 52918 121601 551704230 5 Extended
/dev/sda5 52918 54876 15735636 8e Linux LVM
/dev/sda6 54877 56835 15735636 8e Linux LVM
/dev/sda7 56836 56967 1060258+ 8e Linux LVM
/dev/sda8 56968 57099 1060258+ 82 Linux swap / Solaris
/dev/sda9 57100 121601 518112283+ 8e Linux LVM


sudo pvscan

PV /dev/sda9 VG Zeus-home lvm2 [494.11 GB / 486.11 GB free]
PV /dev/sda8 VG Zeus-swap lvm2 [1.01 GB / 8.00 MB free]
PV /dev/sda7 VG Zeus-tmp lvm2 [1.01 GB / 980.00 MB free]
PV /dev/sda6 VG Zeus-var lvm2 [15.00 GB / 11.00 GB free]
PV /dev/sda5 VG Zeus-usr lvm2 [15.00 GB / 7.00 GB free]
PV /dev/sda3 VG Zeus-root lvm2 [10.00 GB / 5.00 GB free]
PV /dev/sda2 VG Zeus-boot lvm2 [404.00 MB / 204.00 MB free]
Total: 7 [536.53 GB] / in use: 7 [536.53 GB] / in no VG: 0 [0 ]
When I try to install the OS using the install icon on the live CD desktop I go as far as installing all the packages etc etc. But the bootloader fails with a fatal error message.

Quote:
Executing 'grub-install (hd0)' failed
I have tried using /dev/sda and sda still the same message appears

Any help on what I am doing wrong will be greatly appreciated.

Thanks
 
Old 09-11-2009, 04:20 AM   #2
j_jerry
Member
 
Registered: Sep 2009
Distribution: fedora 11
Posts: 318

Rep: Reputation: 46
Executing 'grub-install (hd0)' failed

The same message appeared when you selected /dev/sda ??

Also did you select MBR while installing grub ?
 
Old 09-11-2009, 04:32 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I would make the boot partition ext2 or ext3 and not in a LVM physical volume. You don't need a separate physical volume for each partition. But you want the kernel and initrd file and the stage1.5 grub files in /boot to be accessible. The stage1.5 files are what is needed for grub to understand various filesystems. If grub can't read them, it won't be able to load the kernel and initrd file. The /boot partition does not need to be big. A 80-100MB partition would be plenty. It depends on whether you will keep old kernels around as they are updated. This makes it easy to use dd to backup the /boot partition as well, as a file.

You could try this instead:
NTFS
/boot
swap
/extended
LVM Volume

Since there are only 4 partitions, this would work as well:
NTFS
/boot
swap
LVM volume

Last edited by jschiwal; 09-11-2009 at 04:46 AM.
 
Old 09-11-2009, 04:32 AM   #4
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Original Poster
Rep: Reputation: 36
Sorry for my ignorance but I am new to bootloaders

Can you explain what the correct command should be used or stated in the install front end

I have just been trying all sorts of ways to install this thing. The software install works (packages) but when it gets to the bootloader it falls in a heap everytime.

What do you mean by select MBR?
 
Old 09-11-2009, 04:38 AM   #5
j_jerry
Member
 
Registered: Sep 2009
Distribution: fedora 11
Posts: 318

Rep: Reputation: 46
MBR is Master Boot Record

It's the main loader, you should rewrite MBR if you have another MBR already written (like windows')

There'll be an option to install grub on MBR or partition, choose MBR
 
Old 09-11-2009, 04:45 AM   #6
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Original Poster
Rep: Reputation: 36
It doesnt mention anything about the MBR only where to install grub under the advanced tab before installation takes place.

It defaults to (hd0) which fails. So I tried entering in /dev/sda and also fails.

So I am a little confused as to what I enter in.
 
Old 09-11-2009, 04:58 AM   #7
j_jerry
Member
 
Registered: Sep 2009
Distribution: fedora 11
Posts: 318

Rep: Reputation: 46
I don't remember ubuntu setup, but i think there's an EDIT (or something similar) in the grub install screen (post-install configuration)

Look for it or try to describe the grub install screen (screenshot would've been great)
 
Old 09-11-2009, 05:38 AM   #8
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Original Poster
Rep: Reputation: 36
1) Partition screen. Note that mount points arent defined here
Click image for larger version

Name:	Screenshot-Install.png
Views:	21
Size:	130.6 KB
ID:	1466

2) Submit the mount points using Edit Partition button at the bottom
Click image for larger version

Name:	Screenshot-Edit partition.png
Views:	27
Size:	21.2 KB
ID:	1467

3) All partition mount points defined, Hit the forward button
Click image for larger version

Name:	Screenshot-Install-1.png
Views:	25
Size:	132.6 KB
ID:	1468

More pics to come...
 
Old 09-11-2009, 05:46 AM   #9
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Original Poster
Rep: Reputation: 36
4) Next page to enter user and password and system name
Attachment 1469

5) Optional screen to migrate windows files into Linux
Attachment 1470

6) Last screen with advance tab at the bottom of screen
Attachment 1471

Sorry pics didnt come out here... please ignore and go to next post

Last edited by fusion1275; 09-11-2009 at 05:53 AM.
 
Old 09-11-2009, 05:49 AM   #10
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Original Poster
Rep: Reputation: 36
4) Next page to enter user and password and system name
Click image for larger version

Name:	Screenshot-Install-2.png
Views:	22
Size:	55.7 KB
ID:	1473

5) Optional screen to migrate windows files into Linux
Click image for larger version

Name:	Screenshot-Install-3.png
Views:	25
Size:	39.7 KB
ID:	1474

6) Last screen with advance tab at the bottom of screen
Click image for larger version

Name:	Screenshot-Install-4.png
Views:	25
Size:	77.5 KB
ID:	1475

More pics to come...
 
Old 09-11-2009, 05:55 AM   #11
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Original Poster
Rep: Reputation: 36
7) Advance tab. If I expand the drop down for (hd0) it has all the partitions like in section 3 of my post
Click image for larger version

Name:	Screenshot-Advanced Options-1.png
Views:	20
Size:	29.2 KB
ID:	1476

I hope this helps try to understand my situation
 
Old 09-11-2009, 05:58 AM   #12
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Rep: Reputation: 44
Grub and LVM do not get along.

Make a separate non LVM /boot
 
Old 09-11-2009, 06:03 AM   #13
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Original Poster
Rep: Reputation: 36
Oh really? OK I will just use a standard partition instead of LVM for /boot and try again.
 
Old 09-11-2009, 06:21 AM   #14
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Original Poster
Rep: Reputation: 36
Install now running... will keep you posted
 
Old 09-11-2009, 08:15 AM   #15
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Original Poster
Rep: Reputation: 36
Well I seem to have installed the OS now and it was working until I did an update of everything as it normally asks for upon a new build.

Now all I am getting is:

Quote:
* Checking battery state...
/dev/sda:
setting Advanced Power Management level to 0xfe (254)
What on earth does that mean???
 
  


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
autoconf is giving me a headache binarybob0001 Programming 1 03-15-2008 07:55 AM
this opera is giving me a headache boxerboy Ubuntu 12 10-05-2005 06:44 AM
Slackware 10.0 install giving me a headache GeneralChaos Slackware - Installation 17 07-02-2005 08:53 PM
samba giving me a headache DAChristen29 Linux - Networking 14 07-03-2003 11:34 AM
Need Help PORTFW is giving me a headache. cenci Linux - Networking 1 02-17-2003 06:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:29 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