LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2007, 06:20 PM   #1
thmonkey
LQ Newbie
 
Registered: Apr 2005
Location: Patras, Greece
Distribution: SuSE 10.0
Posts: 15

Rep: Reputation: 0
Can't install grub correctly...


Greetings.

I have issues when trying to install grub. My pc has two hard disk drives:

1.SATA
Four partitions, /dev/sda1 is for existing windowsxp, /dev/sda2 is another (data) partition, /dev/sda6 is the ext3 i intend to install ubuntu 6.10 and /dev/sda7 is the swap partition.

2.PATA
only one partition /dev/hda1 for data.

The above is the order that my disks are set in BIOS.

The first time i tried to install ubuntu 6.10, when i was asked where to install grub i tried (hd0), which is wrong as after the installation grub didn't show, and windows booted normally. I tried another ubuntu installation, but instead of (hd0) i tried (hd1)...That time grub started up, but when i chose to start ubuntu i got the message

Error 22: No such Partition

and when i tried to start windows i got

Error: NTLDR.sys is missing (not sure about the extension, but i think you are familiar with the error)
Press Ctrl + Alt + Del to restart...

I can't figure out what i am doing wrong! Aren't I supposed to install grub in the mbr of the disk that boots? This disk is the SATA, which is correctly set in BIOS as such...

How can i make grub work? I don't like the solution of unplugging the PATA, installing ubuntu and grub and then plugging in the pata again and coming through all the fuss of mounting it and placing it in the partition tables...
 
Old 04-26-2007, 06:30 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
The key here is not how the BIOS sees the drives, but how the Ubuntu installer sees them. If it saw the SATA drive correctly as the first drive, then the GRUB install to hd0 should have worked.

Since you are using the PATA drive for data, you can remove all ambiguity by disconnecting it while you install Linux. (You'll only have to do this once.)

If you have a live CD version of Ubuntu, do fdisk -l before trying to install. This will tell us for sure how linux is seeing the drives.

Finally, be sure you are installing GRUB as part of the linux install (near the end of the process)
 
Old 04-26-2007, 06:37 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
If all else fails, download a copy of Super Grub Disk. Dumb name, but it seems to work.
 
Old 04-27-2007, 05:21 PM   #4
thmonkey
LQ Newbie
 
Registered: Apr 2005
Location: Patras, Greece
Distribution: SuSE 10.0
Posts: 15

Original Poster
Rep: Reputation: 0
I thought I should try the following:

Install ubuntu on the PATA disk, put grub in the mbr of the PATA, and then put the PATA to boot first...is there a way so that i can make grub "point" to thembr of the SATA disk for booting up windows?
 
Old 04-27-2007, 05:27 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Easy - and Ubuntu will do it all for you anway.
Just do it.
 
Old 04-27-2007, 08:06 PM   #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:
Originally Posted by thmonkey
I thought I should try the following:

Install ubuntu on the PATA disk, put grub in the mbr of the PATA, and then put the PATA to boot first...is there a way so that i can make grub "point" to thembr of the SATA disk for booting up windows?
Yes--you have to use the "map" command in the grub config file. (Because Windows needs to believe it is on the first drive)

I don't think the Ubuntu installer automatically creates this configuration.

GRUB manual here
 
Old 04-27-2007, 10:18 PM   #7
medya
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 87

Rep: Reputation: 15
u should read this
 
  


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
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
Help me install GRUB Correctly eNightmare Arch 4 05-03-2005 09:07 PM
Not only can I not get the grub installed correctly... Hunter69 Fedora - Installation 2 03-06-2005 06:35 PM
Grub not installing correctly confidential007 Fedora - Installation 7 07-10-2004 04:14 PM
GRUB is impossible for me to install correctly Bruce Hill Linux - Newbie 8 11-03-2003 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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