Adjusting partimage backup to new partition size on restore

Other questions, messages

Moderator: feffer

Post Reply
DavidC

Adjusting partimage backup to new partition size on restore

Post by DavidC » Tue Mar 30, 2004 9:38 pm

Is it possible to somehow make the superblock/allocation tables restore a backup into a larger partition than it originally came from? Since the blocks are copied in the same offset order from the start of the partition, restoring into a larger partition doesn't change the apparent capacity of the file system. Any suggestions? Pointers? Thanks in advance.

DW

Which filesystem?

Post by DW » Tue Mar 30, 2004 9:48 pm

That would depend of the filesystem:

ext2resize http://ext2resize.sourceforge.net/
ntfsresize http://linux-ntfs.sourceforge.net/
parted http://www.gnu.org/software/parted/parted.html

...others?

te0006

Adjusting partimage backup to new partition size on restore

Post by te0006 » Wed Oct 06, 2004 12:45 pm

Hello,

I did the following:
- backed up a 6GB partition (5GB used) with a FAT32 filesystem on it using partimage (and a 20GB USB harddisk as the backup medium)
- partitioned a shiny new LARGE harddisk with fdisk, creating, amongst other, a 15 GB partition
- restored the image into the new partition with partimage
- installed & booted WinXP - now the drive was back ok, but still displayed with a size of 6GB
- booted LInux from CD-ROM (using a RH9 installation CD but Knoppix etc. should work as well)
- used GNU parted to "resize" my new partition. Ironical quotes because I "resized" it to just the size and location it already had according to parted's "print" command .
- (Beware this takes a while; around an hour on my 750Mhz notebook, with a looong already-shows-100%-but-no-command-prompt-yet period)
- Back in WinXP, I now have a friendly 15GB drive with 10GB free :-)
- Remarks: 1) This was not a boot partition. 2) No guarantees.

Good luck, TE

Post Reply