Gentoo Archives: gentoo-amd64

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-amd64@l.g.o
Subject: [gentoo-amd64] Gentoo on my dual-boot laptop
Date: Sun, 31 Jan 2010 00:01:59
Message-Id: 5bdc1c8b1001301537v1c6b8e1bu4fef4421a068016b@mail.gmail.com
1 Hi,
2 VMWare is working so well on my new desktop machine that I'm
3 finally progressing toward getting my laptop to dual boot. Gentoo is
4 completely installed and ready to go but I've not yet installed
5 grub/grub-static.
6
7 What I'd like to understand is what's the best way for me to set up
8 grub-static on this machine so as to be VERY sure I won't stop Windows
9 Vista from dual booting. I want to remove Vista later in favor of
10 possibly XP running in XPWare, but for now I NEED Vista to absolutely
11 work for the next few days until I prove VMWare works on this machine.
12
13 As is typical for these sorts of things the disk partitions look a
14 bit confused bet they make historical sense. The disk shipped with two
15 partitions - sda1 & sda2. sda1 is the Vista installation, and it
16 covered the whole drive except for the last 7GB which is a restore
17 partition that you can run if the main install gets hosed. I shrunk
18 the Vista partition on BOTH the front and back sides to make room for
19 Gentoo. Now I have this:
20
21 sda3 - 100MB primary ext2 partition at start of drive. Empty and can
22 be used for boot.
23 sda1 - Vista
24 sda4 - extended partition residing between sda1 & sda2
25 sda5 - logical - swap
26 sda6 - logical - ext3 - LABEL=myroot - main Gentoo install is done
27 sda7 - FAT32 - empty and can be deleted
28 sda8 - logical - ext2 - empty and can be used for boot
29 sda2 - rescue partition
30
31 Now, I want to go slow at this and try to understand it because the
32 other machine I just built didn't boot Windows after I installed grub
33 and I cannot have that happen this time if at all possible.
34
35 So:
36 1) Is this layout acceptable or should I move anything around before
37 installing grub-static.
38
39 2) Would it be better to use the Primary sda3 or the logical sda8 for
40 the boot partition? Or does it not matter?
41
42 3) When I get around to actually installing grub is it going to go on
43 a partition or in the MBR? I think it should go on the boot partition
44 but I'm unclear how the system then finds grub to execute grub.conf
45 and eventually get to Windows.
46
47 Thanks,
48 Mark
49
50
51 livecd ~ # fdisk /dev/sda
52
53 The number of cylinders for this disk is set to 9729.
54 There is nothing wrong with that, but this is larger than 1024,
55 and could in certain setups cause problems with:
56 1) software that runs at boot time (e.g., old versions of LILO)
57 2) booting and partitioning software from other OSs
58 (e.g., DOS FDISK, OS/2 FDISK)
59
60 Command (m for help): p
61
62 Disk /dev/sda: 80.0 GB, 80026361856 bytes
63 255 heads, 63 sectors/track, 9729 cylinders
64 Units = cylinders of 16065 * 512 = 8225280 bytes
65 Disk identifier: 0x6d56ef53
66
67 Device Boot Start End Blocks Id System
68 /dev/sda1 * 14 5112 40957717+ 7 HPFS/NTFS
69 /dev/sda2 8874 9729 6875820 7 HPFS/NTFS
70 /dev/sda3 1 13 104391 83 Linux
71 /dev/sda4 5113 8873 30210232+ 5 Extended
72 /dev/sda5 5113 5367 2048256 82 Linux swap / Solaris
73 /dev/sda6 5368 8548 25551351 83 Linux
74 /dev/sda7 8555 8873 2562336 b W95 FAT32
75 /dev/sda8 8549 8554 48163+ 83 Linux
76
77 Partition table entries are not in disk order
78
79 Command (m for help):