如何添加另一个硬盘上的另一个 steam 库

如何添加另一个硬盘上的另一个 steam 库

我对 Linux 完全陌生,刚刚安装了 Ubuntu 17.10,我想在我的第三个硬盘上创建一个 steam 库,/dev/sdc2但我该怎么做呢?

这是我输入时得到的结果fdisk -l

Disk /dev/loop0: 83,8 MiB, 87896064 bytes, 171672 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/loop1: 255,7 MiB, 268070912 bytes, 523576 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/loop2: 146 MiB, 153026560 bytes, 298880 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/sda: 298,1 GiB, 320072933376 bytes, 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
Disklabel type: dos
Disk identifier: 0xe9fec952

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048   1026047   1024000   500M  7 HPFS/NTFS/exFAT
/dev/sda2         1026048 108541672 107515625  51,3G 83 Linux
/dev/sda3       108544000 625139711 516595712 246,3G  7 HPFS/NTFS/exFAT


Disk /dev/sdb: 232,9 GiB, 250059350016 bytes, 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
Disklabel type: dos
Disk identifier: 0x00000001

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1  *         2048    718847    716800   350M  7 HPFS/NTFS/exFAT
/dev/sdb2          718848  71679999  70961152  33,9G  7 HPFS/NTFS/exFAT
/dev/sdb3        71682030 488375999 416693970 198,7G  f W95 Ext'd (LBA)
/dev/sdb5        71682093 280026966 208344874  99,4G  7 HPFS/NTFS/exFAT
/dev/sdb6       280029078 488375999 208346922  99,4G  7 HPFS/NTFS/exFAT

Disk /dev/sdc: 931,5 GiB, 1000204886016 bytes, 1953525168 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
Disklabel type: gpt
Disk identifier: 0CD853A2-561B-49FA-9844-55A57869DF17

Device      Start        End    Sectors   Size Type
/dev/sdc1      34     262177     262144   128M Microsoft reserved
/dev/sdc2  264192 1953522995 1953258804 931,4G Microsoft basic data

Partition 1 does not start on physical sector boundary.

答案1

首先找出您要挂载的驱动器的正确 UUID。您可以使用以下命令执行此blkid操作(这需要 sudo 权限才能显示结果):

sudo blkid

这将产生类似这样的输出:

$ sudo blkid
[sudo] password for michael: 
/dev/sda2: UUID="2532c426-5e7d-44f1-a8b4-69df83084b66" TYPE="swap" PARTUUID="4babc94e-02"
/dev/sda3: LABEL="17.10" UUID="e99a2f32-9120-4c77-96da-42a8dde6e794" TYPE="ext4" PTTYPE="dos" PARTUUID="4babc94e-03"
/dev/sdb6: LABEL="Archiv" UUID="01CD98D69CBEDDB0" TYPE="ntfs" PARTUUID="0014fc58-06"
/dev/sdb7: LABEL="Backup" UUID="01CD98D83C78F3D0" TYPE="ntfs" PARTUUID="0014fc58-07"
/dev/sdc3: LABEL="HTTP" UUID="E8FC872CFC86F3DA" TYPE="ntfs" PARTUUID="2892f529-03"
/dev/sdc5: LABEL="DEVEL" UUID="2632B65632B62AA7" TYPE="ntfs" PARTUUID="2892f529-05"
/dev/sdc6: LABEL="games2" UUID="456f4f92-97ab-48c3-ac95-45a54baa709f" TYPE="ext4" PARTUUID="2892f529-06"
/dev/sdd1: LABEL="games1" UUID="79672110-c2c1-4538-926d-80e861613c1e" TYPE="ext4" PARTUUID="6b8a3ad1-01"

您想要的是要挂载的驱动器的 UUID,然后您可以/etc/fstab使用 nano 或其他工具编辑文件并添加如下行(只需使用驱动器的 UUID,如果您的驱动器采用 NTFS 文件系统格式化,则切换为)ext4ntfs

UUID=79672110-c2c1-4538-926d-80e861613c1e /games1         ext4    errors=remount-ro 0       1

下面是我在上面的示例中如何安装备份驱动器的示例:

UUID=01CD98D83C78F3D0                     /backup         ntfs-3g errors=remount-ro 0       1

之后,您需要重新启动以使设置生效。请注意,您可以自己选择挂载点,如果您像上面一样执行此操作,驱动器将挂载到/games1。之后,您现在需要做的就是启动 Steam 并安装游戏,您可以在其中选择要在哪个驱动器/路径上执行安装。另请参阅fstab 文档在这里有关 mount-options 的更多信息。

相关内容