|
原帖由 NicTense 于 2009-9-14 22:07 发表
能不能帮我解释一下uuid用来干吗的
我现在用这个命令来看看有哪些盘,但我觉得这个应该不是这个命令本来的用处,那些盘对应的识别码,在哪些情况下需要用到呢
官方文件:
******************************************************************************
*** New command 'uuid' to identify partitions ***
******************************************************************************
Usage:
uuid [DEVICE] [UUID]
If DEVICE is not specified, search for filesystem with UUID in all partitions
and set the partition containing the filesystem as new root (if UUID is
specified), or just list uuid's of all filesystems on all devices (if UUID is
not specified). If DEVICE is specified, return true or false according to
whether or not the DEVICE matches the specified UUID (if UUID is specified),
or just list the uuid of DEVICE (if UUID is not specified).
Example 1:
find --set-root uuid () 7f95820f-5e33-4e6c-8f50-0760bf06d79c
which will find a partition with uuid=7f95820f-5e33-4e6c-8f50-0760bf06d79c
and set the partition as root if found.
Example 2:
uuid ()
which will print the uuid of the current root device. |
|