Skip to content

Instantly share code, notes, and snippets.

@adaiguoguo
Last active December 12, 2017 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adaiguoguo/962bb6c61399ffef3bfd56632127bb04 to your computer and use it in GitHub Desktop.
Save adaiguoguo/962bb6c61399ffef3bfd56632127bb04 to your computer and use it in GitHub Desktop.
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
(parted)print
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 https://github.com/tytso/e2fsprogs.git
# 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