我需要在特定的挂载点安装一个外部硬盘,因为它一直在变化驱动器名到驱动器名1和驱动器名2在每个坐骑上都是如此。
所以我跟着本教程并能够成功将其安装到/媒体/外部
这是我的/etc/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/sda1 during installation
UUID=4667afae-8ccf-4223-9048-999c43794959 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=7e6b60a3-e71e-4c41-a81d-ba853dce2ac7 none swap sw 0 0
UUID=F27A48007A47BFD9 /media/external ntfs defaults,nls=utf8,umask=000,uid=1000 0 0
我添加了最后一行以将其安装到/媒体/外部。
但是当我启动或重新启动计算机时,我没有看到登录屏幕。
相反,我得到了这个:
您处于紧急模式。登录后,输入“journalctl -xb”查看系统日志,输入“systemctl reboot”重新启动,输入“systemctl default”或 ^D 尝试再次启动到默认模式”<
当我删除最后一行时/etc/fstab我添加后就得到了登录屏幕。
编辑:是否可以将多个外部驱动器安装到同一个安装点 /media/external?
添加输出lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
loop0 squashfs /snap/gnome-logs/57
loop1 squashfs /snap/core/6673
loop2 squashfs /snap/gnome-3-28-1804/23
loop3 squashfs /snap/gnome-system-monitor/70
loop4 squashfs /snap/gnome-characters/206
loop5 squashfs /snap/postman/81
loop6 squashfs /snap/gnome-calculator/260
loop7 squashfs /snap/gnome-characters/139
loop8 squashfs /snap/gnome-calculator/352
loop9 squashfs /snap/gnome-logs/45
loop10 squashfs /snap/gnome-system-monitor/57
loop11 squashfs /snap/core18/782
loop12 squashfs /snap/gtk-common-themes/818
loop13 squashfs /snap/gtk-common-themes/1198
loop14 squashfs /snap/gnome-3-26-1604/82
loop15 squashfs /snap/gtk-common-themes/1122
loop16 squashfs /snap/core/6405
loop17 squashfs /snap/gnome-3-26-1604/78
loop18 squashfs /snap/gnome-3-26-1604/74
loop19 squashfs /snap/core/6531
sda
├─sda1 ext4 4667afae-8ccf-4223-9048-999c43794959 /
├─sda2
└─sda5 swap 7e6b60a3-e71e-4c41-a81d-ba853dce2ac7 [SWAP]
sdb
└─sdb1 ntfs mydrive F27A48007A47BFD9 /media/user/mydrive2
sr0