#格式化U盘,成fat32
fdisk -l
#获取U盘设备信息
#Disk /dev/sdc: 16.0 GB, 16025387008 bytes, 31299584 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: 0x456b933f
#Device Boot Start End Blocks Id System
#/dev/sdc1 2048 31299583 15648768 c W95 FAT32 (LBA)
fdisk /dev/sdc
>>m #命令列表
>>p #分区信息
>>d #del分区
>>n #新建分区 >>p #主分区 >>e #逻辑分区
>>l #查看分区信息
>>c #对U盘分区进行fat32格式化
>>w #保存修改
>>q #退出
调整 /home分区大小
#查看挂载在/home的分区,因为/home 是逻辑分区
[root@localhost ~]# df -h |grep home
/dev/mapper/centos-home 100G 33M 100G 1% /home
#查看有没有用户占用/home
[root@

本文详细介绍了在CentOS系统中如何格式化U盘为FAT32,以及调整/home分区大小的过程。包括使用fdisk进行分区管理,通过mkfs命令进行格式化,以及挂载和卸载分区的步骤。内容适用于需要在CentOS环境下操作磁盘分区的用户。
最低0.47元/天 解锁文章
1188

被折叠的 条评论
为什么被折叠?



