我安装了一个新硬盘作为大部分存储空间,并按照一些说明将其添加到机器中。在重新启动之前,使用 一切正常/media/Storage
,但重新启动后它是 /mnt/c2375920-53d5-4d43-b391-7de83d698417,我担心我没有永久安装它或类似的东西。下面的 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/sdb2 during installation
UUID=8a636df8-4aea-4eb8-8e44-9dd5548b4db0 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sdb1 during installation
UUID=ED05-A840 /boot/efi vfat umask=0077 0 1
# swap was on /dev/sdb3 during installation
UUID=472e2d29-aa2c-41ee-ab69-f6a89cc6df26 none swap sw 0 0
/dev/disk/by-uuid/c2375920-53d5-4d43-b391-7de83d698417 /mnt/c2375920-53d5-4d43-b391-7de83d698417 auto nosuid,nodev,nofail,x-gvfs-show 0 0
我使用 /media/Storage 写了一些别名,但由于这个原因,它们不再起作用。感谢您的帮助!
答案1
/media 用于可移动存储,但您可以将其安装在那里。
在您的fstab
安装点设置为您不想安装的位置。在启动时,驱动器将根据fstab
/dev/disk/by-uuid/c2375920-53d5-4d43-b391-7de83d698417
>>> /mnt/c2375920-53d5-4d43-b391-7de83d698417
第一部分是驱动器<file system>
,第二部分是安装位置<mount point>
。您可以将其更改为系统上存在的任何文件夹。
如果文件夹不存在mkdir /media/Storage
, sudo umount /mnt/c2375920-53d5-4d43-b391-7de83d698417
则编辑 fstab
然后执行sudo mount /media/Storage