解决VMware环境下linux虚拟机/dev/sda1设备100%的问题

转自:https://alexanderzeitler.com/articles/resizing-a-vmware-workstation-partition-using-gparted/



If the boot sequence is to fast, you can add this line to your VMs .vmx file:

bios.bootDelay = "2000"

This will delay the boot sequence for 2000 ms and show the options.

If you're running Ubuntu in your VM, it is likely that there might be a swap partition (/dev/sda5 here) between the main partition and the aforementioned created, unallocated new space and your partitions might look like this:

What we want to achieve now, is to merge the 10 GB unallocated space at the end of the list to the /dev/sda1 partition.

First, we'll select /dev/sda2 (NOT /dev/sda5!):

Then, we click "Resize/Move":

Next, we increase the size of /dev/sda2 to use all available space:

Now we select /dev/sda5 and click Resize/Move again:

In this step, we move /dev/sda5 inside /dev/sda2 to right end:

Then again, we select /dev/sda2:

After clicking Resize/Move now we shrink /dev/sda2 to the size of /dev/sda5 by moving the left arrow to the right until it is blocked:

Now we select /dev/sda1 again:

After clicking "Resize/Move" again, we finally can expand /dev/sda1 to the right:

The final step is hitting the "Apply" button, confirm everything, cross fingers and wait for the operations to succeed.

As GParted already tells you in almost every step: Be careful with what you're doing and create a backup before you're trying to modify your partitions!


If the boot sequence is to fast, you can add this line to your VMs .vmx file:

bios.bootDelay = "2000"

This will delay the boot sequence for 2000 ms and show the options.

If you're running Ubuntu in your VM, it is likely that there might be a swap partition (/dev/sda5 here) between the main partition and the aforementioned created, unallocated new space and your partitions might look like this:

What we want to achieve now, is to merge the 10 GB unallocated space at the end of the list to the /dev/sda1 partition.

First, we'll select /dev/sda2 (NOT /dev/sda5!):

Then, we click "Resize/Move":

Next, we increase the size of /dev/sda2 to use all available space:

Now we select /dev/sda5 and click Resize/Move again:

In this step, we move /dev/sda5 inside /dev/sda2 to right end:

Then again, we select /dev/sda2:

After clicking Resize/Move now we shrink /dev/sda2 to the size of /dev/sda5 by moving the left arrow to the right until it is blocked:

Now we select /dev/sda1 again:

After clicking "Resize/Move" again, we finally can expand /dev/sda1 to the right:

The final step is hitting the "Apply" button, confirm everything, cross fingers and wait for the operations to succeed.

As GParted already tells you in almost every step: Be careful with what you're doing and create a backup before you're trying to modify your partitions!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值