13.04 未找到交换分区

13.04 未找到交换分区

我几天前刚安装了 13.04。我没有仔细阅读安装屏幕,显然选择了默认分区方案。

现在,我正在尝试构建 Thunderbird 源,但遇到了这个问题:

19:43.45 /usr/bin/ld: failed to set dynamic section sizes: Memory exhausted
19:43.45 collect2: error: ld returned 1 exit status
19:43.45 make[5]: *** [libxul.so] Error 1
19:43.45 make[4]: *** [libs_tier_platform] Error 2
19:43.45 make[3]: *** [tier_platform] Error 2
19:43.45 make[2]: *** [default] Error 2
19:43.56 make[1]: *** [default] Error 2
19:43.73 make: *** [build] Error 2
19:44.21 923 compiler warnings present.

我的第一个想法是我的交换分区太小,我只有 2GB 内存,而且我相信 Mozilla 代码库相当大。

因此我执行了一个操作fdisk,但令我惊讶的是,没有交换分区:

Command (m for help): p

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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: 0x0009a78a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758   625141759   312320001    5  Extended
/dev/sda5          501760   625141759   312320000   83  Linux

但是当我执行它时,free它显示交换,并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/ubuntu--vg-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=044214de-d052-4e84-90a6-338cf5627474 /boot           ext2    defaults        0       2
/dev/mapper/ubuntu--vg-swap_1 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0

并且/dev/mapper/ubuntu--vg-swap_1符号链接到/dev/dm-1

mount

/dev/mapper/ubuntu--vg-root on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
/dev/sda1 on /boot type ext2 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/home/chris/.Private on /home/chris type ecryptfs (ecryptfs_check_dev_ruid,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs,ecryptfs_sig=99409939c385d92d,ecryptfs_fnek_sig=037f9b93ee4e906e)
gvfsd-fuse on /run/user/chris/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=chris)

发生了什么事?
我有交换空间吗?

相关内容