Re: how to resize a compact flash image on disk

2011-10-24 Thread Bob Proulx
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 e

Re: how to resize a compact flash image on disk

2011-10-24 Thread David Goodenough
On Monday 24 Oct 2011, Bob Proulx wrote: > David Goodenough wrote: > > Is there a tool which will taks the disk image and adjust it to a > > smaller size (it is far from full - there is plenty of empty space) > > before copying it to the CF. > > You didn't say what filesystem type you are using so

Re: how to resize a compact flash image on disk

2011-10-24 Thread Bob Proulx
David Goodenough wrote: > Is there a tool which will taks the disk image and adjust it to a > smaller size (it is far from full - there is plenty of empty space) > before copying it to the CF. You didn't say what filesystem type you are using so this is a suggestion in the blind, the best I can d

how to resize a compact flash image on disk

2011-10-24 Thread David Goodenough
I have a debian(sid) system, and on that is a DD image of a CF card which also holds a debian(sid) disk image. I recently bought some new CF cards, but they are slightly smaller than the ones I built the image for, and so DD complains when I copy the image onto them, and then fsck complains when I