LinuxQuestions.org
Visit Jeremy's Blog.
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 07-04-2007, 01:46 AM   #1
CyberEd
Member
 
Registered: Jun 2003
Location: Cebu City, Philippines
Distribution: Red Hat 5.2, 7.0
Posts: 30

Rep: Reputation: 15
GRUB problem


Im trying out Ubuntu.
And I am also try to make a multi-boot for my computer.
I already have Vista and XP installed.
And I want Linux as my 3rd OS.
I setup Linux Ubuntu nicely until it comes to
GRUB installation.

It has a message of (thought this is not the exact wording) GRUB installation failed on hd0,5

This is my partition right now by the way.
/dev/sda1/ NTFS
/dev/sda2/ Ext'd (Logical partition)
unser /sda2 i have
/dev/sda5/ NTFS
/dev/sda6/ NTFS
/dev/sda7/ NTFS
/dev/sda8/ ext3 (for my Linux)

When my GUI based installation fails.
I tried the terminal route.

I typed the following commands.

sudo -i
grub
root (hd0,5)
setup (hd0)

It then returns the message:

Cannot Mount the selected partition.
I tried also (hd0,7)
also (hd0,1) and so forth but with the same message.

Please help.
Thanks and God bless.
 
Old 07-04-2007, 03:48 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Your Linux installation is on hd0,7. To install grub on the linux root partition, try
Code:
grub-install /dev/sda8
To install grub in the MBR, try
Code:
grub-install /dev/sda
Post back any error messages.
 
Old 07-04-2007, 09:31 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I'm curious as to why the Ubuntu installer attempted to put GRUB on hd0,5 (/dev/hda6) That is one of your NTFS partitions. When you were installing, do you recall what option you selected for the bootloader?

The easiest thing might be to simply re-install Ubuntu and tell the installer to put the bootloader (GRUB) on a floppy disk. You can also try running the grub shell from your liveCD, if you have one.

See the link below for more on booting.
 
Old 07-04-2007, 11:57 PM   #4
CyberEd
Member
 
Registered: Jun 2003
Location: Cebu City, Philippines
Distribution: Red Hat 5.2, 7.0
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by reddazz
Your Linux installation is on hd0,7. To install grub on the linux root partition, try
Code:
grub-install /dev/sda8
To install grub in the MBR, try
Code:
grub-install /dev/sda
Post back any error messages.
I tried your suggestions and it has the following message:

Could not find device for /boot: Not found or not a block device.

Thanks for your response by the way.
 
Old 07-05-2007, 12:02 AM   #5
CyberEd
Member
 
Registered: Jun 2003
Location: Cebu City, Philippines
Distribution: Red Hat 5.2, 7.0
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany
I'm curious as to why the Ubuntu installer attempted to put GRUB on hd0,5 (/dev/hda6) That is one of your NTFS partitions. When you were installing, do you recall what option you selected for the bootloader?

The easiest thing might be to simply re-install Ubuntu and tell the installer to put the bootloader (GRUB) on a floppy disk. You can also try running the grub shell from your liveCD, if you have one.

See the link below for more on booting.
I just try out the different hda to check which one would work. Thus, i also try hd0, 5.

When i installed it (bootloader i.e. GRUB) i installed it at the / or the root.

I dont have a floppy drive by the way.

I also did try to run a grub shell. using sudo -l,
then grub command etc. but i could not make it work.

By the way how come does the Gpartheid (partition software)
detect my Vista OS on the extended drive not on the primary
drive as my XP does?

Any more suggestions?

Thank you for your help.

God bless.
 
Old 07-05-2007, 07:51 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
When i installed it (bootloader i.e. GRUB) i installed it at the / or the root.
Not possible---GRUB is installed either in the MBR or in the bootsector of a partition. It is never installed in a directory.

Quote:
I also did try to run a grub shell. using sudo -l,
then grub command etc. but i could not make it work.
What happened?

Quote:
Any more suggestions?
Same as before: Re-install Ubuntu. since you do not have a floppy, put GRUB on the MBR. (Assuming that you have a Winodws install CD to recover if necessary.) Or--get a floppy. They are cheap and--even though obsolete for most things, they REALLY can come in handy.

Quote:
I just try out the different hda to check which one would work.
Really bad idea---anytime you start randomly installing something in different places, you are asking for trouble.

Last edited by pixellany; 07-05-2007 at 07:52 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
installing GRUB 2, grub-install problem r00tb33r Linux - Software 1 02-26-2007 09:42 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 05:26 AM
HDD problem, scancode problem and grub EJ_INSIDE Debian 2 07-15-2004 09:36 AM
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 11:42 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