How to mount a hard disk in Linux

Source: Internet
Author: User
Almost all articles on the Internet that are writing mounting hard disks are first mounted and then modified/etc/fstab, and then restarted to check whether the mounting is successful. In fact, this method is quite frustrating. Correct steps: 1) format. Skipped 2) modify/etc/fstab file/dev/xvdc/home/www/ext4defaults00 /etc/fstab and then restart to check whether the mounting is successful. In fact, this method is quite frustrating.

Correct steps:

1) format.
Skipped

2) modify the/etc/fstab file
/Dev/xvdc/home/www/ext4 defaults 0 0
(Disk device path mounting Path File system format dump backup fsck check)
The first three items need to be consistent with the actual environment, and the last three items do not need to be modified.

2) execute the command: mount-
The purpose of this command is to check the content of/etc/fstab. if you find that the mounting project in the configuration file has not been mounted, attach it.
If the hard disk is mounted successfully after executing this command, the hard disk will be mounted successfully the next time you restart the system and you do not need to restart the system to test 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.