全球主机交流论坛

标题: 原来Dedicenter是有SWAP的,不过这个二货的模板配置错了 [打印本页]

作者: t9913085    时间: 2018-1-5 19:58
标题: 原来Dedicenter是有SWAP的,不过这个二货的模板配置错了
  1. root@root:~# fdisk -l

  2. Disk /dev/sda: 32.2 GB, 32212254720 bytes
  3. 255 heads, 63 sectors/track, 3916 cylinders, total 62914560 sectors
  4. Units = sectors of 1 * 512 = 512 bytes
  5. Sector size (logical/physical): 512 bytes / 512 bytes
  6. I/O size (minimum/optimal): 512 bytes / 512 bytes
  7. Disk identifier: 0x0009256d

  8.    Device Boot      Start         End      Blocks   Id  System
  9. /dev/sda1   *        2048    62707327    31352640   83  Linux
  10. /dev/sda2        62707328    62912127      102400   82  Linux swap / Solaris
复制代码


  1. root@root:~# cat /etc/fstab
  2. # /etc/fstab: static file system information.
  3. #
  4. # Use 'blkid' to print the universally unique identifier for a
  5. # device; this may be used with UUID= as a more robust way to name devices
  6. # that works even if disks are added and removed. See fstab(5).
  7. #
  8. # <file system> <mount point>   <type>  <options>       <dump>  <pass>
  9. # / was on /dev/vda1 during installation
  10. /dev/vda1         /               ext4    errors=remount-ro 0       1
  11. # swap was on /dev/vda2 during installation
  12. /dev/vda2         none            swap    sw              0       0
  13. root@root:~#
复制代码

作者: 掩耳盗铃    时间: 2018-1-5 20:05
大佬怎么用,不会啊
作者: gdzh65    时间: 2018-1-5 20:07
本来就有的啊
作者: hdown    时间: 2018-1-5 20:09
都kvm了,自己配呗。直接删了fstab里面的swap配置,然后自己重新配。
https://doub.io/linux-jc7/
作者: hdown    时间: 2018-1-5 20:11
而且,第一个磁盘挂载,分区路径是错的,应该从vda改成sda,如果不修改,开机会卡90秒。改了之后,开机只要10秒。




欢迎光临 全球主机交流论坛 (https://d.168530.xyz/) Powered by Discuz! X3.4