Orangepi Extended disk space

Source: Internet
Author: User
Orangepi Extended disk space

Bought for a long time, no use, now upgrade found that disk space is not enough: only 4G space Lubuntu

root@orangepi:/home/orangepi# df-h
filesystem      Size  Used avail use% mounted on
/dev/root       3.4G  3.3G     0 100%/
devtmpfs        374M  4.0K  374M   1%/dev
none            4.0K     0  4.0K   0%/sys/fs/cgroup
None            101M  600K  100M   1%/run
none            5.0M     0  5.0M   0%/run/lock
none            502M     0  502M   0%/run/shm
None            100M  4.0K  100M   1%/run/user
overflow        1.0M  4.0K 1020K   1%/tmp
It's the same as the raspberry pie.

It's exactly the same as the raspberry pie. --[Play Raspberry Pie extended SD card remaining space]

root@orangepi:/home/orangepi# cat/sys/block/mmcblk0/mmcblk0p
mmcblk0p1/mmcblk0p2/
root@orangepi:/home/ orangepi# cat/sys/block/mmcblk0/mmcblk0p
mmcblk0p1/mmcblk0p2/
root@orangepi:/home/orangepi# cat/sys/ block/mmcblk0/mmcblk0p 
mmcblk0p1/mmcblk0p2/
root@orangepi:/home/orangepi# cat/sys/block/mmcblk0/ Mmcblk0p2/start
124928
My course of action
root@orangepi:/home/orangepi# fdisk/dev/mmcblk0 Command (M for help): D Partition Number (1-4): 2 Command (M for help) : N Partition Type:p Primary (1 primary, 0 extended, 3 free) e extended Select (default p): P Partition number (1-4, default 2): 2 sector (2048-31116287, default 2048): 124928 last sector, +sectors or +size{k,m,g} (124928-31116

287, default 31116287): Using default value 31116287 Command (M for help): W The partition table has been altered!

Calling IOCTL () to re-read partition table.
Warning:re-reading the partition table failed with error 16:device or resource busy. The kernel still uses the old table.
The new table is used at the next reboot or after you run Partprobe (8) or KPARTX (8) Syncing disks. root@orangepi:/home/orangepi# orangepi@orangepi:~$ sudo resize2fs/dev/mmcblk0p2 [sudo] password for orangepi:resize2f S 1.42.9 (4-feb-2014) filesystem at/dev/mmcblk0p2 is mounted on/; On-line resizing Required old_desc_blocks = 1, new_desC_blocks = 1 The filesystem on/dev/mmcblk0p2 is now 3873920 blocks long. orangepi@orangepi:~$ orangepi@orangepi:~$ df-h filesystem Size Used avail use% mounted on/dev/root 15G 3            3G 11G 24%/devtmpfs 374M 4.0K 374M 1% Dev None 4.0K 0 4.0K 0%/sys/fs/cgroup None 101M 600K 100M 1%/run None 5.0M 0 5.0M 0%/run/lock none 502M 0 502M 0%/RUN/SHM No  Ne 100M 4.0K 100M 1%/run/user overflow 1.0M 4.0K 1020K 1%/tmp orangepi@orangepi:~$

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.