How does the Ubuntu system use the command to automatically hang on the hard drive?

Source: Internet
Author: User
Tags mkdir

How does the Ubuntu system use the command to automatically hang on to the hard drive? Set up Ubuntu auto mount NTFS hard drive

1, first in the "/media" folder you want to hang the name of the hard disk, for example, you want to hang in the name is software,document,entertainment (corresponding to the d,e,f disk), then use

"Sudo mkdir/media/software"

"Sudo mkdir/media/document"

"Sudo mkdir/media/entertainment"

2, use the "sudo fdisk-l" command to see the number of disks to be hung, for example, on my Computer sda5, Sda6, sda7 are software, information, entertainment disk

3, using Gedit or vim to open the configuration file, "sudo gedit/etc/fstab",

At the end of the file, add your corresponding name and hardware-driven location, such as "/dev/sda5/media/software NTFS defaults 0 0", where the first is the hard drive partition location, disk number, "/etc/software" The folder corresponds to the drive number of the SDA5. Defaults is the mount parameter, the default is defaults, the following two are disk backup and disk check, the default is 0

4, the use of "sudo mount-a" to test hanging, if hanging in unsuccessful, according to error information check, if successful, you will see the disk has been mounted, the boot will automatically hang in the

Note: Before hanging, eject the manually hung hard drive, otherwise use the "sudo mount-a" command prompts an error.

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.