满意答案
egfu6788
2013.08.16
采纳率:47% 等级:12
已帮助:8682人
lofiadm 在Solaris8及以上的系统才支持
请看下面我的机器
SunOS 5.8
login: root
Password:
Last login: Thu May 20 13:54:08 from 10.98.100.159
Sun Microsystems Inc. SunOS 5.8 Generic Patch December 2002
You have new mail.
#
# lofiadm
Block Device File
# man lofiadm
Reformatting page. Please Wait... done
Maintenance Commands lofiadm(1M)
NAME
lofiadm - administer files available as block devices
through lofi
SYNOPSIS
/usr/sbin/lofiadm -a file [ device ]
/usr/sbin/lofiadm -d file | device
/usr/sbin/lofiadm [ file | device ]
DESCRIPTION
lofiadm administers lofi(7D), the loopback file driver.
lofi(7D) allows a file to be associated with a block device.
That file can then be accessed through the block device.
This is useful when the file contains an image of some
filesystem (such as a floppy or CD-ROM image), because the
block device can then be used with the normal system utili-
ties for mounting, checking or repairing filesystems. See
fsck(1M) and mount(1M).
Use lofiadm to add a file as a loopback device, remove such
an association, or print information about the current asso-
ciations.
OPTIONS
The following options are supported:
-a file [device]
Add file as a block device.
If device is not specified, an available device is
picked.
If device is specified, lofiadm attempts to assign it
to file. device must be available or lofiadm will
fail. The ability to specify a device is provided for
use in scripts that wish to re-establish a particular
set of associations.
-d file | device
--More--(16%)
以下就不给你贴了,祝你好运...
00分享举报