David Goodenough wrote: > Bob Proulx wrote: > > Have you looked at 'resize2fs' the ext2/ext3/ext4 file system resizer? > > Seems like you should be able to loop mount your image, resize it, > > unmount it, then truncate the file to the smaller size. For safety > > always keep a backup! > > It is ext3, the problem is that it is a disk image not a partition > image, and as far as I know you can only mount partition images > as a loop.
I am sure I have used losetup for this purpose in the past. Ah... Here is a reference: http://madduck.net/blog/2006.10.20:loop-mounting-partitions-from-a-disk-image/ Bob
signature.asc
Description: Digital signature