Thank you for those links and info, ibka.
If the trouble is just that the image is slightly too large, and given that it will be mostly empty space, it occurred to me it shouldn't be too difficult to shrink it.
I looked at this thread for inspiration:
http://www.salixos.org/forum/viewtopic. ... unt#p17840
but in that case the images are of filesystems, whereas this is a disk image containing two or more partitions each containing a filesystem. So the image as a whole cannot be mounted and shrunk.
I'll root around, but does anyone know off the top of their head how to go about this? Something like isomaster (or whatever console tools it uses)?
EDIT
Just found this, with instructions on how to chroot into the install inside the image file. It doesn't solve the resizing problem (though the part about partition offsets looks as though it has potential) but it looks useful in its own right. Maybe it would even be possible to do an install like that (a lot faster):
http://raspberrypi.stackexchange.com/qu ... g-an-image
In a nutshell,
fdisk -lu Slack.img gives you the start points of the partitions. Multiply by the unit size (probably 512) to convert to bytes, and that's your offset. Then do something like this:
Code: Select all
# mount -o loop,offset=449970176 ./SlackwareArm-14.0-8GB-20121201.img /tmp/slacking/
That webpage refers to Raspbian or whatever, but the principle is the same. I was able to mount the partitions within the ARMed SLack image, but not access them unmounted using losetup.
PS Simply:
sees everything, and will delete or resize swap, but for some reason e2fsckprogs (or whatever it's called) can't successfully manipulate the main partition. I thought it was a bad idea to put swap on an SD card, but anyway ...