Skip to content

Instantly share code, notes, and snippets.

@adaiguoguo adaiguoguo/20T+ mount
Last active Dec 12, 2017

What would you like to do?
how to mount 20T+
# yum install -y parted
# parted /dev/vdd
GNU Parted 3.1
Using /dev/vdd
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
(parted) unit TB
(parted) mkpart primary 0.00TB 21.5TB
Model: Virtio Block Device (virtblk)
Disk /dev/vdd: 21.5TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 0.00TB 21.5TB 21.5TB ext4 primary
(parted) quit
Information: You may need to update /etc/fstab.
# git clone
# cd e2fsprogs/
# mkdir build
# cd build/
# ../configure
# make
# make install
# mke2fs -O64bit,has_journal,extents,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize -i4194304 /dev/vdd1
# fdisk -l
Disk /dev/vdd: 21474.8 GB, 21474836480000 bytes, 41943040000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/vdd1 1 4294967295 2147483647+ ee GPT
# mount /dev/vdd1 /data/****
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.