Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub setup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
jerome187
Guru
Guru


Joined: 29 Apr 2003
Posts: 584

PostPosted: Mon May 05, 2003 5:39 pm    Post subject: grub setup Reply with quote

step 23.2, Grub on the MBR

root (hd0,5)

works fine

setup(hd0)

returns:

Checking if "/boot/grub/stage1" exists... no
Chacking if "/grub/stage1" exists... no

Error 15: File not found

and there IS a boot/grub/stage1

i've tryed

setup (hd0,5)

but that returns:

Error 12: Invalid device requested
Back to top
View user's profile Send private message
modal
Apprentice
Apprentice


Joined: 02 Oct 2002
Posts: 277

PostPosted: Mon May 05, 2003 6:36 pm    Post subject: Reply with quote

any time that i have gotten this message was due to the fact that grub wasn't fully installed. just remerge it and you should be golden, at least that worked for me.
if that doesn't work, you can run grub off of your gentoo install cd, and that will work.
Back to top
View user's profile Send private message
jerome187
Guru
Guru


Joined: 29 Apr 2003
Posts: 584

PostPosted: Mon May 05, 2003 8:34 pm    Post subject: Reply with quote

that seemed to work, but i (thought) i finished installing and i rebooted and grub is all funky, theres vertical lines down the screen and i can barly read what its sayin, but i do get the the box where i can select wither i want to boot Gentoo Linux or Windoze 2000, when i select Gentoo, its says something like it cant find my kernel (i probbly messed up the path or something) and when i try to boot 2000 pro it hangs, it says

Booting 'Windows 2000'

root (hd0,6)
Filesystem type unknow, partion type 0x7
chainloader (hd0+6)+1


so close, yet so far....

i thinks i messesd up the grub settings, how can i fix it?

i made a grub boot disk BTW, i can boot that and get a grub command prompt
Back to top
View user's profile Send private message
jerome187
Guru
Guru


Joined: 29 Apr 2003
Posts: 584

PostPosted: Mon May 05, 2003 9:12 pm    Post subject: Reply with quote

ok, booted from cd, chrooted back into system, now i'm at the grub.conf file, heres what i have:

default 0
timeout 30
splashimage=(hd0,5)/boot/grub/splash.xpm.gz

title=Gentoo Linux
root (hd0,5)
kernel (hd0,5)/boot/bzImage root=/dev/hdb6 hdc=ide-scsi

title=Windows 2000 Professional
root (hd0,6)
chainloader (hd0,6)+1


whats wrong?
Back to top
View user's profile Send private message
jerome187
Guru
Guru


Joined: 29 Apr 2003
Posts: 584

PostPosted: Mon May 05, 2003 9:42 pm    Post subject: Reply with quote

HORRAY!!!

Gentoo boots now, i had all the hd0,5's wrong, there suppoest to be hd0,0

but windoze still dosent work...\

any suggestions?
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon May 05, 2003 10:31 pm    Post subject: Reply with quote

jerome187 wrote:
title=Windows 2000 Professional
root (hd0,6)
chainloader (hd0,6)+1


whats wrong?

The problem is NTLDR (the Windows bootloader) only installs itself to a primary partition, even if the bulk of your Windows installation is on an extended partition like (hd0,6).
Hopefully, you did not delete your primary Windows partition to make room for Gentoo, because getting rid of NTLDR makes Windows unbootable.
Back to top
View user's profile Send private message
jerome187
Guru
Guru


Joined: 29 Apr 2003
Posts: 584

PostPosted: Mon May 05, 2003 11:03 pm    Post subject: Reply with quote

ahh crap...

so theres no way windows will boot off a extened partion?

i actually partioned the drives while installing windows, and it booted fine witout grub there
Back to top
View user's profile Send private message
jerome187
Guru
Guru


Joined: 29 Apr 2003
Posts: 584

PostPosted: Tue May 06, 2003 1:45 am    Post subject: Reply with quote

this freaking sucks, i thought i had it installed correctly this time....

well, i'll give it one more shot then i'm back to redhat.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue May 06, 2003 2:00 am    Post subject: Reply with quote

The easiest way to setup Windows & Linux for dual-booting is to install Windows (all of it) to /dev/hda1, then install Linux anywhere you want and put GRUB in the MBR.
Back to top
View user's profile Send private message
prberens
n00b
n00b


Joined: 22 Aug 2002
Posts: 27
Location: 34° N 118° W

PostPosted: Tue May 06, 2003 2:15 am    Post subject: Reply with quote

Hang on there.... I have windoz2000 on the second partition and it works fine... My grub.conf (menu.lst) has the following for windoz

Code:
title=Windows 2000 Professional
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
boot


