磁盘

磁盘

当我安装 Ubuntu 12.04 时,我不知道如何正确设置分区逻辑驱动器的安装点。所以,我只是随机设置。现在,当我打开主文件夹时,我在左侧窗格中看不到任何逻辑驱动器。我试图更改它们的安装点,但失败了。

我的 fstab 文件 /etc 文件夹的内容是:

# /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>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=691fa0bd-350f-4378-b5c7-82d277dd83c2 /               ext4    errors=remount-ro 0       1
# /srv was on /dev/sda8 during installation
UUID=753d012e-ac3c-42fd-b388-d83115e88d26 /srv            ext4    defaults        0       2
# /tmp was on /dev/sda5 during installation
UUID=34d8c35a-7900-4acd-988d-880792849673 /tmp            ext4    defaults        0       2
# /usr was on /dev/sda6 during installation
UUID=4f7f4287-5feb-4b2b-86bb-93fe74905149 /usr            ext4    defaults        0       2
# /var was on /dev/sda7 during installation
UUID=e2933e36-7906-48ac-b2ac-93500537cd4a /var            ext4    defaults        0       2

我的分区安装在以下 位置: /dev/sda5 is mounted at /tmp;;; /dev/sda6 is mounted at /usr/dev/sda7 is mounted at /var/dev/sda8 is mounted at /srv

如果我尝试更改 fstab 文件的内容,它会说只有 root 可以更改内容。

我如何更改分区的挂载点以便它们显示在主文件夹中?

答案1

磁盘

一个 GUI 解决方案是使用磁盘。从那里,您将能够使用“编辑挂载点”选项编辑辅助驱动器的挂载点 - 只需卸载即可编辑它们磁盘截图

答案2

您可以在 fstab 中的挂载点中更改它,正如您正确尝试的那样。为此,您需要使用 root 权限打开 /etc/fstab。为此,请在终端中输入:

sudo gedit /etc/fstab

互联网上有很多关于此的信息。

相关内容