Re: [Hampshire] Partition resizing

Top Page

Reply to this message
Author: Chris Dennis
Date:  
To: hampshire
Subject: Re: [Hampshire] Partition resizing
On 21/07/12 11:29, Leo wrote:
> I've a .img file containing two partitions. I'd like to shrink one
> partition (that is ext4) and so create a smaller .img file to burn to an
> SD card that is smaller than the current .img file. There is sufficient
> space for the reduction. However I can't work out how to shrink it when
> it is offline (it refuses to shrink it while online on a loop device)
> because it doesn't appear as though resize2fs can take a file or an
> offset. Can anyone suggest how I might do this?


I don't know how (or if it is possible) to resize a filing system that's
in a .img file.

What I would do would be to copy the .img onto a spare real hard disk,
and then use resize2fs etc. from there.

cheers

Chris
-- 
Chris Dennis                                  cgdennis@???
Fordingbridge, Hampshire, UK




--
Please post to: Hampshire@???
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------