红联Linux门户
Linux帮助

SunOS挂接ISO光盘文件试验笔记

发布时间:2007-08-26 00:02:32来源:红联作者:Change
此功能应用于Solaris8以上版本!
挂接:
# pwd
/home/ha2
# ls -l studio_11_solspa.iso
-rw-r--r-- 1 ha2 other 542996480 8月 18日 14:56 studio_11_solspa.iso
# lofiadm -a /home/ha2/studio_11_solspa.iso /dev/lofi/1
# lofiadm /dev/lofi/1
/home/ha2/studio_11_solspa.iso
# lofiadm
Block Device File
/dev/lofi/1 /home/ha2/studio_11_solspa.iso
# mount -F hsfs -o ro /dev/lofi/1 /mnt
# df -k
文件系统 千字节 用了 可用 容量 挂接在
/dev/dsk/c0t0d0s0 8261333 5668020 2510700 70% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 2773048 1184 2771864 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
fd 0 0 0 0% /dev/fd
swap 3342360 570496 2771864 18% /tmp
swap 2771928 64 2771864 1% /var/run
/dev/dsk/c0t0d0s3 8262845 1642898 6537319 21% /home
/dev/lofi/1 530270 530270 0 100% /mnt
# cd /mnt
# ls
Documentation batch_installer kits volstart
LICENSE_README installer release_notes.html
#

卸载:
# umount /mnt
# lofiadm -d /dev/lofi/1
# lofiadm
Block Device File
“------NULL------”
文章评论

共有 0 条评论