我们通过fdisk给硬盘分区后,有时并不是立刻在系统中可以看到分区结果,此时执行partprobe命令即可。
PARTPROBE(8) GNU Parted Manual PARTPROBE(8)
NAME
partprobe – inform the OS of partition table changes
SYNOPSIS
partprobe [-d] [-s] [devices…]
DESCRIPTION
This manual page documents briefly the partprobe command.
partprobe is a program that informs the operating system kernel of partition table changes, by requesting that the operating system re-read the
partition table.
OPTIONS
This program uses short UNIX style options.
-d Don’t update the kernel.
-s Show a summary of devices and their partitions.
-h Show summary of options.
-v Show version of program.
很强大!
楼主,这个命令好像在AS6.0以上用不了了。
你安装parted RPM包就可以了。系统自带有的。
[root@RH2285 ~]# part
parted partprobe partx
[root@RH2285 ~]# whereis partprobe
partprobe: /sbin/partprobe /usr/share/man/man8/partprobe.8.gz
[root@RH2285 ~]# rpm -qif /sbin/partprobe
Name : parted Relocations: (not relocatable)
Version : 2.1 Vendor: Red Hat, Inc.
Release : 10.el6 Build Date: Tue 17 Aug 2010 04:12:53 AM HKT
Install Date: Thu 16 Feb 2012 05:44:08 AM HKT Build Host: x86-002.build.bos.redhat.com
Group : Applications/System Source RPM: parted-2.1-10.el6.src.rpm
Size : 2265725 License: GPLv3+
Signature : RSA/8, Thu 19 Aug 2010 01:03:16 AM HKT, Key ID 199e2f91fd431d51
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://www.gnu.org/software/parted
Summary : The GNU disk partition manipulation program
Description :
The GNU Parted program allows you to create, destroy, resize, move,
and copy hard disk partitions. Parted can be used for creating space
for new operating systems, reorganizing disk usage, and copying data
to new hard disks.
[root@RH2285 ~]#