通信人家园
标题:
大于16T磁盘格式化
[查看完整版帖子]
[打印本页]
时间:
2022-5-10 15:00
作者:
cgw6787
标题:
大于16T磁盘格式化
1、修改磁盘标签(mbr->gpt)
parted /dev/sdb
mklabel gpt
2、修改/etc/mke2fd.conf
#vim /etc/mke2fs.conf
[fs_types]
ext3 = {
features = has_journal
}
ext4 = {
features = has_journal,extent,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize
auto_64-bit_support = 1 #添加这一行
inode_size = 256
}
3、安装e2fsprogs-1.42.8.tar.gz
mkdir /usr/local/e2fs/
cd /usr/local/e2fs/
tar -zxvf e2fsprogs-1.42.8.tar.gz
cd e2fsprogs-1.42.8/
mkdir build/
cd build/
build]#../configure
build]#make && make install
4、格式化分区
#mke2fs -O 64bit,has_journal,extents,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize -i 2048 /dev/sdb
build]#blkid
5、挂载磁盘
cp /etc/fstab /etc/fstab.bak
echo "/dev/sdb /data01 ext4 defaults 0 0" >> /etc/fstab
mount /dev/sdb /data01
6、查看信息
tune2fs -l /dev/sdb
通信人家园 (https://www.txrjy.com/)
Powered by C114