I am new to Linux and started learning recently. I am using DE0-Nano-SoC / Atlas board.
I have a problem with increase the root partition.
DF command shows
root@socfpga:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 975.9M 188.6M 736.1M 20% /
devtmpfs 246.9M 4.0K 246.9M 0% /dev
tmpfs 503.0M 40.0K 503.0M 0% /var/volatile
tmpfs 503.0M 0 503.0M 0% /media/ram
FDISK command shows
root@socfpga:~# fdisk -l
Disk /dev/mmcblk0: 7744 MB, 7744782336 bytes
4 heads, 16 sectors/track, 236352 cylinders, total 15126528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd68e23ba
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 2121728 3799447 838860 b W95 FAT32
/dev/mmcblk0p2 14336 2111487 1048576 83 Linux
/dev/mmcblk0p3 2048 4095 1024 a2 Unknown
Partition table entries are not in disk order
I want to increase the size of /dev/mmcblk0p2
Tried two methods:
- This partition p2 is between partition p1 ans p3, command resize2fs corrupts working image
- Partition table entry are not in order. fdisk with ‘t’ option to correct this also corrupt the working image. cant go beyond this.
Some one please help.