linux分区设置大小,Linux调整磁盘分区大小
Resize the disk (Linux調整磁盤分區大小)
Resize the partition. Run parted: $ parted
Show the partition list: (parted) print
There should be two partitions; 1 should be a boot partition, about 64MB; the second should be the main partition, about 3.6G
Some Disk Commands of Linux, that you should know:
df -h????????? Display the FileSystem that you mounted
fdisk -l??? Show your disk information that is unmounted or un-parted
Sonictl: Here I didn't see two partitions by print command. but fdisk -l showed me that.
Resize the second partition to use the whole disk: (parted) resizepart 2 32GB
Sonictl: Here you may meet error: "Unrecognized disk label", useselect command to chang the device from "/dev/mmcblk1boot0" to "/dev/mmcble0", then try again.
Close parted: (parted) quit
Reboot to load the updated partition table: $ reboot
Log in as root again, resize the filesystem: $ resize2fs /dev/mmcblk0p2
Now you should have the full capacity of your microSD card available.
總結
以上是生活随笔為你收集整理的linux分区设置大小,Linux调整磁盘分区大小的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Vue项目 开启gzip
- 下一篇: 手机通讯录html模板,手机通讯录导模板