工具准备:下载Gparted Live CD,一个分区管理工具(根据安装的32,64位版本选择对应链接)。https://sourceforge.net/projects/gparted/files/gparted-live-stable/0.21.0-1/

注意(VirtualBox官网说明应该使用0.22前的版本,否者会出现irtualbox的虚拟系统中无法进入GParted的图形界面的问题):virtualBox下Centos系统扩展LVM磁盘空间

步骤:

 1.通过win+R,输入cmd,打开windows命令终端。然后打开virtualbox安装目录,找到VBoxManage.exe,拖动到终端里面。输入命令:list hdds,回车。  
virtualBox下Centos系统扩展LVM磁盘空间

可以看到现在安装了两台虚拟机,用Shell这台举例说明,目前的虚拟硬盘大小是20480Mb。文件地址在"D:\Oracle\VirtualBox\Shell.vdi"。

再次拖动VBoxManage.exe到终端里面,输入命令:modifyhd "E:\Centos\Centos.vdi"  --resize 20480  回车。

virtualBox下Centos系统扩展LVM磁盘空间
    这时我们发现虚拟分配空间已达到20G了,但系统并不识别。这就需要我们用到Gparted了。
virtualBox下Centos系统扩展LVM磁盘空间
    分配光驱,选择已下好的虚拟光盘软件,即Gparted。
virtualBox下Centos系统扩展LVM磁盘空间

    确定,启动系统,

virtualBox下Centos系统扩展LVM磁盘空间

     一直回车,语言选择26,模式选0,进入分区管理界面。

virtualBox下Centos系统扩展LVM磁盘空间

    选中/dev/sda3,点击工具栏,调整大小/移动。这里不能对未分配的分区进行分区,格式化,否则不能合并。
virtualBox下Centos系统扩展LVM磁盘空间

调整大小后

virtualBox下Centos系统扩展LVM磁盘空间

    点击Apply,

virtualBox下Centos系统扩展LVM磁盘空间

这是改变后的状态。退出重启。可以删除光驱启动。搞定。

https://superuser.com/questions/917988/gparted-cannot-resize-extended-or-lvm-partition

http://www.bubuko.com/infodetail-1733811.html

https://www.cnblogs.com/wajika/p/6513102.html

http://easior.is-programmer.com/posts/37717.html

http://blog.sina.com.cn/s/blog_7149fc900102wvxh.html

http://blog.csdn.net/timecolor/article/details/48468377

相关文章:

  • 2021-12-01
  • 2021-12-03
  • 2021-10-24
  • 2021-06-12
  • 2021-11-08
  • 2022-12-23
  • 2021-08-06
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2021-06-17
  • 2021-05-15
  • 2021-08-21
相关资源
相似解决方案