我安装了 12.04,并有一个 5 GB 的交换分区。我想阻止此驱动器出现在设备Nautilus 中的列表。
sanjay@sanjay-pc:~$ sudo fdisk -l
[sudo] password for sanjay:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x6381b89c
Device Boot Start End Blocks Id System
/dev/sda1 * 63 83891429 41945683+ 7 HPFS/NTFS/exFAT
Partition 1 does not start on physical sector boundary.
/dev/sda2 83891491 976771071 446439790+ f W95 Ext'd (LBA)
Partition 2 does not start on physical sector boundary.
/dev/sda5 83891493 167782859 41945683+ 7 HPFS/NTFS/exFAT
Partition 5 does not start on physical sector boundary.
/dev/sda6 167782923 503332514 167774796 7 HPFS/NTFS/exFAT
Partition 6 does not start on physical sector boundary.
/dev/sda7 503332578 587223944 41945683+ 7 HPFS/NTFS/exFAT
Partition 7 does not start on physical sector boundary.
/dev/sda8 587224008 671115374 41945683+ 7 HPFS/NTFS/exFAT
/dev/sda9 671115438 755006804 41945683+ 7 HPFS/NTFS/exFAT
Partition 9 does not start on physical sector boundary.
/dev/sda10 755006868 838898234 41945683+ 7 HPFS/NTFS/exFAT
Partition 10 does not start on physical sector boundary.
/dev/sda11 838898298 922789664 41945683+ 7 HPFS/NTFS/exFAT
Partition 11 does not start on physical sector boundary.
/dev/sda12 922789728 958437899 17824086 83 Linux
/dev/sda13 958439424 968560639 5060608 83 Linux
/dev/sda14 968562688 976771071 4104192 82 Linux swap / Solaris
答案1
将交换分区标记为仅交换,并将其设为主分区(而非逻辑分区)。它的大小必须与 RAM 相同,但不需要创建 5 GB 这么大的空间。我使用的是 2 GB 交换分区,最终最多使用了 556 MB 的空间。