From: Dieter Ries <clip2@gmx.de>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] Cloning a system drive
Date: Fri, 05 Oct 2007 23:14:11 +0200 [thread overview]
Message-ID: <4706A923.8010805@gmx.de> (raw)
In-Reply-To: <5bdc1c8b0710051358g74f95702rb82a29219d890919@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2922 bytes --]
Put a new harddisk into your system, partition it as you like, and use
tar -cSp --numeric-owner --atime-preserve -f - /mnt/OLD/* | ( cd
mnt/NEW/ && tar -xSpv --atime-preserve -f - )
to copy your linux system/data/whatever. I have done so many times, this
works perfectly, e.g. also to change filesystem.
For the windows thing, dd works quite well, you should create the new
windows partitions about the same size as they are now, or you will
loose space. I am but not sure how your windows reacts, if e.g. the
bigger windows partition is not #11 anymore, afterwards.
Is your C: alone bootable? If yes, I think it should work, but no
guarantees.
hope that helps
cu
Dieter
Mark Knecht schrieb:
> Hi,
> My system drive is making some naughty sounding noises to I'm
> thinking I'd better do something fairly quickly. I'm wondering what
> the best solution for this problem is?
>
> I'm really looking for an almost 1 step fix if possible. If I could
> get a new drive, put it in the box, and then clone to that drive
> directly that would be great.
>
> The system has both Win XP and Gentoo AMD64. The disk layout is
> shown below. I beleive the way I shoehorned XP into this machine was
> to steal the original boot partition as a small C: drive and then the
> buld of Windows is on a larger partition at the end of the drive.
>
> The drive is (I think) only about 1/2 partitioned so there is the
> possibility of creating a new partition to tar something to and then
> transferring that over the network to some other box for safe keeping.
>
> I've never done this before but would like to do something before I
> find myself having to start over from scratch.
>
> Thanks in advance for your inputs.
>
> Cheers,
> Mark
>
> lightning ~ # fdisk -l
>
> Disk /dev/sda: 250.0 GB, 250059350016 bytes
> 255 heads, 63 sectors/track, 30401 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/sda1 * 1 6 48163+ 7 HPFS/NTFS
> /dev/sda2 137 1352 9767520 83 Linux
> /dev/sda3 1353 30401 233336092+ 5 Extended
> /dev/sda5 1353 6216 39070048+ 83 Linux
> /dev/sda6 6217 6703 3911796 83 Linux
> /dev/sda7 6704 8163 11727418+ 83 Linux
> /dev/sda8 8164 9988 14659281 83 Linux
> /dev/sda9 * 9989 10001 104391 83 Linux
> /dev/sda10 10002 10251 2008093+ 82 Linux swap / Solaris
> /dev/sda11 10252 14075 30716248+ 7 HPFS/NTFS
> /dev/sda12 14076 15292 9775521 b W95 FAT32
> lightning ~ #
--
3rd Law of Computing:
Anything that can go wr
fortune: Segmentation violation -- Core dumped
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
next prev parent reply other threads:[~2007-10-05 21:25 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-05 20:58 [gentoo-amd64] Cloning a system drive Mark Knecht
2007-10-05 21:14 ` Dieter Ries [this message]
2007-10-05 22:46 ` Drake Donahue
2007-10-05 23:07 ` Mark Knecht
2007-10-06 1:00 ` Drake Donahue
2007-10-06 12:22 ` Dieter Ries
2007-10-06 1:53 ` [gentoo-amd64] " Duncan
2007-10-06 2:35 ` Richard Freeman
2007-10-06 2:43 ` Mark Knecht
2007-10-06 12:47 ` Duncan
2007-10-06 13:16 ` Mark Knecht
2007-10-07 3:58 ` Drake Donahue
2007-10-07 4:49 ` Peter Davoust
2007-10-07 9:33 ` Duncan
2007-10-07 18:34 ` Brian Litzinger
2007-10-08 9:17 ` Beso
2007-10-08 16:17 ` Brian Litzinger
2007-10-08 16:28 ` Mark Knecht
2007-10-08 16:43 ` Beso
2007-10-08 22:39 ` Peter Davoust
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4706A923.8010805@gmx.de \
--to=clip2@gmx.de \
--cc=gentoo-amd64@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox