Ubuntu12.04 automatically mount windows partitions upon startup

Source: Internet
Author: User


In linux, apart from using the disk code (/dev/sd *), you can also directly use the disk label as the disk mount point. Advantage: No matter how the disk code changes, no matter which IDE interface you insert the disk into, because the disk is mounted through the label, which interface the disk is inserted will not be affected!
Disadvantages of www.2cto.com: it is a tragedy to insert two disks with duplicate labels because the system cannot determine which disk partition slot is correct! View the System Disk code: system mount restriction root directory/must be mounted, and be sure to be mounted to other mount points before other mount points. The UUID Command [html] sudo blkid of the disk partition must be viewed for the Created directory www.2cto.com. Note: you can use the windows partition label to obtain its uuid www.2cto.com to modify the automatically mounted configuration file command [html] sudo vim/etc/fstab configuration instructions [html] <fs spec> <fs file> <fs vfstype> <fs mntops> <fs freq> <fs passno> description, take mounting/dev/sda3 as an example (my windows system drive D): <fs spec>: partition location, you can give UUID or LABEL, for example: UUID = 6E9ADAC29ADA85CD or LABEL = software <fs file>: The location of the specific mount point, for example:/home/wzy/<fs vfstype>: disk type, linux partition is usually ext4, windows partition is generally ntfs <fs mntops>: mount parameter, which is generally defaults <fs freq>: disk check. Default Value: 0 <fs passno>: disk check. Default Value: 0, do not check www.2cto.com After configuring the instance. Do not mount www.2cto.com to the root directory of the current user. Otherwise, the mounted partition will overwrite the content of the current partition! After saving the file and restarting the machine, you can see that the partition is automatically mounted! Hey, I hope it will help you!

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.