Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHi rabia7,
the main problem is that the altera layout of the image has the linux rootfs located in the middle. The easiest way out of this is to - copy /dev/sdc2 into am image file umount /dev/sdc2 dd if=/dev/sdc2 of=rootfs.img - use fdisk /dev/sdc - delete partition 2 - create new partition 2 behind partition 1 up to the end of the sd card - copy the image back to /dev/sdc2 dd if=rootfs.img of=/dev/sdc2 sync && sync && sleep 1 - resize file system in /dev/sdc2 to full size of partition e2fsck /dev/sdc2 resize2fs /dev/sdc2 This way you loose 4.3 GB but you gain nearly 200 GB. You can, of course use the same trick to move the FAT32 partition to sector 4096 and use the whole rest for Linux. (I copied the commands from some of my scripts. They mostly need to be run as sudo. Maybe I missed some detail, so be careful ;-) good luck Joachim