已翻译 by Luox

This commit is contained in:
Luoxcat 2014-01-12 16:40:21 +08:00
parent 692439495e
commit 5bc7fa4d4f
2 changed files with 65 additions and 50 deletions

View File

@ -1,50 +0,0 @@
翻译ing Luox
Daily Ubuntu Tips Mount Partitions In Ubuntu From Your Desktop GUI
================================================================================
Not very long ago if you had asked a seasoned Linux user how to mount partitions in Ubuntu, they wouldve told you to use the fstab file in the **/etc/** directory. It seemed like this was the only way to mount partitions in Linux systems, including Ubuntu.
Well, not anymore thanks to [GNOME Disk Utility][1]. With Disks, you can now mount partitions easily from the GUI without ever touching the fstab file from the command line. The fstab file is a Linux file that lists available disks and partitions, and indicates how they are mounted.
The mount command looks in the fstab file and determine how and where these devices should be mounted. Its only accessed by the system administrator or root.
This brief tutorial is going to show you how to easily mount partitions in Ubuntu without touching the fstab file. For new users and those who are just starting out with Ubuntu, they should find this method easy to use when mounting external partitions or drives.
There are some tools that may help you build the fstab file, but few can do it as efficiently as Disks in Ubuntu.
If you open the fstab file in Ubuntu, youll see something like whats below.
#<File System> <Mount Point> <type> <options> <dump> <pass>
/dev/fd0 /media/floppy0 vfat rw,user,noauto 0 0
These line above are just a sample of how partitions are mounted in Ubuntu. Each device gets its own file types and mount points. For those starting out with Ubuntu, this can be intimidating.
For seasoned Linux users, administering the fstab file isnt difficult. If youve done it once, the next should be easy.
So, here you go. To add an entry in the fstab file or mount a partition, go to Unity Dash and open **Disk app**. When it opens, select the drive you wish to mount and format it. After formatting it, select **Option > Edit Mount Options**.
![](http://www.liberiangeek.net/wp-content/uploads/2014/01/mountguiubuntu.png)
Finally, turn off auto mount options and manually specify your mount options. The Disk will automatically inserts these options in the fstab file so the mount command can read and mount the partition.
![](http://www.liberiangeek.net/wp-content/uploads/2014/01/mountguiubuntu1.png)
Save your settings and restart or hit the mount command to mount the partition.
The options above will look like this in the fstab file.
/dev/sdb /media/richard/ExtPartition ntfs-3g rw,auto,user,fmask=0111,dmask=0000 0 0
Yep, thats it! The new partition will be mounted every time you start your machine.
Enjoy!
--------------------------------------------------------------------------------
via: http://www.liberiangeek.net/2014/01/daily-ubuntu-tips-mount-partitions-in-ubuntu-from-your-desktop-gui/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:https://wiki.gnome.org/Design/Apps/Disks

View File

@ -0,0 +1,65 @@
Ubuntu 每日小贴士 - 在Ubuntu下用桌面图形界面挂载分区
================================================================================
如果在不久前你询问过一位经验丰富的 Linux 用户如何在 Ubuntu 下挂载磁盘分区,他们可能会告诉你使用在 **/etc** 目录里的fstab文件。这似乎是 Linux 系统包括 Ubuntu 挂载分区的唯一方式。
呵呵,幸亏有了[GNOME Disk Utility][1],让挂载分区变得更加多样化。使用这个磁盘工具,你就可以在图形界面下轻松的挂载分区,不需要再在命令行下修改 fstab 文件。fstab 文件是一个用来列出可用磁盘和分区的 Linux 文件,同时指示出他们的挂载情况。
mount 命令与 fstab 文件很相似,它决定了设备挂载的方式和位置。这只能通过系统管理员或 root 来修改。
这个简短的教程将会展示给你如何在 Ubuntu 下轻松的挂载分区,在不主动修改 fstab 文件的前提下。对于新手和那些刚开始使用 Ubuntu 的用户,他们会发现这个方法易于挂载额外的分区和设备。
虽然有一些工具也许能帮助你构建 fstab 文件,但是在 Ubuntu 下很少有像这个磁盘工具那么高效的。
如果你在 Ubuntu 下打开了fstab 文件, 你会看到类似下面的内容。
#<File System> <Mount Point> <type> <options> <dump> <pass>
/dev/fd0 /media/floppy0 vfat rw,user,noauto 0 0
上列只是 Ubuntu 分区挂载的一个样例。每一个设备都有它自己的文件类型和挂载点。对于刚接触 Ubuntu 的用户,可能会感到生畏。
对于经验丰富的 Linux 用户来说,管理 fstab 并不困难。如果你已经做个一次了,那么下次会更加的轻松。
所以,接下来动手吧。在 fstab 文件中添加一个条目或挂载一个分区,打开 Unity Dash 搜索**Disk app**并打开。当程序打开后,选择你想要挂载和格式化的驱动器。在格式完后,选择**选项 -> Mount 编辑选项**。
![](http://www.liberiangeek.net/wp-content/uploads/2014/01/mountguiubuntu.png)
最后,关闭自动关在选项并手动指定你的挂载选项。磁盘会自动的将这些选项写入到 fstab 文件中,这样 mount 命令才可以读取挂载的分区。
![](http://www.liberiangeek.net/wp-content/uploads/2014/01/mountguiubuntu1.png)
保存你的设置并重启,或用 mount 命令挂载分区。
上面的选项在 fstab 文件中会像这样显示。
/dev/sdb /media/richard/ExtPartition ntfs-3g rw,auto,user,fmask=0111,dmask=0000 0 0
好了,这些就是今天全部内容!每当你启动你的机子是新分区将会自动挂载上。
Enjoy!
好好享受吧!
--------------------------------------------------------------------------------
via: http://www.liberiangeek.net/2014/01/daily-ubuntu-tips-mount-partitions-in-ubuntu-from-your-desktop-gui/
译者:[Luoxcat](https://github.com/Luoxcat) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:https://wiki.gnome.org/Design/Apps/Disks