centos6.5 new Add HDD + mount

Source: Internet
Author: User

In the intranet host added a 2T hard disk, the first shutdown power off and then connect the hard drive data cable and power cable!

To view current disk device information:

[email protected] ~]# fdisk-l

Warning:gpt (GUID Partition Table) detected on '/DEV/SDB '! The util Fdisk doesn ' t support GPT. Use GNU Parted.


disk/dev/sdb:160.0 GB, 160041885696 bytes
255 heads, Sectors/track, 19457 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000

Device Boot Start End Blocks Id System
/DEV/SDB1 1 19458 156290903+ ee GPT

disk/dev/sda:2000.4 GB, 2000398934016 bytes
255 heads, Sectors/track, 243201 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/4096 bytes
I/O size (minimum/optimal): 4096 bytes/4096 bytes
Disk identifier:0x00000000


Formatting/DEV/SDA

[Email protected] ~]# MKFS.EXT4/DEV/SDA
MKE2FS 1.41.12 (17-may-2010)
/DEV/SDA is entire device, not just one partition!
Proceed anyway? (y,n) Y
Filesystem label=
OS Type:linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=1 blocks, Stripe width=0 blocks
122101760 inodes, 488378646 blocks
24418932 blocks (5.00%) reserved for the Super user
First Data block=0
Maximum filesystem blocks=4294967296
14905 block Groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848

Writing Inode Tables:done
Creating Journal (32768 blocks): Done
Writing superblocks and filesystem accounting Information:done

This filesystem would be automatically checked every mounts or
Whichever comes first. Use Tune2fs-c or-i to override.

Create a new directory and mount it
[Email protected] ~]# MKDIR/WDC
[Email protected] ~]# MOUNT/DEV/SDA/WDC

[Email protected] ~]# df-h
Filesystem Size used Avail use% mounted on
/DEV/SDB4 50G 8.2G 39G 18%/
Tmpfs 1.9G 0 1.9G 0%/dev/shm
/DEV/SDB2 194M 47M 138M 26%/boot
/DEV/SDB1 799M 264K 799M 1%/boot/efi
/DEV/SDB3 97G 4.1G 88G 5%/data
/DEV/SDA 1.8T 196M 1.7T 1%/WDC



centos6.5 Add new drive + Mount

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.