Last login: Sun Jul 1 20:03:30 from blu2-mobl.ccr.c
Sun Microsystems Inc. SunOS 5.11 snv_63 October 2007
-bash-3.00$
3.下載Solaris Companion DVD,該DVD包含了Solaris下常用的一些軟件包,可以從下載Solaris 10 Free DVD set的網站上下載。下載完后,將解壓縮的iso image傳輸到Solaris上,傳輸的方式可以通過samba,nfs,ftp等等。下面是samba的配置文件/etc/sfw/smb.conf的內容:
# Samba config file created using SWAT
# Date: 2002/08/30 11:08:09
# Global parameters
[global]
workgroup = PVL
netbios name = SERVER
server string = server
security = SHARE
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
printing = lprng
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[e$]
path = /fs1
read only = No
guest ok = Yes
4.將iso文件中的文件mount到Solaris的lofi虛擬設備上。
創(chuàng)建mount節(jié)點。
bash-3.00# mkdir -p /mnt/iso
創(chuàng)建lofi虛擬設備。
bash-3.00# lofiadm -a /tools/sol-10-u4-companion-ga.iso
/dev/lofi/1
Mount lofi虛擬設備上的文件系統(tǒng)(iso9600格式,hsfs)到文件系統(tǒng)目錄樹上的節(jié)點上。
bash-3.00# mount -o ro -F hsfs /dev/lofi/1 /mnt/iso
成功?;蛘撸?br />
mount -F hsfs -o ro `lofiadm -a `pwd`/filename.iso` /mnt/iso