View previous topic :: View next topic |
Author |
Message |
EasyPzy n00b
Joined: 01 Feb 2003 Posts: 37 Location: Stockholm, Sweden
|
Posted: Tue Feb 04, 2003 7:40 am Post subject: Warning! Newbie question ... |
|
|
I tried to install Gentoo yesterday and I totally stuffed it up!
Deleted Windows XP on hda1 oops ... and nothing seemed to work. Today I am trying again.
I have re-installed XP so that is ok and I have also re-partioned with fdisk to make sure everything is ok. My setup looks like this:
hda1 / WinXP
hda2 / boot (ext2)
hda3 / swap
hda4 / root (reiserfs)
When I install GRUB, do I have to mount hda1 first?
Can anyone give me suggestions on the commands for installing GRUB or can I just follow the installation instructions?
PS I did not do the "dd if=/dev/zero of=/dev/hda1 bs=1K count=1" as it would have erased my WinXP DS (I think ) |
|
Back to top |
|
|
garo Bodhisattva
Joined: 15 Jul 2002 Posts: 860 Location: Edegem,BELGIUM
|
Posted: Tue Feb 04, 2003 7:59 am Post subject: |
|
|
Quote: | When I install GRUB, do I have to mount hda1 first? |
no
Quote: | PS I did not do the "dd if=/dev/zero of=/dev/hda1 bs=1K count=1" as it would have erased my WinXP DS (I think ) |
good, you are right, it would destroy your xp partition, who told you to do this ?!?
Quote: | Can anyone give me suggestions on the commands for installing GRUB or can I just follow the installation instructions? |
The installation instructions here are quite good... _________________ My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam |
|
Back to top |
|
|
EasyPzy n00b
Joined: 01 Feb 2003 Posts: 37 Location: Stockholm, Sweden
|
Posted: Tue Feb 04, 2003 8:49 am Post subject: |
|
|
Quote:
PS I did not do the "dd if=/dev/zero of=/dev/hda1 bs=1K count=1" as it would have erased my WinXP DS (I think )
good, you are right, it would destroy your xp partition, who told you to do this ?!?
In the beginning of the installation instructions it says to do that.
Section 6.1 to be exact. I guess that describes a system with only Gentoo on it.
So it will be ok to type grub and then
grub> root (hd0,0)
grub> setup (hd0)
grub> quit |
|
Back to top |
|
|
jufoa Apprentice
Joined: 10 Dec 2002 Posts: 213 Location: Rovaniemi, Finland
|
Posted: Tue Feb 04, 2003 10:35 am Post subject: |
|
|
hmm. i think that lilo is more user friendly. partitions in grup are just too hard to understand =) |
|
Back to top |
|
|
hhaamu Apprentice
Joined: 23 Aug 2002 Posts: 253 Location: Finland
|
Posted: Tue Feb 04, 2003 11:15 am Post subject: |
|
|
EasyPzy wrote: | So it will be ok to type grub and then
grub> root (hd0,0)
grub> setup (hd0)
grub> quit |
No. That would point grub to your windows partition instead the boot partition.
Change the root (hd0,0) to root (hd0,1)
jufoa wrote: | hmm. i think that lilo is more user friendly. partitions in grup are just too hard to understand =) |
True, but grub has its advantages too. Like not having to run /sbin/lilo on every little kernel install or configuration change. Plus you can boot your computer without a config file by just searching the kernel image and giving it the correct parameters. That has saved me once |
|
Back to top |
|
|
Regor Guru
Joined: 06 Aug 2002 Posts: 545 Location: 39° 2' 48" N, 120° 59' 2" W
|
Posted: Tue Feb 04, 2003 11:35 am Post subject: |
|
|
That dd command is only for use on a disk that is going to be
dedicated to a new install. And it's not even necessary then
except in rare cases.
As for your partition layout you'll want to do:
grub> root (hd0,1)
grub> setup (hd0)
grub> quit
This is because your /boot partition is on your second partition, not your first. |
|
Back to top |
|
|
EasyPzy n00b
Joined: 01 Feb 2003 Posts: 37 Location: Stockholm, Sweden
|
Posted: Tue Feb 04, 2003 1:54 pm Post subject: |
|
|
Thanks a bunch for all the help!
Gentoo works like a charm, however I get an error message trying to start Windows from GRUB. Think I made a mistake in grub.conf.
Thanks again! |
|
Back to top |
|
|
garo Bodhisattva
Joined: 15 Jul 2002 Posts: 860 Location: Edegem,BELGIUM
|
Posted: Tue Feb 04, 2003 6:18 pm Post subject: |
|
|
Quote: | however I get an error message trying to start Windows from GRUB. Think I made a mistake in grub.conf.
|
It's just a extra feature of grub, it releases you from that evil windows addiction
No, serious now, could you post your grub.conf, maybe i can help. _________________ My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam |
|
Back to top |
|
|
Regor Guru
Joined: 06 Aug 2002 Posts: 545 Location: 39° 2' 48" N, 120° 59' 2" W
|
Posted: Wed Feb 05, 2003 8:09 am Post subject: |
|
|
Did you miss the "chainloader" command?
The entry in your grub.conf should look something like this
Code: |
title Windows
root (hd0,0)
chainloader +1
|
|
|
Back to top |
|
|
EasyPzy n00b
Joined: 01 Feb 2003 Posts: 37 Location: Stockholm, Sweden
|
Posted: Wed Feb 05, 2003 10:18 am Post subject: |
|
|
This is my grub.conf
default 0
timeout 30
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title=Gentoo Linux!
root (hd0,1)
kernel /boot/bzImage root=/dev/hda4
title=WindowsXP
root (hda0,0)
chainloader +1
My setup looks like
hda1 /winXP
hda2 /boot
hda3 /swap
hda4 /root
And yes it would be great to skip WinXP totally. Unfortunately I have to use it when doing online banking. No support for Netscape/Mozilla yet. |
|
Back to top |
|
|
xr31Daisy Guru
Joined: 19 Jul 2002 Posts: 326 Location: Paris, France
|
Posted: Wed Feb 05, 2003 10:33 am Post subject: |
|
|
EasyPzy wrote: |
title=WindowsXP
root (hda0,0)
chainloader +1
|
(hda0,0) should be (hd0,0). _________________ #include "pictures.h" |
|
Back to top |
|
|
EasyPzy n00b
Joined: 01 Feb 2003 Posts: 37 Location: Stockholm, Sweden
|
Posted: Wed Feb 05, 2003 12:03 pm Post subject: |
|
|
Yes, that was it. Now it works fine, even though it is XP.
Thanks alot! |
|
Back to top |
|
|
|