另一个新手想知道我在 Fstab 中哪里出了问题

另一个新手想知道我在 Fstab 中哪里出了问题

我仍然不太明白 Fstab 中的最后两个数字...我听说一个是“转储”,而“转储”听起来不像我想要或需要的任何东西,所以我给它赋值为 0...我还读到最后一位数字是某种“diskchk”或类似的东西,如果我在这里输入 0,最糟糕的情况是系统不会检查该磁盘上的错误...但我确信这都是错的...

现在我必须单击 sdb1 和 sdc1 才能挂载它们,我希望所有驱动器都能在启动时顺利挂载...

Here's some code that might provide insight as to where I fumbled...
plex@plex-TZ68K ~ $ sudo fdisk -l
[sudo] password for plex: 

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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: 0x0007f670

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848   256952319   128372736    7  HPFS/NTFS/exFAT
/dev/sda3       256954366   488396799   115721217    5  Extended
/dev/sda5       471803904   488396799     8296448   82  Linux swap / Solaris
/dev/sda6       256954368   471803903   107424768   83  Linux

Partition table entries are not in disk order

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util        fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 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: 0x00000000

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/sdc: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 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: 0x47d9be29

Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048  2930274303  1465136128    7  HPFS/NTFS/exFAT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util   fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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: 0x00000000

Device Boot      Start         End      Blocks   Id  System 
/dev/sdd1               1  3907029167  1953514583+  ee  GPT

plex@plex-TZ68K ~ $ sudo blkid
/dev/sda1: LABEL="System Reserved" UUID="7A1ED0151ECFC7F9" TYPE="ntfs" 
/dev/sda2: UUID="80F833A5F833987C" TYPE="ntfs" 
/dev/sda5: UUID="e881ffcf-37ab-43d1-b1a4-eb00581b7110" TYPE="swap" 
/dev/sda6: UUID="9f820e61-077d-4975-80eb-838c834ed7b1" TYPE="ext4" 
/dev/sdb1: LABEL="SAVED BY GRACE" UUID="516A78EA019DAC70" TYPE="ntfs" 
/dev/sdc1: LABEL="I LOVE YOU !" UUID="543E2FD13E2FAB46" TYPE="ntfs" 
/dev/sdd2: LABEL="KILLUMINATI - ONE" UUID="E46014BE6014997E" TYPE="ntfs"

这就是我的 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/sda6 during installation
UUID=9f820e61-077d-4975-80eb-838c834ed7b1 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=e881ffcf-37ab-43d1-b1a4-eb00581b7110 none            swap    sw              0       0
UUID="E46014BE6014997E" /mnt/external_hdd ntfs-3g defaults 0 0
UUID="543E2FD13E2FAB46" /media/plex/I LOVE YOU ! ntfs-3g defaults 0 0
UUID="516A78EA019DAC70" /media/plex/SAVED BY GRACE ntfs-3g defaults 0 0

非常感谢所有帮助我们这些新皈依者的人……

答案1

[DUMP]用于备份,通常设置为0。

对于 ntfs3g 文件系统,保持<pass>0 不变。

在您的情况下,使用转义序列\040来转义挂载点条目中的空格

UUID="543E2FD13E2FAB46" /media/plex/I\040LOVE\040YOU\040! ntfs-3g defaults 0 0
UUID="516A78EA019DAC70" /media/plex/SAVED\040BY\040GRACE ntfs-3g defaults 0 0

完毕

以下是我的一篇关于此问题的帖子:

在 Ubuntu 启动时挂载 Windows 分区

相关内容