- 经验
- 18
- 分贝
- 0
- 家园分
- 64
- 在线时间:
- 21 小时
- 最后登录:
- 2022-6-18
- 帖子:
- 12
- 精华:
- 0
- 注册时间:
- 2020-4-17
- UID:
- 1493869
注册:2020-4-17
|
发表于 2022-5-10 15:00:43
|显示全部楼层
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
|
|