UbuntuLinux permanent mount Partition

Source: Internet
Author: User
Generally, the mount command is used to mount a partition, for example, if I want to mount/dev/sda3 to/media/aborn/data, run the following command to sudomount/dev/sda3/media/aborn/data. However, this method does not work well. after the machine is restarted, it needs to be manually remounted. ubuntu mount command Easy to use http://www.linuxidc.com/Linux/2

In general, the mount command is used to mount a partition. If you want to mount/dev/sda3 to/media/aborn/data, run the following command:

Sudo mount/dev/sda3/media/aborn/data

However, this method does not work well because the machine has to be manually remounted after it is restarted.

Ubuntu mount command Easy to use http://www.linuxidc.com/Linux/2012-07/66244.htm

Then, you can permanently mount the partition by modifying the partition file/etc/fstab.

My partition file/etc/fstab is as follows:

Run the following command to obtain the uuid of the/dev/sda3 partition:

Sudo blkid/dev/sda3

The result is as follows:

Then, add the following line in the format of the/etc/fstab file:

UUID = 904C23B64C23964E/media/aborn/data ntfs defaults 0 2

The first column is the UUID, the second column is the Mount directory (this directory must be an empty directory), the third column is the file system type, the fourth column is the parameter, and the Fifth Column 0 indicates no backup, the last column must be 2 or 0 (unless the boot partition is 1)

Finally, the content of/etc/fstab is as follows:

Run the mount-a command to check whether the operation is successful:

Aborn-lisp # mount-

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-04/100488.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.