Wil*_*iam 1 boot mount external-hdd
我使用 Ubuntu 14.04LTS 64 位。每次我在启动时打开笔记本电脑时,都会收到一条消息,提示无法安装 Elements(我的外置硬盘),请按 T 重试 S 跳过,M 手动安装。这只发生在我的外部设备没有插入笔记本电脑的情况下,因为我只使用外部设备来备份导入文件。我的问题是:如何阻止 Ubuntu 在启动时问我“那个”?请注意:我仍然希望将来能够毫无问题地连接我的外置硬盘。谢谢你。
从 /etc/fstab 中删除它(该文件用于固定安装)。
从命令行使用以下任一项:
sudo nano /etc/fstab
sudo gedit /etc/fstab
sudo vim /etc/fstab
Run Code Online (Sandbox Code Playgroud)
并在挂载该磁盘的行前面放一个#。保存并下次重新启动它不会提示它。如果正确,您下次可以删除该行,/etc/fstab因为此处的分区应该是固定分区。
下次插入磁盘电缆时,它会装入/media/并显示包含内容的弹出窗口。
more /etc/fstab
Run Code Online (Sandbox Code Playgroud)
将列出文件。例子:
# /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/sda5 during installation
UUID=06ec14b4-1c86-4b9d-88e0-aad0e6e236bc / ext4 errors=remount-ro 0 1
# /discworld was on /dev/sdb6 during installation
UUID=f35b4bfe-1366-4990-bedb-643626359728 /discworld ext4 defaults 0 2
# /home was on /dev/sdb5 during installation
UUID=4fa0af65-4c30-4ec4-b627-fdd8e69b93f9 /home ext4 defaults 0 2
# swap was on /dev/sda6 during installation
UUID=76aa372f-f358-48d8-b084-c934c2405d1f none swap sw 0 0
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
589 次 |
| 最近记录: |