Re: migrate to bigger disk
From: Lew Pitcher (Lew.Pitcher_at_td.com)
Date: 07/14/05
- Next message: Unruh: "Re: migrate to bigger disk"
- Previous message: RRB: "Re: migrate to bigger disk"
- In reply to: RRB: "Re: migrate to bigger disk"
- Next in thread: RRB: "Re: migrate to bigger disk"
- Reply: RRB: "Re: migrate to bigger disk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 14 Jul 2005 14:07:23 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
RRB wrote:
> Douglas Mayne wrote:
>
>>> I have a rather simple situation: a dual boot (w2k+mandrake) on a 40G
>>> disk.
>>> I will buy a bigger disk and (after backuping) simply transfer
>>> everything on
>>> the new disk with proportionally bigger partitions, i wish to do it
>>> in the
>>>
>>
>> The "simplest manner possible" could be just to install this larger disk
>> into your system, assuming there is room for it in the case, etc.
>
> ...
>
>>
>> 12. Reward yourself with refreshing beverage.
>
>
> Fantastic post, really. I thank you very much. I saved it among my howto
> files.
>
> Before of your post i was thinking to do:
[snip]
> d) make some dd to copy the partitions and the boot sector:
>
> dd if=/dev/hda1 of=/dev/hdc1 (win partition)
If /dev/hda1 is smaller than /dev/hdc1, then you'll find that your hdc1 Windows
partition is considered to be corrupt by Windows (and likely Linux as well).
> dd if=/dev/hda3 of=/dev/hdc3 (linux partition)
Same goes for the Linux partition.
Remember, dd is copying disk blocks. It cares nothing for the geometry of the
drive (which can be critical, depending on the filesystem) or the mismatch in
sizes between filesystems. For some Linux filesystems, dd won't cause too may
problems, because the filesystem carries a measure of it's size in the
superblock, and you just will find that the new filesystem is no larger than the
original filesystem, even though it resides in a larger partition.
Better to format the new filesystem, and perform a file copy from old to new,
than risk mis-setting filesystem control info with a dd copy.
> dd if=/dev/hda of=/dev/hdc count=1 bs=512 (boot sector)
You've now just clobbered part of your partitioning information. Sorry :-(
FWIW, the MBR is 446 (0x1BE) bytes long, and is followed immediately by the
beginning of the primary partition table. The primary partition table extends
for 64 bytes (4 entries of 16 bytes each), and is immediately followed by a
signature of 0xAA, 0x55 (making up the full 512 bytes). There is an 'extended'
partition table elsewhere on the disk (my references don't tell me where).
[snip]
- --
Lew Pitcher
IT Specialist, Enterprise Data Systems,
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed are my own, not my employers')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFC1qnaagVFX4UWr64RAhMDAKCbsfDCJOzArZSPj7RtVsfzppyl4QCfeizA
+8K8DVqDtA5TBGZGSHMDNBo=
=qOmP
-----END PGP SIGNATURE-----
- Next message: Unruh: "Re: migrate to bigger disk"
- Previous message: RRB: "Re: migrate to bigger disk"
- In reply to: RRB: "Re: migrate to bigger disk"
- Next in thread: RRB: "Re: migrate to bigger disk"
- Reply: RRB: "Re: migrate to bigger disk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|