Notice the partition mapping.

Also I changed the windowz boot.ini file so that it looks to the second partition
Code:

multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional"
/fastdetect


Hope this helps :D
_________________
- P -
Make it right before you make it faster.
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Tue May 06, 2003 4:17 pm    Post subject: Reply with quote

Above^ that is on his second drive (not second partition)



You don't have to blow away gentoo to redo windows. You can mv gentoo around to make room for a primary windows partition as long as there is some space to do so. Then all you have to do is change the fstab and grub.conf files to the new locations of gentoo.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
jerome187
Guru
Guru


Joined: 29 Apr 2003
Posts: 584

PostPosted: Tue May 06, 2003 6:00 pm    Post subject: Reply with quote

oops, i allready partioned the drive and installed windoze on hdb1 :cry:
Back to top
View user's profile Send private message
jerome187
Guru
Guru


Joined: 29 Apr 2003
Posts: 584

PostPosted: Tue May 06, 2003 11:22 pm    Post subject: Reply with quote

cyrillic wrote:
The easiest way to setup Windows & Linux for dual-booting is to install Windows (all of it) to /dev/hda1, then install Linux anywhere you want and put GRUB in the MBR.


so do i even need to make a /boot partion?

heres what i'm thinking:

/dev/hdb1 windows
/dev/hdb2 large data storage for both linux and windows to use (FAT 32)

then the gentoo linux install entirly in extended partions

/dev/hdb5 swap
/dev/hdb6 root

do i need to create a /boot partioin anywhere?
Back to top
View user's profile Send private message
jerome187
Guru
Guru


Joined: 29 Apr 2003
Posts: 584

PostPosted: Tue May 06, 2003 11:38 pm    Post subject: Reply with quote

heres what i have::

partion # what it is

1 windoze
2 boot partion
3 FAT 32 Data storage
4 extended
5 Linux /root partion
6 Linux swap

!where does the boot flag go?!
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Tue May 06, 2003 11:42 pm    Post subject: Reply with quote

No, you don't need to. BUT it is very adviseable for kernel protection. If you don't have much space left then you can make it smaller, say 35 megs. You just won't be able to store as many different kernels in it.


You can alway change it later if you get another drive. Just boot from the livecd, move the directories around different partitions, change fstab & grub.conf.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
jerome187
Guru
Guru


Joined: 29 Apr 2003
Posts: 584

PostPosted: Wed May 07, 2003 12:04 am    Post subject: Reply with quote

i've got lots of space, a 100 meg boot partion is nothin on my 120 giger.

but i still need to know where to put the boot flag
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Wed May 07, 2003 12:23 am    Post subject: Reply with quote

The best way is to put it on the /boot partition so that you leave the windows boot loader and MBR alone. A windows re-install then won't blow away your grub. you only have to change the boot partition flag from /boot to windows and back again.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
jerome187
Guru
Guru


Joined: 29 Apr 2003
Posts: 584

PostPosted: Wed May 07, 2003 6:29 am    Post subject: Reply with quote

ok, i'm at the grub step, the install guide says to do this:

grub> root (hd0,0) // Your boot partition
grub> setup (hd0) // Where the boot record is installed, here, it is the MBR

I dont want to do the second command, do i? Do i just do this insdead:

grub> root (hd0,1)

PS: my boot flag is on /dev/hdb2 (which is (hd0,1) to grub)
Back to top
View user's profile Send private message
Me
n00b
n00b


Joined: 12 Apr 2003
Posts: 71
Location: Earth

PostPosted: Wed May 07, 2003 9:35 am    Post subject: Reply with quote

Code:
root (hd0,1)
setup (hd0,1)
This will setup grub to the boot partation. If this has the boot-flag on it, it'll start GRUB. If it is on Windows it'll skip GRUB.
You could also choose to boot everything from the NT loader. That's what I do, it's easier. If you do this you should set GRUB's timeout to 1, just enough to be able to recover something if it's broken.
Code:
dd if=/dev/hda2 of=/bootsect.lnx bs=512 count=1
Just do this in linux (after having setup GRUB), and copy /bootsect.lnx somewhere windows can access it (floppy or FAT32).
Finish the rest of the install, but reboot in windows.
Now login, and copy the bootsect.lnx file to your c:\
Now press Start>Run, type cmd and OK. Now type:
Code:
attrib -r -h -s c:\boot.ini
notepad c:\boot.ini
This should look like
Code:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows 2000 Professional"

Just add a line that says
Code:
C:\BOOTSECT.LNX="Linux"
after it, save the file, go back to your command prompt and type attrib +r +h +s c:\boot.ini and you're done.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum