Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Is my hard drive sick?
Date: Thu, 22 Nov 2007 19:45:29
Message-Id: 200711221817.15854.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Is my hard drive sick? by brullo nulla
1 On Thursday 22 November 2007, brullo nulla wrote:
2 > > > But I was thinking: if my old drive is 200 Gb and my new drive is 320
3 > > > Gb, what happens to the partition table? That is, the old partition
4 > > > table will refer to a 200 Gb disk, on a 320 Gb disk. What happens to
5 > > > the 120 Gb left? Are they recognized as an empty partition? Are they
6 > > > left unrecognized?
7 > > >
8 > > > Maybe I should just dd the MBR and then repartition the disk and use cp
9 > > > for the rest.
10 > >
11 > > You'll need to fdisk it with a LiveCD and delete the old small partition,
12 > > then create a new one in its place occupying the rest of the new larger
13 > > disk. *BE VERY CAREFUL* to start the new partition *exactly* where the
14 > > old one starts. Finally, reboot (to read the new partition table) and
15 > > resize the fs to fit the expanded available physical space.
16 >
17 > Hmm. Guess I'll just dd the 512-mb grub bootloader and then proceed by
18 > copying everything in new partitions, all from a livecd.
19
20 It's your call of course, but why don't you just boot from a LiveCD, mount the
21 lot and tar the contents of the suspect disk to the new disk/partitions? The
22 size of the new disk and partitions can be anything you like, as long as they
23 are not smaller than the amount of data you are trying to tar into them.
24 Then you can run grub from the LiveCD to install the grub boot code in the
25 MBR of the new disk. Other than the time it'll take you to partition the new
26 disk (and reboot), tar should run faster than dd (it will not be copying over
27 empty space) and it will be essentially defraging your data onto the new
28 partition. You may find that emerge sync runs faster than it used to.
29
30 The only reason that I would image a drive/partition with dd is if I had some
31 fs corruption and wanted to try offline to fix it.
32
33 Anyway, just my 2c's.
34
35 HTH.
36 --
37 Regards,
38 Mick

Attachments

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

Replies

Subject Author
Re: [gentoo-user] Is my hard drive sick? "b.n." <brullonulla@×××××.com>