Good question. I am not familiar with how ext3, reiserfs, etc works but heres what I know.
Under a Window fat and ntfs, files get degragmented due to the way in which data is placed unto the drive. If the partition were to be resized before it was defraged, data could potentially be lost.
With ext2,3,etc.. for whatever reason defragging is not necessary.
Whether this is a risk or not will be related to the following.
Are you under ext2, ext3, xfs, jfs, reiserfs, etc?
You should be able to go to their sites and find somebody who can help on how safe they are to resize.
Secondly, parted is a very low level and a very small tool. As a rule of thumb of mine, I donot expect very low level applications to handle complex operations. My guess is that that does not exist as of yet.
Finally, I made an assumption on what you mean by the program "parted". I am assuming GNU Parted. If that is the case you can go to their website:
http://www.gnu.org/software/parted/#documentation
There is some interesting information there.
Hopefully this helps some as I donot know the answer myself.
----
Almost forgot
If you have enough space available, you can backup the entire partition image with the following simple command:
Code:
cp /dev/hda1 harddrive.img
This will copy partition 1 on harddrive A and save it in the image file
harddrive.img
after that you can burn it to a cdrom or transfer it on a net to another computer.
Unfotunately, I've only copied from a partition image, I am assuming that copying to a partition image would be like the following
Code:
cp harddrive.img /dev/hda1
But make sure you have all of the partition settings down so you can resize it back and then restore in case anything goes wrong.