Hard Disk Mount boot boot

Source: Internet
Author: User

When doing a database backup test, you will encounter a problem with insufficient disk space, you need to add the hard disk and mount it. So take note of the steps, and the next time you encounter the same problem, you won't have to check the information.

1. Using Fdisk for disk partitioning

1) Execute ls/dev/sd* or fdisk-l to find a disk that can be partitioned, in this case the disks that can be partitioned are/DEV/SDB

[Email protected] ~]# ls/dev/sd*


2) Fdisk/dev/sdb, press N, follow the prompts to perform the partitioning step (m is to view Help), in this case all the hard disk space is allocated to/DEV/SDB1

2, hard disk format: Mkfs-t ext3-c/dev/sdb1

3, hard drive mount

1) Create/backup directory

[Email protected] ~]# mkdir-p/backup

2) Execute Mount command

[Email protected] ~]# Mount-o loop/dev/sdb1/backup

4. Boot up

[Email protected] ~]# Vim/etc/fstab

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8C/1F/wKiom1hiauPRjci_AAAqCTMS_6k038.png "title=" Mount.png "alt=" Wkiom1hiauprjci_aaaqctms_6k038.png "/>

This article is from the "three countries Cold jokes" blog, please be sure to keep this source http://myhwj.blog.51cto.com/9763975/1886683

Hard Disk Mount boot boot

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.