下面说一下linux下创建交换分区的方法:

dd if=/dev/zero of=/mnt/sda1/swapfile bs=1024 count=62142

###在/mnt/sda1/下创建一个64M的交换文件

mkswap /mnt/sda1/swapfile

###将这个交换文件用作Swap分区

swapon /mnt/sda1/swapfile

###启用活动分区

相关文章:

  • 2022-12-23
  • 2021-09-23
  • 2021-11-19
  • 2021-12-23
  • 2021-12-26
  • 2021-10-09
  • 2021-12-12
  • 2021-11-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-11-28
相关资源
相似解决方案