Ubuntu Auto Mount Partition

Source: Internet
Author: User

1. View the individual partitions that have been mounted:

 

2, record the corresponding relationship:

  1. /dev/sda6 ->/media/chris/Document
  2. /dev/sda7 ->/media/chris/BackupAndOthers
  3. /dev/sda5 ->/media/chris/Software

3. Unmount each of the above volumes:

    1. # 卸载前,需要确保没有上述卷中的某个文件打开,否则会出现卸载失败的问题
    2. sudo umount /dev/sda6 /dev/sda7 /dev/sda5
 

4. Create several corresponding directories under the media/[user]/directory:

    1. sudo mkdir Document
    2. sudo mkdir Software
    3. sudo mkdir BackupAndOthers
 

5. Open the/etc/fstab file:

6. Fill in the contents as follows:

  1. # The Document partition
  2. /dev/sda6 /media/chris/Document ntfs defauts 12
  3. /dev/sda7 /media/chris/BackupAndOthers ntfs defauts 12
  4. /dev/sda5 /media/chris/Software ntfs defauts 12

7, finally, the use of the command to test whether the normal mount, if there is an error, please modify, to prevent the system can not enter the boot:

    1. sudo umount -a
From for notes (Wiz)

Ubuntu Auto Mount Partition

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.