Gentoo Archives: gentoo-user

From: Christoph Eckert <ce@×××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Moving installation to another HD
Date: Thu, 10 Aug 2006 19:41:51
Message-Id: 200608102132.56706.ce@christeck.de
In Reply to: Re: [gentoo-user] Moving installation to another HD by Richard Fish
1 > The one thing you may have to take care of is grub, since I assume
2 > the /boot directory will be moving to the 40G drive as well.
3 >  Assuming the partition containing /boot is /dev/hda1, then the
4 > following should work:
5 >
6 > echo "(hd0) /dev/hda" > device.map
7 > grub --device-map=device.map << EOF
8 > root (hd0,0)
9 > setup (hd0)
10 > quit
11 > EOF
12
13 huh, true, I forgot Grub. I usually chroot to the new boot partition and
14 reinstall grub just based on the old configuration files (though it
15 will only work if the partition scheme hasn't changed).
16
17
18 Best regards
19
20
21 ce
22
23 --
24 gentoo-user@g.o mailing list