Re: Can I Resize A Partition With dd?
From: David (thunderbolt01_at_netscape.net)
Date: Sun, 24 Aug 2003 19:08:44 GMT
Hank Kingwood wrote:
> I modified my /dev/hda3 partition to occupy more physical space with
> fdisk and dd by doing this:
> dd if=/dev/hda3 of=<NFS_path>/hda3.img bs=4096
> fdisk /dev/hda
> I resized /dev/hda3 to be bigger
> mkfs.ext3 /dev/hda3
> dd if=<NFS_path>/hda3.img of=/dev/hda3 bs=4096
> Everything on the system appears to work. My questions is:
> Q1: Would there be any problem with the file system?
I think I would have used "tar" or even "cp -a" to do it since
"dd" includes the empty disk space as well as the files.
-- Confucius: He who play in root, eventually kill tree. Registered with The Linux Counter. http://counter.li.org/ Slackware 9.0 Kernel 2.4.22 i686 (GCC) 3.3 Uptime: 32 min, 1 user, load average: 1.34, 1.20, 1.02