sudo gainroot mount /dev/mmcblk1p2 /mnt cp -ax /home/* /mnt mkdir /mnt/opt #there might be a neglectable error here, if the directory exists already cp -ax /opt /mnt/opt nano /usr/lib/genfstab.awk