On 15 July 2013 10:01, Mark Rogers mark@quarella.co.uk wrote:
As far as I can tell all I need to do is fix the partition table and reduce the size of the swap partition. I did try firing up fdisk and deleting and recreating the partition but it just created it the same size, presumably because fdisk believes the disk is the wrong size.
Turns out I was on the right track...
sda5 is a logical partition living in extended partition sda2. Recreating sda5 just defaulted to the size of sda2, which was still wrong. Deleting sda5 then sda2 (which only contained sda5), then recreating sda2 then sda5, fixed the problem.
The only remaining step, which I initially forgot, was to mkswap /dev/sda5; prior to doing that the partition still "looked like" a swap partition but it's own header information lied about its size, because although I'd deleted and recreated the partition the new one started in the same place on the disk as the old one where the old swap partition data still resided.
Maybe that'll be useful to someone else.
Why one 4GB Sandisk CF card is a different size from another is a different question entirely...
Mark -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450 Registered in England (0456 0902) @ 13 Clarke Rd, Milton Keynes, MK1 1LG