Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-09-2007, 09:06 PM   #1
LQ Newbie
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
Grub 1.5 prob. error 22

i have 2 pata and 2 satas. Windows xp ruining in sata 1 and linux should run in sata 2. I detached my 2 pata drives because grups keep insisting on installing itself into pata drive 1 connected as master. After disconnecting both pata drives. Grup is installed into sda which is my first sata drive. After installation it runs linux runs fine. Reconnected the 2 pata drives and grub gives error code 22. Disconnected them and grub runs and boots linux. If installation with my 2 pata drives connected, grub keeps insting that i use my pata drives as its location. How do i select my 1st sata (sda)drive as the location for the MBR?
Old 01-09-2007, 09:18 PM   #2
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
You have 2 different grubs, one on the PATA and one on the SATA? That can only be corrected in the BIOS. You want it set so that it tries to boot the SATA before the PATA. That isn't a configuration/software, it is strictly controlled by the BIOS boot order.

Old 01-11-2007, 08:34 PM   #3
LQ Newbie
Registered: Jan 2007
Posts: 2

Original Poster
Rep: Reputation: 0
my problem now is that. I need to detach both my ide drives before i can get grub to run. With the ide drives present i get error code 22. In my bios the boot order is sata 1 ->sata 2-> pata1->pata2. Grub was installed on Sata 1 into the mbr. I have booted to linux using the installation cd and tried reconfiguring grub. with my ide drives present. i get this in the grub drive order.

hd0 hdc (pata 1)
hd1 hdd (pata 2)
hd2 sda (sata 1)
hd3 sdb (sata 2)

previously was
hd0 sda
hd1 sdb

Change every entry in the config to satisfy the new order. No go.
changed the drive order to
hd0 sda
hd1 sdb
hd2 hdc
hd3 hdd

and all necessary parameters in the config . Still no go.

windows resides in (hd0,1) and linux resides in (hd1,8) and grub in (hd0)if the order is C or B
. If the order is B, grub runs but if it's in C, my grub dun run.

Old 01-11-2007, 11:49 PM   #4
Senior Member
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 61
Have you tried reinstalling grub? Set the config as you want, pop in the Linux cd/dvd, type 'linux rescue', then 'chroot /mnt/sysimage' and finally 'grub-install /dev/sda'.
Old 01-12-2007, 03:36 AM   #5
Registered: Apr 2006
Location: Place for all OpenSource
Distribution: OpenBSD 4.1, FC5
Posts: 50

Rep: Reputation: 15
just try


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
GRUB Prob and some newbie questions Dark X PSX Linux - Newbie 9 09-09-2006 12:49 AM
grub loader prob rinku Linux - Newbie 2 03-02-2005 08:18 AM
Grub prob Whiteghost Linux - Laptop and Netbook 3 07-05-2004 10:00 AM
OS List prob in GRUB !! hitesh_linux Linux - General 6 12-06-2002 07:22 AM
GRUB prob with RHL 8.0 hitesh_linux Linux - General 1 12-05-2002 10:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration