View previous topic :: View next topic |
Author |
Message |
tba Apprentice
Joined: 01 Jun 2002 Posts: 173
|
Posted: Fri Jun 14, 2002 7:35 pm Post subject: reinstalling gentoo (backuphome dir) |
|
|
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 |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Mon Jun 17, 2002 3:46 am Post subject: |
|
|
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 |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Mon Jun 17, 2002 5:37 am Post subject: |
|
|
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 |
|
|
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
Posted: Mon Jun 17, 2002 5:37 am Post subject: |
|
|
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 |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Mon Jun 17, 2002 6:19 am Post subject: |
|
|
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 |
|
|
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
Posted: Mon Jun 17, 2002 6:24 am Post subject: |
|
|
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 |
|
|
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
Posted: Mon Jun 17, 2002 7:18 am Post subject: |
|
|
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 |
|
|
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
|
Back to top |
|
|
|