Tech Support > Operating Systems > Linux / Variants > how to reclaim lost disk space after disk image with dd?
how to reclaim lost disk space after disk image with dd?
Posted by Ronald on February 3rd, 2004


Hi,

I have copied my complete old hard disk to my new (faster/bigger) hard
disk using dd:

dd if=/dev/hda1 of=/dev/hdb1

It's a windows system disk (fat32) and it worked fine. Windows is
starting up again.

Unfortunately after this dd command the new hard disk now has the
exact same size of the old one. (Though when partitioning it with
fdisk it was larger)

Is there a (simple) trick to reclaim this lost disk space?

Thanks, Ronald

Posted by Andreas Janssen on February 3rd, 2004


Hello

Ronald (<ronv2000@excite.com>) wrote:

You didn't copy the disk, only the first partition. And the size of that
partition of course is smaller than the size of the partition you
created on your new disk, which you overwrote.

You should only use dd if the partitions have the same size. Now it is
possible that the partition and the file system on it have the size
from old disk, but according to the partition table, the partition
fills the whole disk. Maybe it is possible to simply grow the file
system and if necessary the partition to the full size with some tool.
I think parted can resize FAT partitions.

best regards
Andreas Janssen

--
Andreas Janssen
andreas.janssen@bigfoot.com
PGP-Key-ID: 0xDC801674
Registered Linux User #267976


Similar Posts