新磁盘上的交换空间 Xubuntu 20.04

新磁盘上的交换空间 Xubuntu 20.04

在 256GB SSD 上安装 Xubuntu 20.04 时,我忘记手动设置分区。现在,在“磁盘”中检查时,我发现一个 1GB 的新磁盘用作交换。为什么会发生这种情况?我该如何删除它并恢复空间?我已经设置了另一个交换分区。

编辑:这里是一些命令的输出。请记住,我有全盘加密,我设置了一个交换文件并禁用了 1GB 磁盘。

猫/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>
/dev/mapper/vgxubuntu-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda2 during installation
UUID=901a5584-7d29-4b6c-92c8-3894bbc34c5b /boot           ext4    defaults        0       2
# /boot/efi was on /dev/sda1 during installation
UUID=CCFB-71F6  /boot/efi       vfat    umask=0077      0       1
/swapfile swap swap defaults 0 0
c/fstab

sudo fdisk -l

Disk /dev/sda: 238.49 GiB, 256060514304 bytes, 500118192 sectors
Disk model: SAMSUNG SSD PM85
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E126C68F-FDA4-41B2-B15E-F75A9AE91E09

Device       Start       End   Sectors   Size Type
/dev/sda1     2048   1050623   1048576   512M EFI System
/dev/sda2  1050624   2549759   1499136   732M Linux filesystem
/dev/sda3  2549760 500117503 497567744 237.3G Linux filesystem


Disk /dev/mapper/sda3_crypt: 237.25 GiB, 254737907712 bytes, 497534976 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 /dev/mapper/vgxubuntu-root: 236.26 GiB, 253675700224 bytes, 495460352 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 /dev/mapper/vgxubuntu-swap_1: 976 MiB, 1023410176 bytes, 1998848 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

命令 blkid

/dev/mapper/sda3_crypt: UUID="AyFbsG-1JiR-Vp6a-EuYs-ZdhM-yNbf-ay9h0v" TYPE="LVM2_member"
/dev/mapper/vgxubuntu-root: UUID="66476a50-609f-437e-b952-4d3fde5fa540" TYPE="ext4"
/dev/sda1: UUID="CCFB-71F6" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="3813ee18-8094-418b-b6da-87839efd404a"
/dev/sda2: UUID="901a5584-7d29-4b6c-92c8-3894bbc34c5b" TYPE="ext4" PARTUUID="e6a91c90-4d7a-41cd-a720-8b7dabc61382"
/dev/sda3: UUID="eef13d5f-5b90-46c1-8344-e06203822428" TYPE="crypto_LUKS" PARTUUID="bc76f04e-616c-46a8-a6a5-347adc7f98f1"
/dev/mapper/vgxubuntu-swap_1: UUID="1cc36555-97cb-4c40-aebd-807ac3f8b687" TYPE="swap"

相关内容