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*
/dev/sda/dev/sda1/dev/sda2/dev/sdb
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