Gentoo Archives: gentoo-user

From: Dan Farrell <dan@×××××××××.cx>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Is my hard drive sick?
Date: Thu, 22 Nov 2007 18:37:41
Message-Id: 20071122122712.4d9bb641@pascal.spore.ath.cx
In Reply to: Re: [gentoo-user] Is my hard drive sick? by brullo nulla
1 On Thu, 22 Nov 2007 13:14:57 +0100
2 "brullo nulla" <brullonulla@×××××.com> wrote:
3
4 > > > But I was thinking: if my old drive is 200 Gb and my new drive is
5 > > > 320 Gb, what happens to the partition table? That is, the old
6 > > > partition table will refer to a 200 Gb disk, on a 320 Gb disk.
7 > > > What happens to the 120 Gb left? Are they recognized as an empty
8 > > > partition? Are they left unrecognized?
9 > > >
10 > > > Maybe I should just dd the MBR and then repartition the disk and
11 > > > use cp for the rest.
12 > >
13 > > You'll need to fdisk it with a LiveCD and delete the old small
14 > > partition, then create a new one in its place occupying the rest of
15 > > the new larger disk. *BE VERY CAREFUL* to start the new partition
16 > > *exactly* where the old one starts. Finally, reboot (to read the
17 > > new partition table) and resize the fs to fit the expanded
18 > > available physical space.
19 >
20 > Hmm. Guess I'll just dd the 512-mb grub bootloader and then proceed by
21 > copying everything in new partitions, all from a livecd.
22
23 512 _bytes_, not MB! and that includes the (first) partition table and
24 boot signature. So really, you only want to copy 446 bytes.
25
26 http://www.geocities.com/rlcomp_1999/procedures/mbr.html
27
28 > m.
29 --
30 gentoo-user@g.o mailing list