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虚拟设备上。
创建mount节点。
bash-3.00# mkdir -p /mnt/iso
创建lofi虚拟设备。
bash-3.00# lofiadm -a /tools/sol-10-u4-companion-ga.iso
/dev/lofi/1
Mount lofi虚拟设备上的文件系统(iso9600格式,hsfs)到文件系统目录树上的节点上。
bash-3.00# mount -o ro -F hsfs /dev/lofi/1 /mnt/iso
成功。或者:
mount -F hsfs -o ro `lofiadm -a `pwd`/filename.iso` /mnt/iso