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.