vol

语法

vol[fs][-n volumelabel]

vol[fs][-d]

说明

显示文件系统的卷信息。

选项

fs

指定要显示的文件系统的名称。

-n volumelabel

指定卷标的名称。不能使用以下字符:% ^ * + = [ ] | : ; " < > ? /。不允许在卷标中使用空格。

-d

指定空卷标。

用法

如果未指定 fs,则假定为当前文件系统。如果指定了 -n,则将 fs 的卷标设置为 volumelabel 参数。volumelabel 的最大长度为 11 个字符。

示例

显示当前文件系统的卷:

fs0:\> vol
Volume has no label (rw) 
1,457,664 bytes total disk space 
1,149,440 bytes available on disk
512 bytes in each allocation unit
      

更改 fs0 的标签:

shell> vol fs0 –n help_test 
Volume HELP_TEST (rw) 
1,457,664 bytes total disk space 
1,149,440 bytes available on disk 
512 bytes in each allocation unit 
      

删除 fs0 的卷标:

fs0:\> vol fs0 -d 
Volume has no label (rw) 
1,457,664 bytes total disk space 
220,160 bytes available on disk 
512 bytes in each allocation unit