We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.Check以下 fdisk -l
1.检查数据 fdisk -lu /dev/[disk] (sdb) 确定是否mbr
fdisk -lu /dev/vdb
2.卸载挂载,如果挂载了的话 umount /dev/[设备盘名] (sdb1)
umount /dev/vdb2
3.删除旧分区 fdisk -u /dev/[disk] (sdb)
fdisk -u /dev/vdb
p d p w
4.新建分区 fdisk -u /dev/[disk] (sdb) fdisk -u /dev/vdb
p n p default default default w
5.检查 lsblk /dev/[disk] (sdb)
lsblk /dev/vdb
e2fsck -n /dev/[设备盘名] (sdb1)
e2fsck -n /dev/vdb2
partprobe /dev/[disk] (sdb)
partprobe /dev/vdb
e2fsck -f /dev/[设备盘名] (sdb1)
e2fsck -f /dev/vdb2
resize2fs /dev/[设备盘名] (sdb1)
resize2fs /dev/vdb2
6.Final最终 mount /dev/[设备盘名] /alidata
mount /dev/vdb2 /alidata
df -h
The text was updated successfully, but these errors were encountered:
No branches or pull requests
0.Check以下
fdisk -l
1.检查数据
fdisk -lu /dev/[disk] (sdb)
确定是否mbr
fdisk -lu /dev/vdb
2.卸载挂载,如果挂载了的话
umount /dev/[设备盘名] (sdb1)
umount /dev/vdb2
3.删除旧分区
fdisk -u /dev/[disk] (sdb)
fdisk -u /dev/vdb
p
d
p
w
4.新建分区
fdisk -u /dev/[disk] (sdb)
fdisk -u /dev/vdb
p
n
p
default
default
default
w
5.检查
lsblk /dev/[disk] (sdb)
lsblk /dev/vdb
e2fsck -n /dev/[设备盘名] (sdb1)
e2fsck -n /dev/vdb2
partprobe /dev/[disk] (sdb)
partprobe /dev/vdb
e2fsck -f /dev/[设备盘名] (sdb1)
e2fsck -f /dev/vdb2
resize2fs /dev/[设备盘名] (sdb1)
resize2fs /dev/vdb2
6.Final最终
mount /dev/[设备盘名] /alidata
mount /dev/vdb2 /alidata
df -h
The text was updated successfully, but these errors were encountered: