ubuntu20.04.3服务器版配置交换分区自启后重启不能自启

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
danbingbing
帖子: 1
注册时间: 2023-01-30 9:14
系统: ubuntu20.04.3

ubuntu20.04.3服务器版配置交换分区自启后重启不能自启

#1

帖子 danbingbing » 2023-02-02 14:30

root@localhost:~# swapon --show
root@localhost:~#
root@localhost:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unigue 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 sustem> <mount point> <tupe> <opt ions> <dump> <pass>
/dev/disk/by-uuid/00c0b07a-9b9a-4cda-9afc-bd22d63a7628 none swap sw 0 0
# / was on /dev/sda4 during curtin installation
/dev/disk/by-uuid/96f10172-3c4d-4266-abda-860131f8a74c / ext4 defaults 0 1
# /boot was on /dev/sda2 during curtin installation
/dev/disk/by-uuid/dde34806-963f-43c1-a6e3-2f05cd14e33d /boot ext4 defaults 0 1
root@localhost:~#
root@localhost:~#blkid
/dev/sda2:UUID="dde34806-963f-43c1-a6e3-2f05cd14e33d"TYPE="ext4PARTUUID="2dd0038f-4dd4-4496-98e8
-d48eee58e4a5
/dev/sda3:UUID='o0c0b07a-9b9a-4cda-9afc-bd22d63a7628"TYPE="swap"PARTuUID=7b5d70ba-fbf2-af40-bddd
-abfde74dabe7"
/dev/sda4:UUID="96f10172-3c4d-4266-abda-860131f8a74c"TYPE="ext4"PARTUUID="ada65f37-b4ce-4a97-98f0
-2deffd3b74d9"
/dev/loopo:TYPE="sguashfs"
/dev/100p1: TYPE="squashfs"
/dev/100p2: TYPE="squashfs"
/dev/sda1:PARTUUID="b9f57761-f913-4e6c-acc7-902e5f4b39f9"
root@localhost:~#
头像
astolia
论坛版主
帖子: 6451
注册时间: 2008-09-18 13:11

Re: ubuntu20.04.3服务器版配置交换分区自启后重启不能自启

#2

帖子 astolia » 2023-02-03 10:12

danbingbing 写了: 2023-02-02 14:30 /dev/disk/by-uuid/00c0b07a-9b9a-4cda-9afc-bd22d63a7628 none swap sw 0 0
danbingbing 写了: 2023-02-02 14:30 /dev/sda3:UUID='o0c0b07a-9b9a-4cda-9afc-bd22d63a7628"TYPE="swap"PARTuUID=7b5d70ba-fbf2-af40-bddd-abfde74dabe7"
另外,你怎么不把报错信息贴上来
头像
大宝
帖子: 3050
注册时间: 2008-06-30 22:32
联系:

Re: ubuntu20.04.3服务器版配置交换分区自启后重启不能自启

#3

帖子 大宝 » 2023-02-04 23:17

为了免去UUID错误,我都是挂载 swap 文件,而不是另弄个分区,自打折腾了 zram 之后,几乎用不到 swap 了
回复