LinuxQuestions.org
Visit Jeremy's Blog.
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 06-14-2006, 09:12 PM   #1
tendonut
Member
 
Registered: Nov 2005
Location: Niagara Falls, NY
Distribution: SuSE 10.2, Fedora Core 7, Ubuntu 6.06
Posts: 49

Rep: Reputation: 15
Another GRUB Problem...


Yes, it's another GRUB Problem. The only difference between mine is I am doing something rather screwy to prevent writing to the MBR of the drive with the Windows installer on it.

This is my partition setup:

hda1 (120GB) = Windows (NTFS)
hda5 (1GB) = swap
hda6 (15GB) = /
hda7 (17GB) = /home

hdb1 (160GB) = NTFS (Not touching this, it's for Windows ONLY)

Right now, I have XP and SuSE 10.1 installed on one hard drive, and the second hard drive is used strictly for mass storage like ISOs and Music (LAN party stuff). What I did, was install GRUB on the MBR Of the SECOND hard drive to avoid overwriting the one of the first drive, because apparently, Windows throws a shitfit when you change that. Then, after installing SuSE on the first drive, I configured the BIOS to boot to the second hard drive first, which accessed the boot loader there, then booted SuSE on the main drive no problem. The problem shows up when I try to boot WINDOWS using GRUB. I get this error...

chainloader (1,0)+1

Then, I changed the entry to something I saw on a forum that seemed to tailor my needs

title windows
root (hd0,0)
makeactive
chainloader +1

Still, no luck. This time, It gave me an error that said that (hd0,0) was an unknown file system.

I know these are very common when dual booting. So what I did, was change the (1,0) to (0,0). Same error. Any ideas of what I should do in this situation?

Last edited by tendonut; 06-14-2006 at 09:43 PM.
 
Old 06-14-2006, 10:30 PM   #2
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Would this be helpful?

http://forums.suselinuxsupport.de/in...showtopic=7820

I'm far from being skilled in GRUB and boot issues in general, but I have spent the last two days practically non-stop wrestling with GRUB problems and getting my Xubuntu Dapper system running again, so I definitely hope you will solve your problem with less effort (and report back what you had to do to fix it).

Good luck!
 
Old 06-14-2006, 11:09 PM   #3
fedora4002
Member
 
Registered: Mar 2004
Posts: 135

Rep: Reputation: 15
My guess is that you have set your system to boot from second hard drive. For GRUB, the hard drive that boot is alway starts with hd0. So you should refer hda1 as
(hd1, 0)

(hd0,0) in fact refer to your storage sytem which is unbootable so that it gives an error.
 
Old 06-14-2006, 11:39 PM   #4
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Windows will only boot from the first BIOS drive.

But you should be able to fool it with the grub map function: http://www.gnu.org/software/grub/man...OS_002fWindows

With the BIOS boot order set to boot the “second” drive first, try something like this:

/boot/grub/menu.lst:
Code:
title win
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
makeactive
boot
 
Old 06-15-2006, 12:03 AM   #5
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
GRUB will boot Linux from any drive. I have two of my three hard drives each bearing a different Linux distro, with the same /boot/grub/menu.lst on each. I can choose, from either drive, to boot it again, or to boot the other one. I don't know if that's a good way to set things up, but it seemed reasonable to me, and it works; so I'm happy with it for the moment.

(Sorry if this verges on being off-topic.)
 
Old 06-15-2006, 06:43 AM   #6
tendonut
Member
 
Registered: Nov 2005
Location: Niagara Falls, NY
Distribution: SuSE 10.2, Fedora Core 7, Ubuntu 6.06
Posts: 49

Original Poster
Rep: Reputation: 15
*Grabs monitor and start pwning it* Thanks everyone. I got it. I had no idea that GRUB considers the first BIOS drive (Not physical drive) to be hd0. If I knew that, I would have probably figured this out on my own. I rolled out of bed, saw all the responses, and was able to get back into windows and boot up AnaloxX Proxy before heading to work at the schools. Everything is blocked there, but the kids are done for the year...wth is that?

Last edited by tendonut; 06-15-2006 at 09:18 AM.
 
Old 06-15-2006, 08:14 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by fedora4002
My guess is that you have set your system to boot from second hard drive. For GRUB, the hard drive that boot is alway starts with hd0. So you should refer hda1 as
(hd1, 0)

(hd0,0) in fact refer to your storage sytem which is unbootable so that it gives an error.
Huh??

In grubspeak, (hd0,0) is drive 1, partition 1 Same as hda1

hd1,0 is the same as hdb1
 
Old 06-15-2006, 09:14 AM   #8
tendonut
Member
 
Registered: Nov 2005
Location: Niagara Falls, NY
Distribution: SuSE 10.2, Fedora Core 7, Ubuntu 6.06
Posts: 49

Original Poster
Rep: Reputation: 15
I think what he meant is the "first drive" is considered the drive that the machine boots to. So even though you'd think that (1,0) is hdb1, because I am booting to the second hard drive, Grub considers hdb1 to be (0,0). It doesn't seem very often that someone would try to BOOT to the second hard drive while the OS's is on the first. Regardless, marking the drive as (1,0) and remapping the drive labels, made Windows AND SuSE boot perfectly. And I didn't even have to mess with the first hard drive's MBR

Last edited by tendonut; 06-15-2006 at 09:28 AM.
 
Old 06-15-2006, 10:29 AM   #9
justin_bloom
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
grub should work fine in mbr of windows disk

Just as a note, I have GRUB installed in the MBR of my Windows XP drive and I haven't had any problems. It boots both my Windows XP partition and my /boot partition for Redhat very well.
 
Old 06-15-2006, 04:10 PM   #10
tendonut
Member
 
Registered: Nov 2005
Location: Niagara Falls, NY
Distribution: SuSE 10.2, Fedora Core 7, Ubuntu 6.06
Posts: 49

Original Poster
Rep: Reputation: 15
Thats good to know. I just heard horror stories about WinXP and virus scanners and the like. I preferred to avoid it. Thats why the bootloader was on the secondary MBR
 
Old 06-15-2006, 04:32 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by tendonut
I think what he meant is the "first drive" is considered the drive that the machine boots to. So even though you'd think that (1,0) is hdb1, because I am booting to the second hard drive, Grub considers hdb1 to be (0,0).
OOOOOOOOOOOOOOOOOHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!! (Sound of the light turning on.... )

So--even though EVERYTHING ELSE in Linux drive numbering, partition numbering, etc. is logical, GRUB is in its own little world.......undisturbed by logic and reason.......
 
Old 06-16-2006, 03:04 PM   #12
paul_e_t
Member
 
Registered: Sep 2003
Location: Orlinda TN USA
Distribution: SuSE 8.2, 9.0,.1,.2,.3,W98, Win ME, XP, Centos 4.2,4.3, VM DSL3.3 appliance
Posts: 125

Rep: Reputation: 17
Quote:
Originally Posted by pixellany
OOOOOOOOOOOOOOOOOHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!! (Sound of the light turning on.... )

So--even though EVERYTHING ELSE in Linux drive numbering, partition numbering, etc. is logical, GRUB is in its own little world.......undisturbed by logic and reason.......

OK, so in order to boot both Linux and M$ XP I'll have to take a course in both plus computer booting and then in GRUB. Hell, after several years I'm just going back to M$ and pay my money for a sys that works out-of-the-box. I'm just sick and tired of all the great hoopla and then not being able get things done because of spending much time trying to run linux. On the Worldcommunitygrid I have two systems running, one Linux (Centos4.3) and one XP. I get credit for XP but Linux runs in its own little world without adding it's points or completed tasks to the team score. I'm going out and buy an XP disk before the Vista charge socks me because XP will be my last OS. Run my business on Linux....NO WAY (some med people said the same thing).
 
Old 06-16-2006, 04:18 PM   #13
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
I'm sorry you feel so discouraged (and evidently angry, too). I've experienced the same thing many times in the three years since I replaced MS Windows with Linux--knowing nothing whatever about Linux. I've been so abusive to my keyboard I've had keys fly across the room and I've put a big dent in it. I've even slapped the box a couple of times not caring if the hard drives were ruined or not, I felt so mad and frustrated.

My big complaint these three years is that despite trying to make Linux user-friendly, it is far from being there yet. I am extremely annoyed by the attitude of users who in effect say, "If you don't want to become a computer geek, use Windows." Well, the reason I don't use Windows is twofold:

(1) It will never be safe.

(2) And this is the really important reason: I feel Microsoft is an immoral, predatory company pushing an inferior product off onto 95% (supposedly) of the world's computers. I'm delighted to see the slow but steady erosion of their customer base, principally in government but also in business.

I don't blame you one bit for going to Win XP at this point. It just makes me sad.

Twenty years ago today, June 16, 1986, I decided to quit drinking. I have kept that promise.

My promise never to use Windows again voluntarily is just as stern.

Just my point of view, and just about myself. I don't condemn anybody for using Windows and am totally sympathetic to their good reasons for it.

Edited to correct faulty arithmetic! (Twenty years ago was 1986, not 1996. I think.)

Last edited by jonr; 06-16-2006 at 06:35 PM.
 
Old 06-19-2006, 11:19 AM   #14
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by pixellany
OOOOOOOOOOOOOOOOOHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!! (Sound of the light turning on.... )

So--even though EVERYTHING ELSE in Linux drive numbering, partition numbering, etc. is logical, GRUB is in its own little world.......undisturbed by logic and reason.......
I used to think the same thing, it really pissed me off that not only does GRUB use 0-based numbering, but it also doesn't follow the beautiful cabling to system name correspondence that we are used to. I used to suspect that it was a case of RMS's huge & bruised ego taking a petty revenge.

Then I read this:
http://www.linuxquestions.org/questi...57#post2293757

It appears that GRUB can't know about the cabling & is dependent on what the BIOS tells it.

In this light, perhaps even the oddball nomenclature makes sense because it emphasizes the difference.
 
  


Reply

Tags
boot, dual boot, grub


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 dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 05:26 AM
GRUB problem Richgene Linux - Newbie 17 11-07-2005 02:29 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
GRUB problem pupunk98 Linux - Newbie 7 12-26-2002 04:34 AM


All times are GMT -5. The time now is 12:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration