ubuntu安装虚拟机win10

本文提供了一种在Ubuntu系统上增加交换空间的方法。通过创建一个空文件并将其配置为交换空间,可以有效地提升系统的内存使用效率。教程还包含了激活新交换空间及验证其是否正确配置的步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

首先扩大swap空间:参考http://askubuntu.com/questions/178712/how-to-increase-swap-space
1,Create empty file:

sudo dd if=/dev/zero of=/media/kylefan/swapfile.img bs=1024 count=1M

kylefan是用户名。
If you want to make 3Gb file then change count value to count=3M. See man dd for more information.

2,Bake swap file:

sudo mkswap /media/kylefan/swapfile.img

3, Bring up on boot:
To make sure that your new swap space is activated while booting up computer you should add it to filesystem configuration file /etc/fstab. Add it to end of file, this is recommended because other filesystems (at least one that contains swap file) must be mounted in read-write mode before we can access any files.

# Add this line to /etc/fstab
/media/kylefan/swapfile.img swap swap sw 0 0

4,Activate:
You can either reboot your computer or activate new swap file by hand with following command:

sudo swapon /media/kylefan/swapfile.img

5,reboot

6,If everything goes well:you should see that more swap space is available for use. You can use following commands to check your new swap and confirm that it is active:

cat /proc/swaps
  Filename                           Type       Size    Used    Priority
  /media/fasthdd/swapfile.img        file       8388604 2724    -1

grep 'Swap' /proc/meminfo
  SwapCached:         4772 kB
  SwapTotal:       8388604 kB
  SwapFree:        8355812 kB

1,https://my.vmware.com/group/vmware/details?downloadGroup=WKST-1250-LX&productId=524#product_downloads下载二进制bundle文件

2,sudo chmod +x VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle

3,sudo ./VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle

4,序列号:FZ5X2-DKYE2-H88TP-3DQZC-YYUG6

5,

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值