
Russell Coker <russell@coker.com.au> writes:
What's the best way to change the size of a partition? I've got an image for a 2G CF card that I need to change to fit a larger CF card while remaining bootable.
I must be missing something, but this is the obvious answer: If you have a partition table, delete the old partition create it again with the same startpoint and a higher endpoint Run resize2fs extlinux, and I think grub, won't care that it's longer. You might need to make sure it doesn't change partition NUMBER of something in obscure edge cases (like if you had sda1 and sda4 and deleted 4, parted might create it again as sda2). In any case, you could just dd from the small card to the large one, and then stop -- unless you actually need more space, it ought to be just as bootable.