Force Xbian resize partition when moving to bigger card

I have encountered this when moving my Xbian installation from 8GB card to 32GB one. The solution is to copy everything and force it to resize to 32GB.

1. dd copy old SD card to new bigger SD card (for example:

dd if=/dev/sdd of=/dev/sde bs=4M

where sdd is your old card and sde is your new SD card.

2. delete swap partition (last partition on new SD card)
use cfdisk, fdisk or any other tool and don’t forget to write the partition

3. edit /etc/default/xbian-initramfs change

FORCEINITRAM=no to FORCEINITRAM=YES

4. save and reboot

5. FS should be resized, so change back FORCEINITRAM=no

6. this is it

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.