Re: Can I Resize A Partition With dd?
From: John-Paul Stewart (jpstewart_at_sympatico.ca)
Date: 08/24/03
- Next message: paroikos: "Re: 3dfx Voodoo3 3k"
- Previous message: Pureheart: "NetScape/Realplayer behaviour..."double dipping""
- In reply to: Hank Kingwood: "Can I Resize A Partition With dd?"
- Next in thread: Grant Edwards: "Re: Can I Resize A Partition With dd?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 24 Aug 2003 15:27:03 -0400
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?
Yes, AFAIK. Does 'df' show the total size of the old filesystem or the
new one?
'dd' copies everything bit by bit (including critical filesystem-level
data structures). When you copied the image back, you also copied back
those filesystem data structures (overwriting the new filesystem you
made with mkfs) from the smaller filesystem. You now have a filesystem
smaller than the partition it resides on.
You either need to use 'cp -a' or 'tar' or some such to copy only the
data (as opposed to the complete image you used) *or* you need to find a
way to resize the ext3 filesystem. 'resize2fs' may work on your ext3
partition. GNU 'parted' may also be able to resize the filesystem.
- Next message: paroikos: "Re: 3dfx Voodoo3 3k"
- Previous message: Pureheart: "NetScape/Realplayer behaviour..."double dipping""
- In reply to: Hank Kingwood: "Can I Resize A Partition With dd?"
- Next in thread: Grant Edwards: "Re: Can I Resize A Partition With dd?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|