全球主机交流论坛
标题:
原来Dedicenter是有SWAP的,不过这个二货的模板配置错了
[打印本页]
作者:
t9913085
时间:
2018-1-5 19:58
标题:
原来Dedicenter是有SWAP的,不过这个二货的模板配置错了
root@root:~# fdisk -l
Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders, total 62914560 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009256d
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 62707327 31352640 83 Linux
/dev/sda2 62707328 62912127 102400 82 Linux swap / Solaris
复制代码
root@root:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/vda1 during installation
/dev/vda1 / ext4 errors=remount-ro 0 1
# swap was on /dev/vda2 during installation
/dev/vda2 none swap sw 0 0
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