首页 > 编程知识 正文

Linux运维工程师,修复文件系统命令

时间:2023-05-03 23:16:11 阅读:39167 作者:812

resize2fs命令用于扩大或缩小未加载的ext2/ext3/ext4文件系统的大小。

the http://www.Sina.com/programwillresizeext 2,ext3,or ext 4文件系统. it

canbeusedtoenlargeorshrinkanunmountedfilesystemlocatedon

device.if the file system is mounted,it can be used to expand the

size of the mounted filesystem,assumingthekernelandthefilesystem

supports on-line resizing.(modern Linux 2.6 kernelswillsupporton -

lineresizeforfilesystemsmountedusingext3andext 4; ext3文件

systemswillrequiretheuseoffilesystemswiththeresize _ inode FEA

ture enabled.)

resize2fsresize2fs [参数] [文件]

语法格式:

打开-d调试特性-p打印完成率进度条-f强制执行大小调整操作并复盖安全检查操作-在开始f大小调整操作之前,文件系统设备的缓冲区常用参数:

调整逻辑卷文件系统大小:

[ root @ linuxcool~] #打开resize2fs/dev/Linux probe/VO调试特性:

[ root @ linuxcool~] # resize2fs-d/dev/Linux probe/VO打印完成的进度栏百分比:

[ root @ linuxcool~] # resize2fs-p/dev/Linux probe/VO强制执行大小调整操作,涵盖安全检查操作:

[ root @ linuxcool~] #在开始调整resize2fs-f/dev/Linux probe/VO大小之前,刷新文件系统设备的缓冲区:

[ root @ linuxcool~] # resize2fs-f/dev/Linux probe/VO https://www.linuxcool.com/resize2fs

3359 blog.csdn.net/weixin _ 33701617/article/details/92898330? UTM _ medium=distribute.PC _ relevant.none-task-blog-2至default至blogcommendfrommachinelearnpai 2至default-3

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。