Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
reinstalling gentoo (backuphome dir)
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
tba
Apprentice
Apprentice


Joined: 01 Jun 2002
Posts: 173

PostPosted: Fri Jun 14, 2002 7:35 pm    Post subject: reinstalling gentoo (backuphome dir) Reply with quote

2 questions...
is it absolutely necessary to install windows first or can i install windows and fdisk /mbr to get back whatever changes it made to the master bott record AFTER installing gentoo.

if i wnated to keep some of my settings (like kikcker and my themes and stuff) would it be enough to backup my home directory and copy it over the new one?
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Mon Jun 17, 2002 3:46 am    Post subject: Reply with quote

You can install Windows second, as long as you have a free partition on your hard drive and don't feel uncomfortable overwriting the Windows MBR with a Linux (i.e. GRUB) MBR. Just install Windows as normal, boot up the Gentoo CD, re-install grub (i.e. "setup (hd0)" at the grub> prompt), and tell it about Windows.

Also, note that Windows doesn't like to boot up off the second hard drive, but there are workarounds for that.
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Mon Jun 17, 2002 5:37 am    Post subject: Reply with quote

the best way to "backup" your /home dir is to create a seperate PARTITION and mount it to /home - oh the beauty of the linux file system.

that way when you re-install linux, just re-mount that partition to /home and you'll have everything the way you left it, including your desktop settings.

I'd install windows first - but if you don't want to, then you'll just have to re-install grub again.

I recommend making a rescue boot-disk so you can easily re-boot into your linux system and re-install grub. OR like delta407 said, boot off the gentoo cd again and re-mount your partitions and install grub again.
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Mon Jun 17, 2002 5:37 am    Post subject: Reply with quote

This is my problem too...
I have 2 HD, in first i have gentoo and second windows2000
I've heared that grub can load windows from second drive using map command like:
>map (hd0) )hd1)
>map (hd1) (hd0)

AnY clue about?
_________________
All for one and one for All
--

MACPRO machine...


Last edited by DArtagnan on Mon Jun 17, 2002 7:44 am; edited 1 time in total
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Mon Jun 17, 2002 6:19 am    Post subject: Reply with quote

you should only need to install grub on your first hard disk (as per install instructions)

then you just add a second entry in y our /boot/grub/menu.lst file (it's covered in the install instructions)
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Mon Jun 17, 2002 6:24 am    Post subject: Reply with quote

Well, i did it step by step as you said:

...
...
title=Gentoo
root (hd0,0)
kernel /boot/bzImage root=/dev/hda1

title=Windoze sucks
root (hd1,0)
chainloader +1

and it does not work...
Any clue?
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Mon Jun 17, 2002 7:18 am    Post subject: Reply with quote

grub howto wrote:
map to_drive from_drive Command
Map the drive from_drive to the drive to_drive. This is necessary when you chain-load some operating systems, such as DOS, if such an OS resides at a non-first drive. Here is an example:

grub> map (hd0) (hd1)
grub> map (hd1) (hd0)

The example exchanges the order between the first hard disk and the second hard disk. See also DOS/Windows.

grub howto wrote:
DOS/Windows
GRUB cannot boot DOS or Windows directly, so you must chain-load them (see Chain-loading). However, their boot loaders have some critical deficiencies, so it may not work to just chain-load them. To overcome the problems, GRUB provides you with two helper functions.

If you have installed DOS (or Windows) on a non-first hard disk, you have to use the disk swapping technique, because that OS cannot boot from any disks but the first one. The workaround used in GRUB is the command map (see map), like this:


grub> map (hd0) (hd1)
grub> map (hd1) (hd0)

This performs a virtual swap between your first and second hard drive.

Caution: This is effective only if DOS (or Windows) uses BIOS to access the swapped disks. If that OS uses a special driver for the disks, this probably won't work.

Another problem arises if you installed more than one set of DOS/Windows onto one disk, because they could be confused if there are more than one primary partitions for DOS/Windows. Certainly you should avoid doing this, but there is a solution if you do want to do so. Use the partition hiding/unhiding technique.

If GRUB hides a DOS (or Windows) partition (see hide), DOS (or Windows) will ignore the partition. If GRUB unhides a DOS (or Windows) partition (see unhide), DOS (or Windows) will detect the partition. Thus, if you have installed DOS (or Windows) on the first and the second partition of the first hard disk, and you want to boot the copy on the first partition, do the following:


grub> unhide (hd0,0)
grub> hide (hd0,1)
grub> rootnoverify (hd0,0)
grub> chainloader +1
grub> makeactive
grub> boot


So the menu for win install in second drive should look like:

title=Gentoo
root (hd0,0)
kernel /boot/bzImage root=/dev/hda1

title=Windoze setup
rootnoverify(hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
# if the windows is already installed
chainloader+1
# if you want to setup win from floppy
# chainloader (fd0)+1
# if you want to setup from CD
# chainloader (cdrom0)+1 # instead of "cdrom0" write the name of your device

Hope I"m right...
_________________
All for one and one for All
--

MACPRO machine...


Last edited by DArtagnan on Mon Jun 17, 2002 8:47 am; edited 1 time in total
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Mon Jun 17, 2002 8:44 am    Post subject: Reply with quote

Hmmm, this subject was already discussed here:

https://forums.gentoo.org/viewtopic.php?t=4774
and
https://forums.gentoo.org/viewtopic.php?t=4821

Sorry for duplicates
_________________
All for one and one for All
--

MACPRO machine...
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