linux6 重读分区表,重读分区表, 求教~~, 系统是 Cent6.5,

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

fdisk 删除 分区之后, 不能 重读 分区表,

/proc/partitions 这个 文件 还是 以前的 样子 啊, 又 比太想 reboot。。。0.0

[root@jing-PC ~]# 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-5): 5

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: Device or resource busy.

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.

[root@jing-PC ~]# kpartx -af /dev/sda &> /dev/null

[root@jing-PC ~]# partx -a /dev/sda &> /dev/null

[root@jing-PC ~]# cat /proc/partitions

major minor #blocks name

8 0 31457280 sda

8 1 204800 sda1

8 2 10485760 sda2

8 3 1048576 sda3

8 4 1 sda4

8 5 1055581 sda5

[root@jing-PC ~]# 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): p

Disk /dev/sda: 32.2 GB, 32212254720 bytes

255 heads, 63 sectors/track, 3916 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x0000529d

Device Boot Start End Blocks Id System

/dev/sda1 * 1 26 204800 83 Linux

Partition 1 does not end on cylinder boundary.

/dev/sda2 26 1332 10485760 83 Linux

/dev/sda3 1332 1462 1048576 82 Linux swap / Solaris

/dev/sda4 1462 3916 19715110 5 Extended

醉了。。, 这个 怎么 搞, 不想 reboot 的。。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值