Gentoo Archives: gentoo-amd64

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Late in the game Windows dual-boot question
Date: Sun, 30 Apr 2006 15:54:18
Message-Id: 5bdc1c8b0604300851q5e636c2dme55b196cdb846e44@mail.gmail.com
In Reply to: Re: [gentoo-amd64] Late in the game Windows dual-boot question by Christian Limberg
1 On 4/30/06, Christian Limberg <barneyman@×××.de> wrote:
2 > Mark Knecht schrieb:
3 > > Hi,
4 > > My Gentoo AMD64 machine is the only machine in the house with a
5 > > video card capable of running a Windows game my teenage kid got for
6 > > his birthday. I checked Cedega and unfortunately they don't support it
7 > > yet. This has raised the spectre of possibly adding Windows to this
8 > > machine so that he can play the game.
9 > >
10 > > The machine has some disk space but it's at the end of the hard
11 > > drive. I've not done a Windows install after running Gentoo ever. I
12 > > used to add Gentoo to Windows boxes but haven't done it in a long
13 > > time. What are the issues?
14 > >
15 > > I assume that the Windows install would wipe out grub. Would I just
16 > > reinstall grub from a Gentoo install CD to get it back and then modify
17 > > my grub config file to set up the dual boot?
18 >
19 > Hi,
20 > yes, thats the way of doing it. After your Windows is installed, the
21 > Windows boot loader will have replaced your grub - so you have to boot
22 > gentoo boot cd, do a chroot to your linux system and reinstall grub into
23 > your MBR as it is described at Chapter 10 Gentoo Handbook. (Of course
24 > you don't have to reemerge it!).
25 >
26 > > Any grub/Windows issues
27 > > having Windows at the end of the drive sitting in an extended
28 > > partition?
29 > >
30 >
31 > That is still a serious problem - Windows XP SP2 still needs at least a
32 > very small primary partition for its boot loader. The other stuff can be
33 > installed at an extended partition. If you have no prim. partition left,
34 > you have to free at least one of it, otherwise it is not possible to
35 > install or run Windows. I have tried a workaround for this - installing
36 > Windows at a primary partition and then moving it to an extended
37 > partition, but that doesn't work too. So I had to give up my 32MB
38 > boot-partition and moved this partition into an extended partition.
39 > After that the Windows installer grabed this partition for its boot
40 > loader, but Windows itself is now laying at the end of the disk.
41 >
42 > > What other problems am I likely to have, assuming Windows doesn't
43 > > completely wipe the drive and leave me in a world of pain?
44 > >
45 >
46 > Hmm, I don't know any further problems. After your GRUB is back, Windows
47 > won't touch your MBR - and because Windows can't see your Ext/Reiser/XFS
48 > partitions it won't create a Recycle Bin either. ;)
49 >
50 > > Thanks,
51 > > Mark
52 > >
53 >
54 > Regards Christian
55
56 Peter, Nuitari, Jan & Christian,
57 Thanks to all of you for answering. Everyone's info has been helpful.
58
59 After looking at the machine configuration and thinking about your
60 responses here is the plan I'm trying to execute. If anyone sees
61 anything incorrect about this I hope you'll have time to point it out.
62 Thanks in advance.
63
64 1) Current /boot and swap partitions are /dev/sda1 and /dev/sda2. They
65 account for about 1.1GB of disk space at the start of the drive. I
66 would like to use this space for the Windows XP installation, but it
67 will not be large enough to hold the game which requires about 5GB so
68 I'll create another VFAT partition elsewhere to do that. MY reason to
69 use VFAT is that possibly the game could be run from that partition
70 under Cedega if they ever get support for it. /dev/sda3 is / and
71 /dev/sda8 is home. I don't want to touch either of those if possible.
72
73 2) When I built the machine I had 512MB in the machine so a 1GB swap
74 seemed fine. I have since updated to 1GB so the swap seemed a bit
75 small anyway.
76
77 3) I will create two partitions early on the drive:
78
79 c:\ -> approximately 1GB
80 d:\ -> approximately 100MB
81
82 The only reason to create the d:\ partition would be to ensure that
83 the /dev/sda# numbers do not change and thus cause any problems for my
84 existing Linux installation.
85
86 4) I have already created /dev/sda9 and copied everything on
87 /dev/sda1, my boot partition, there. I have not modified that
88 grub.conf file yet. I'm not sure what changes should be made. Here's a
89 typical entry:
90
91 title 2.6.16-gentoo-r2
92 root (hd0,0)
93 kernel (hd0,0)/boot/bzImage-2.6.16-gentoo-r2 root=/dev/sda3
94
95 Since I am not changing the root partition it should remain /dev/sda3.
96 Since grub will eventually go back on (hd0,0) after Windows is
97 installed I assume that doesn't change either. However since the new
98 /boot will be /dev/sda9 I'm thinking that grub.conf should change to
99 point there. I'm guessing this is what it might need to look like:
100
101 title 2.6.16-gentoo-r2
102 root (hd0,0)
103 kernel (hd0,8)/boot/bzImage-2.6.16-gentoo-r2 root=/dev/sda3
104
105 I will change fstab to understand the changes when I'm reinstalling
106 grub, I think. I am really not clear about how to point grub on
107 /dev/sda1 to a /boot/grub directory sitting on /dev/sda9. That part
108 isn't clear to me. Is it (hd0,8) and I do need to change more stuff in
109 the grub config file? Or is it part of the grub installation to tell
110 it where to find the grub config file?
111
112 After Windows is up and running, and then after I have Linux booting
113 again in a dual boot using grub, I will create /dev/sda11 as a VFAT
114 partition and let Windows put the game there as drive e:\.
115
116 Does all that make sense? It doesn't to me which worries me a bit, but
117 hopefully I'll sort it out.
118
119 QUESTION: I am also unclear about marking partitions as 'bootable' in
120 this configuration. Is a partition marked bootable because it has grub
121 on it (my guess) or because it has the kernel residing on it? (Not my
122 guess)
123
124 Again, thanks in advance for any info you can provide on this.
125 Fortunately I have many other machines here to work from while I go
126 through this change over.
127
128 Cheers,
129 Mark
130
131 --
132 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] Late in the game Windows dual-boot question Peter Humphrey <prh@××××××××××.uk>