If you have enough free space in another device (as much as used
space in hdc2) you can:
1- Save an hdc2 image on that other device (dd is your partner here).
2-Delete partition hdc2 and create a new hdc2 using the whole empty space.
3-dd again for putting all your data back in the new hdc2.
Simple + secure = perfect
If you have that empty space, of course.
2005/5/31, Stephen Horgan <horganst at eircom.net>:
> I have a 250GB disk with two partitions: hdc1 (/backup - ext3 - RAID1) is
> 12GB and hdc2 (/data - ext3) is 210GB.
> The problem is there's a gap of ~25GB between the two partitions. I'd like
> to expand /data into this extra space. Parted will not resize hdc2 because
> it's ext3; anyone know how I could increase hdc2 to use the free space
> without loosing any data?
>> Disk geometry for /dev/hdc: 0.000-239372.437 megabytes
> Disk label type: msdos
> Minor Start End Type Filesystem Flags
> 1 0.031 12997.902 primary ext3 raid
> 2 38154.375 239366.931 primary ext3
> Irish Linux Users' Group
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!