View Single Post

   
  #7 (permalink)  
Old 02-20-2008, 05:18 AM
MikeyD
 
Posts: n/a
Default Re: Resizing ext3 root partition

Shannon Lloyd wrote in <4215291d@dnews.tpgi.com.au>:

> 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.


I'd have thought converting to ext2 and back would be an easier way than
doing that. It's just a simple tune2fs isn't it?
Reply With Quote