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).
如果 DEVICE 选项未被指定,将在所有分区中搜索指定的 UUID 号的文件系统,
然后把包含这个文件系统的分区设置为新的根 (如果 uuid 被指定时),或者只列举所
有设备上的文件系统的 uuid 号(如果 uuid 未被指定时)。
如果 DEVICE 选项被指定了,将返回 真 或 假 ,对应于指定的设备是否与指定的 UUID
号相符(如果uuid被指定时),或者仅仅列举指定设备的uuid 号(uuid 未被指定时)。
which will find a partition with uuid=7f95820f-5e33-4e6c-8f50-0760bf06d79c
and set the partition as root if found.
这将查找 uuid 等于 7f95820f-5e33-4e6c-8f50-0760bf06d79c的分区,然后将这个发
现的分区设置为根。
Example 2:
示例 2:
uuid ()
which will print the uuid of the current root device.
这将显示当前根设备的 uuid 号。作者: shb110119 时间: 2009-5-23 10:02
弱弱的问下 “根” 是什么概念?作者: lianjiang 时间: 2009-5-23 10:27
不知楼主的用法是从哪里看到的。
很有创造性。作者: mimami 时间: 2009-5-23 13:07
need test again