Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Warning! Newbie question ...
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
EasyPzy
n00b
n00b


Joined: 01 Feb 2003
Posts: 37
Location: Stockholm, Sweden

PostPosted: Tue Feb 04, 2003 7:40 am    Post subject: Warning! Newbie question ... Reply with quote

I tried to install Gentoo yesterday and I totally stuffed it up! :D

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
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Tue Feb 04, 2003 7:59 am    Post subject: Reply with quote

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
View user's profile Send private message
EasyPzy
n00b
n00b


Joined: 01 Feb 2003
Posts: 37
Location: Stockholm, Sweden

PostPosted: Tue Feb 04, 2003 8:49 am    Post subject: Reply with quote

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
View user's profile Send private message
jufoa
Apprentice
Apprentice


Joined: 10 Dec 2002
Posts: 213
Location: Rovaniemi, Finland

PostPosted: Tue Feb 04, 2003 10:35 am    Post subject: Reply with quote

hmm. i think that lilo is more user friendly. partitions in grup are just too hard to understand =)
Back to top
View user's profile Send private message
hhaamu
Apprentice
Apprentice


Joined: 23 Aug 2002
Posts: 253
Location: Finland

PostPosted: Tue Feb 04, 2003 11:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Regor
Guru
Guru


Joined: 06 Aug 2002
Posts: 545
Location: 39° 2' 48" N, 120° 59' 2" W

PostPosted: Tue Feb 04, 2003 11:35 am    Post subject: Reply with quote

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
View user's profile Send private message
EasyPzy
n00b
n00b


Joined: 01 Feb 2003
Posts: 37
Location: Stockholm, Sweden

PostPosted: Tue Feb 04, 2003 1:54 pm    Post subject: Reply with quote

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! :D
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Tue Feb 04, 2003 6:18 pm    Post subject: Reply with quote

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 :D
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
View user's profile Send private message
Regor
Guru
Guru


Joined: 06 Aug 2002
Posts: 545
Location: 39° 2' 48" N, 120° 59' 2" W

PostPosted: Wed Feb 05, 2003 8:09 am    Post subject: Reply with quote

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
View user's profile Send private message
EasyPzy
n00b
n00b


Joined: 01 Feb 2003
Posts: 37
Location: Stockholm, Sweden

PostPosted: Wed Feb 05, 2003 10:18 am    Post subject: Reply with quote

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
View user's profile Send private message
xr31Daisy
Guru
Guru


Joined: 19 Jul 2002
Posts: 326
Location: Paris, France

PostPosted: Wed Feb 05, 2003 10:33 am    Post subject: Reply with quote

EasyPzy wrote:

title=WindowsXP
root (hda0,0)
chainloader +1

(hda0,0) should be (hd0,0).
_________________
#include "pictures.h"
Back to top
View user's profile Send private message
EasyPzy
n00b
n00b


Joined: 01 Feb 2003
Posts: 37
Location: Stockholm, Sweden

PostPosted: Wed Feb 05, 2003 12:03 pm    Post subject: Reply with quote

Yes, that was it. Now it works fine, even though it is XP. :wink:

Thanks alot!
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