Linux automatically mounts the second hard disk partition, and linux mounts the second disk.

Source: Internet
Author: User

Linux automatically mounts the second hard disk partition, and linux mounts the second disk.

Modify the/etc/fstab file. If it is mounted to the/data directory, add

/Dev/sdb1/data ext4 defaults 1 1

The final result is as follows:

#/Etc/fstab # Created by anaconda on Thu Sep 11 04:12:21 2014 # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab (5), findfs (8), mount (8) and/or blkid (8) for more info #/dev/mapper/centos-root/xfs defaults 1 1 UUID = bf755645-8a3b-4222-9278-7747b8e89ce4/boot xfs defaults 1 2/dev/mapper/centos-swap defaults 0 0/ dev/sdb1/data ext4 defaults 1 1

Restart to automatically mount the disk.





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.