Gentoo Archives: gentoo-user

From: Florian Philipp <lists@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Dual Boot Partitions
Date: Sun, 27 Feb 2011 18:06:03
Message-Id: 4D6A922A.70505@binarywings.net
In Reply to: Re: [gentoo-user] Dual Boot Partitions by "Petri Rosenström"
1 Am 27.02.2011 17:02, schrieb Petri Rosenström:
2 > On Sun, Feb 27, 2011 at 5:01 PM, dhk <dhkuhl@×××××××××.net> wrote:
3 >> I have a new laptop that I need to set up for dual booting. As much as
4 >> I despise Microsoft, I have to use it for certain things. Such as some
5 >> obscure peripherals, like my slide photo scanner, it doesn't support
6 >> Linux and TD Ameritrade's streaming Java tools don't work the same as on
7 >> Linux. Until corporation's smarten up Microsoft will be a problem.
8 >>
9 >> The setup for dual booting seem pretty straight forward. Install
10 >> windows first, then Linux, and modify the boot loader. However, I have
11 >> a couple of question and observations.
12 >>
13 >> First, the observations. I tried to partition my disk with fdisk the
14 >> way I wanted. It had the usual Linux partitions and a partition that I
15 >> was going to use for Window 7. I wanted to make this an LVM2 partition,
16 >> but that didn't work; I guess that was too ambitious. Then I just made
17 >> it an ordinary static HPFS/NTFS partition on /dev/sda5. When installing
18 >> Windows 7 it wouldn't install on that partition. I deleted all the
19 >> partitions and just installed it on the first 50Gigs of the disk.
20 >>
21 >> Second, the questions. The Windows 7 install on the first 50Gigs of the
22 >> disk needed to created two partitions. The first was a very small boot
23 >> partition that I increased to 128Megs, and the second is the rest of
24 >> Windows 7. Now when I boot to the livecd to partition the rest of the
25 >> disk for Gentoo fdisk says "Partition 1 does not end on a cylinder
26 >> boundary." Is this a problem? The other big question is: what do I do
27 > Dunno, it might be that win7 changed the amount of heads/sectors that
28 > could give that notice from fdisk. I would not be to worrified about
29 > it (Installing windows would be more horrifying). If you have a
30 > traditional hd then the worst thing I think might be that reads/writes
31 > would be slower.
32 >
33
34 If I'm not mistaken, this alignment is actually a good thing. It is
35 related to the transition from 512 B blocks to 4 kB and also helps
36 alignments for SSDs. In this regard, Win 7 behaves very clever and
37 really much better than the old and proven Linux tools (unless you know
38 what you are doing and are aware of every issue). IMHO it is a real
39 shame that most Linux tools are still behind in this regard.
40
41 If you think you have an HDD with 4kB blocks, ask and I can provide you
42 with some links on that topic.
43
44 >> about the first partition in the partition table? It is an HPFS/NTFS
45 >> partition and has been toggled bootable. It also has some stuff in it
46 >> that looks like it's important to Windows: a BOOTSECT.BAK file, a Boot
47 >> directory, a System Volume Information directory, and a bootmgr file.
48 >> Now for my Gentoo install, how and where do I make a /boot partition?
49 >> Do I replace the Windows 7 boot partition with /boot? If so, what
50 >> happens to the contents? or Do I make a /boot partition on /dev/sda3
51 >> and toggle the bootable flag there?
52 >
53 > Something like that. You could install gentoo on one partition (I
54 > don't recommend).
55 >
56 > Just make partitions like you would do without windows. When you do
57 > the grub-install script or by hand grub links the boot to the
58 > partition where boot exists. You should not remove or change the
59 > windows partitions or the data windows will probably brake when you
60 > do.
61 >
62
63 AFAIK, grub does not need the bootable flag. Leave it alone. Maybe
64 Windows needs it, maybe it is just for good measure, I don't know.
65
66 Hope this helps,
67 Florian Philipp

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Dual Boot Partitions Mick <michaelkintzios@×××××.com>