Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Orange PI resize SD-card root partition on Debian
12-01-2015, 07:18 AM,
#1
Orange PI resize SD-card root partition on Debian
Log in, as root
Code:
disk /dev/mmcblk0
p
You will get output like:
Code:
Disk /dev/mmcblk0: 7948 MB, 7948206080 bytes
4 heads, 16 sectors/track, 242560 cylinders, total 15523840 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: 0x34605ba5

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1           40960      124927       41984   83  Linux
/dev/mmcblk0p2          124928    15523839     7699456   83  Linux
Now:
d - to delete partition
2 - second partition
n - create partition
p - primary partition type
2 - partition number
124928 - Same start as current 2th partition
enter - Default is last block
w - write partition table

Now reboot and have the disk resized.
Code:
reboot
resize2fs /dev/mmcblk0p2
Done
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)