查看Linux root disk,Linux Root Disk Extension

df -hT

Filesystem Type Size Used Avail Use% Mounted on

/dev/sda3 ext4 27G 1.9G 24G 8% /

fdisk -l

Partition 2 does not end on cylinder boundary.

/dev/sda3 392 3916 28308518 83 Linux

/ 挂载分区的扇数 392 3916

卸载目录

umount /

fuser -m -v /

fuser -m -v -k /

umount /

重新分区

fdisk /dev/sda

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to

switch off the mode (command 'c') and change display units to

sectors (command 'u').

Command (m for help): d

Partition number (1-4): 3

Command (m for help): n

Command action

e extended

p primary partition (1-4)

p

Partition number (1-4): 3

First cylinder (392-5221, default 392):

Using default value 392

Last cylinder, +cylinders or +size{K,M,G} (392-5221, default 5221):

Using default value 5221

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.

The kernel still uses the old table. The new table will be used at

the next reboot or after you run partprobe(8) or kpartx(8)

Syncing disks.

fdisk -l

Partition 2 does not end on cylinder boundary.

/dev/sda3 392 5221 38790930+ 83 Linux

reboot

resize2fs /dev/sda3

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值