[root@localhost ~]# fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes, 83886080 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: 0x000b30a9
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 821247 409600 83 Linux
/dev/sda2 821248 83886079 41532416 8e Linux LVM
Disk /dev/sdb: 2791.7 GB, 2791728742400 bytes, 5452595200 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 /dev/mapper/centos-root: 40.4 GB, 40378564608 bytes, 78864384 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 /dev/mapper/centos-swap: 2147 MB, 2147483648 bytes, 4194304 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
[root@localhost ~]# parted /dev/sdb
GNU Parted 3.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: VMware Virtual disk (scsi)
Disk /dev/sdb: 2792GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
(parted) mklabel gpt
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? yes
(parted) mkpart primary
File system type? [ext2]? ext4
Start? 1
End? 2792GB
(parted)
(parted) print
Model: VMware Virtual disk (scsi)
Disk /dev/sdb: 2792GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 2792GB 2792GB primary
(parted) q
Information: You may need to update /etc/fstab.
[root@localhost ~]# mkfs.ext4 /dev/sdb1
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
170393600 inodes, 681573888 blocks
34078694 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2829058048
20800 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, 512000000, 550731776, 644972544
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
linux用parted命令对大于2T的磁盘分区
原创文章标签 linux硬盘大于2T分区 文章分类 运维

-
Linux 磁盘管理命令 mkswap:建立交换分区 swapon:使用交换空间 swapoff:关闭系统交换分区 sync:写入磁盘 e2label:设置卷标
Linux 磁盘管理命令mkswap:建立交换分区swapon:使用交换空间swapoff:关闭系统交换分区sync:写入磁盘e2label:设置卷标badblocks:检查磁盘
Linux 磁盘管理命令 swapoff:关闭系统交换分区 badblocks:检查磁盘 -
大于2T的磁盘分区
大于2T的磁盘分区
大于2T的磁盘分区 -
Centos 使用 parted 分区解决大于2T的硬盘
# 硬盘 sdb 进行分区parted /dev/sdbGNU Parted 3.1Using /dev/sdb
centos linux 运维 perl 自动挂载 -
java对象里面包含MultipartFile文件对象
在Java中,我们经常需要去实例化一个对象,然后通过一个引用变量去获取这个对象,又或是直接创建一个匿名对象来使用。那么你是否知道,这个对象在内存中会经历些什么呢?1. 三种状态 public class Test { public static void main(String[] args) { Test test = new Test();
java中nextint是什么意思 java获取session中对象的值 引用变量 Java Test