How to automatically mount disk partitions on Ubuntu

Source: Internet
Author: User
Every time you restart Ubuntu, you must double-click the disk icon to mount the disk to the system. The mounting name is also related to the order in which the disk is clicked, this often makes some software unable to find the directory. If you want to automatically mount the disk to the system every time you restart Ubuntu, You need to modify the/etc/fstab file: Use fdisk-l to view information about all disks: configure the disk to be mounted in the/etc/fstab file: #/etc/fstab: staticfile

Every time you restart Ubuntu, you must double-click the disk icon to mount the disk to the system. The mounting name is also related to the order in which the disk is clicked, this often makes some software unable to find the directory.

If you want to automatically mount the disk to the system every time you restart Ubuntu, You need to modify the/etc/fstab file:

Use fdisk-l to view information about all disks:

Configure the disk to be mounted in the/etc/fstab file:

#/Etc/fstab: static file system information.

#

#

Proc/proc defaults 0 0

#/Dev/sda3

UUID = f438ec4d-26d9-43a7-ac6b-52884e980468/ext3 defaults, errors = remount-ro 0 1

#/Dev/sda7

UUID = 24c77464-121e-471e-8316-0870ea15f032 none swap sw 0 0

/Dev/cd0/media/cdrom0 udf, iso9660 user, noauto, exec 0 0

/Dev/sdc5/media/Documents ntfs ults, iocharset = utf8, user, auto, exec, rw 0 0

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.