View Single Post

   
  #6 (permalink)  
Old 02-20-2008, 06:17 AM
Shannon Lloyd
 
Posts: n/a
Default Re: Resizing ext3 root partition

dennisk wrote:
> MikeyD wrote:
>
>
> SystemRescueCd http://www.sysresccd.org/ has all the tools you need to
> resize any partition.
>
> Dennisk
>


Thanks. I discovered this one about half way through using fdisk to
repartition the drive :P
I ended up trying to use parted 1.6.20 from the current Ubuntu live cd,
but even that refused to resize ext3 (so I'm not sure if the one on the
SystemRescueCD would work either - their most recent changelog lists
parted-1.6.11). I thought I had discovered the answer in using partimage
to backup the partition and restore it to a smaller partition, until I
read that partimage won't restore to smaller partitions (is it just
using dd behind the scenes?). In the end I just backed up to an external
drive (usb) using tar -czpf, fdisk'ed the drive, recreated the
filesystems, extracted the tar back onto the (smaller) partition, and
everything seems fine. There's undoubtedly an easier way, but I didn't
find it.
Reply With Quote