1,885
edits
Changes
→Moving to a Larger SD Card
# Since the SD card was copied while the system was in use, the filesystems will be marked as "dirty". Check and clean the filesystems: <code>fsck -f /dev/sda1; fsck -f /dev/sda2</code>
To make the card resize the second partition at the first boottime the new card is booted:
# Mount the second partition: <code>mkdir /mnt/sd-partition-2; mount /dev/sda2 /mnt/sd-p2</code>
# Create the empty file <code>/.autoresize</code>: <code>touch /mnt/sd-p2/.autoresize</code>