该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
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 的。。