Centos disk mounting

Source: Internet
Author: User
1. query unmounted hard disk fdisk-l // first query unmounted hard disk names such as sdb1 2. format mkfs. ext3/dev/xvdb start formatting 3. View mounted df-h4, start mounting & nbsp

1. query unmounted hard disks

Fdisk-l // first query unmounted hard disk names, such as sdb1

2. Format

Mkfs. ext3/dev/xvdb start formatting

3. check the mounting status.

Df-h

4. start mounting

Mount/dev/xvdb/home

5. set auto-start mounting

Vi/etc/fstab settings automatically enable startup

Add by format

/Dev/xvdb/home ext3 defaults 0 0

Format of the location where the hard disk name needs to be mounted

6. detach a mount point

Umount/home/ftp2

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.