LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ubuntu GRUB Install giving me headache (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-grub-install-giving-me-headache-754357/)

fusion1275 09-11-2009 04:05 AM

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

j_jerry 09-11-2009 04:20 AM

Executing 'grub-install (hd0)' failed

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

Also did you select MBR while installing grub ?

jschiwal 09-11-2009 04:32 AM

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

fusion1275 09-11-2009 04:32 AM

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?

j_jerry 09-11-2009 04:38 AM

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

fusion1275 09-11-2009 04:45 AM

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.

j_jerry 09-11-2009 04:58 AM

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)

fusion1275 09-11-2009 05:38 AM

3 Attachment(s)
1) Partition screen. Note that mount points arent defined here
Attachment 1466

2) Submit the mount points using Edit Partition button at the bottom
Attachment 1467

3) All partition mount points defined, Hit the forward button
Attachment 1468

More pics to come...

fusion1275 09-11-2009 05:46 AM

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

fusion1275 09-11-2009 05:49 AM

3 Attachment(s)
4) Next page to enter user and password and system name
Attachment 1473

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

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

More pics to come...

fusion1275 09-11-2009 05:55 AM

1 Attachment(s)
7) Advance tab. If I expand the drop down for (hd0) it has all the partitions like in section 3 of my post
Attachment 1476

I hope this helps try to understand my situation

doublejoon 09-11-2009 05:58 AM

Grub and LVM do not get along.

Make a separate non LVM /boot

fusion1275 09-11-2009 06:03 AM

Oh really? OK I will just use a standard partition instead of LVM for /boot and try again.

fusion1275 09-11-2009 06:21 AM

Install now running... will keep you posted

fusion1275 09-11-2009 08:15 AM

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???


All times are GMT -5. The time now is 06:25 AM.