Ubuntu hard disk mounting

Source: Internet
Author: User
Solution: 1. Mount to sudo mkdir-P/mnt/DIR under/mnt to create a directory named dir under/MNT, you can use this directory name as needed. Then run the sudo gedit/etc/fstab command to open the fstab file and add a line in it:/dev/sdax/mnt/DIR ext3 relatime 0 2. Since you understand mounting, it is not difficult to understand this line. Here/dev/sdax is the partition you want to mount and you need to change it to your own. For example, the/dev/sda5/mnt/DIR is the directory path we created earlier. If you mount it to another directory, change it to your own. Then enter the command: sudo Mount-a to make the mounting take effect. Use the CHOWN command and chmod command to set the/mnt/DIR directory permission, and then enter the command: ln-S/mnt/DIR ~ /DIR: Create a soft link to/mnt/DIR to the Dir directory in the main directory. After you open dir in the main directory, you can directly access/mnt/Dir.

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.