1,制作iso文件
bash-3.00$ mkisofs freemind.iso freemindx86
2,刻录
bash-3.00$ cdrw -i freemind.iso
3,挂载
bash-3.00$ lofiadm -a `pwd`/freemind.iso
bash-3.00$ mount -F hsfs /dev/lofi/1 /cdrom
refer:http://blog.chinaunix.net/u1/46984/showart_382825.html
Solaris 下 制作ISO, 和虚拟光驱
(一)如何将光盘直接制作成ISO文件
Step 1: Stop vold daemon
# /dev/init.d/volmgt stop
Step 2: 寻找CD or DVD 设备
# ls -l /dev |grep sr
lrwxrwxrwx 1 root root 13 Dec 9 2004 rsr0 ->
rdsk/c0t2d0s2
lrwxrwxrwx 1 root root 12 Dec 9 2004 sr0 ->
dsk/c0t2d0s2
step 3:
insert CD disk
step 4:
# dd if=/dev/dsk/c0t2d0s0 of=/local/mycdfile.iso
(二)如何将一个目录下的数据制成光盘镜像ISO文件
# mkisofs -o xxx.iso -J -R /full-path-data/
建议使用-J -R
选项以同时支持Windows下的长文件名格式(Joliet)和Unix下的长文件名格式(Rock
Ridge).
(三)如何制作虚拟光驱,读取iso中的文件?
Step 1:
# lofiadm -a /home/BB/xxx.iso (请给出绝对路径)
/dev/lofi/1
在系统目录/dev/lofi/中会自动多出一个目录(计数累计)。然后使用mount命令将给目录映射到一个本地目录,比如/mnt
Step 2:
# mount -F hsfs /dev/lofi/1 /mnt
这样,cd to /mnt, 你就可以看到该ISO文件内容了。
(四)如何刻录光盘?
有些Solaris9自带的cdrw工具既支持cd刻录也支持dvd刻录。常见用法:
Solaris下只能从iso文件刻录。也就是所必需将要刻的文件先制作成ISO文件,见(二),然后才能刻到刻录盘里。
有了ISO文件后, 运行下面的程序:
# cdrw -i /full-path/xxx.iso
复制光盘:
# cdrw -c [-m tmpdir] 会提示你换盘的。
抹除CD-RW的内容
# cdrw -b fast
如果没有cdrw,比如solaris 8,自己去sunfreeware 下载 cdrecord
(现在的版本是cdrecord-1.6.1-sol8-sparc-local.gz )
gzip -d cdrecord-1.6.1-sol8-sparc-local.gz
pkgadd -d cdrecord-1.6.1-sol8-sparc-local
如果是SCSI刻录机,可用一下命令显示:
# cdrecord -scanbus
cdrecord 1.9 (i386-pc-solaris2.8) Copyright (C) 1995-2000
1,0,0 100) 'CREATIVE' 'CD5233E ' '1.00' Removable CD-ROM
2,4,0 204) 'PLEXTOR' 'CD-R PX-R820T' '1.05' Removable CD-ROM
如果是IDE 刻录机,用我前面教的方法查找。
设置一个配置文件,
# cat /etc/default/cdrecord
CDR_FIFOSIZE=8m ;8m 缓冲空间
CDR_SPEED=8 ;8倍数
CDR_DEVICE=USCSI:2,4,0 ;cd 硬件地址
从ISO文件刻录到光盘
# cdrecord -v /local/mycdromfile.iso
将一个目录下的文件刻录到光盘
# mkisofs -l -L -r -o /local/mycdromfile2.iso /home/neal
# mkisofs -o xxx.iso -J -R /full-path-data/
# cdrecord -v /local/mycdromfile2.iso
refer:http://www.itpub.net/thread-593198-1-1.html
bash-3.00$ mkisofs freemind.iso freemindx86
2,刻录
bash-3.00$ cdrw -i freemind.iso
3,挂载
bash-3.00$ lofiadm -a `pwd`/freemind.iso
bash-3.00$ mount -F hsfs /dev/lofi/1 /cdrom
refer:http://blog.chinaunix.net/u1/46984/showart_382825.html
Solaris 下 制作ISO, 和虚拟光驱
(一)如何将光盘直接制作成ISO文件
Step 1: Stop vold daemon
# /dev/init.d/volmgt stop
Step 2: 寻找CD or DVD 设备
# ls -l /dev |grep sr
lrwxrwxrwx 1 root root 13 Dec 9 2004 rsr0 ->
rdsk/c0t2d0s2
lrwxrwxrwx 1 root root 12 Dec 9 2004 sr0 ->
dsk/c0t2d0s2
step 3:
insert CD disk
step 4:
# dd if=/dev/dsk/c0t2d0s0 of=/local/mycdfile.iso
(二)如何将一个目录下的数据制成光盘镜像ISO文件
# mkisofs -o xxx.iso -J -R /full-path-data/
建议使用-J -R
选项以同时支持Windows下的长文件名格式(Joliet)和Unix下的长文件名格式(Rock
Ridge).
(三)如何制作虚拟光驱,读取iso中的文件?
Step 1:
# lofiadm -a /home/BB/xxx.iso (请给出绝对路径)
/dev/lofi/1
在系统目录/dev/lofi/中会自动多出一个目录(计数累计)。然后使用mount命令将给目录映射到一个本地目录,比如/mnt
Step 2:
# mount -F hsfs /dev/lofi/1 /mnt
这样,cd to /mnt, 你就可以看到该ISO文件内容了。
(四)如何刻录光盘?
有些Solaris9自带的cdrw工具既支持cd刻录也支持dvd刻录。常见用法:
Solaris下只能从iso文件刻录。也就是所必需将要刻的文件先制作成ISO文件,见(二),然后才能刻到刻录盘里。
有了ISO文件后, 运行下面的程序:
# cdrw -i /full-path/xxx.iso
复制光盘:
# cdrw -c [-m tmpdir] 会提示你换盘的。
抹除CD-RW的内容
# cdrw -b fast
如果没有cdrw,比如solaris 8,自己去sunfreeware 下载 cdrecord
(现在的版本是cdrecord-1.6.1-sol8-sparc-local.gz )
gzip -d cdrecord-1.6.1-sol8-sparc-local.gz
pkgadd -d cdrecord-1.6.1-sol8-sparc-local
如果是SCSI刻录机,可用一下命令显示:
# cdrecord -scanbus
cdrecord 1.9 (i386-pc-solaris2.8) Copyright (C) 1995-2000
1,0,0 100) 'CREATIVE' 'CD5233E ' '1.00' Removable CD-ROM
2,4,0 204) 'PLEXTOR' 'CD-R PX-R820T' '1.05' Removable CD-ROM
如果是IDE 刻录机,用我前面教的方法查找。
设置一个配置文件,
# cat /etc/default/cdrecord
CDR_FIFOSIZE=8m ;8m 缓冲空间
CDR_SPEED=8 ;8倍数
CDR_DEVICE=USCSI:2,4,0 ;cd 硬件地址
从ISO文件刻录到光盘
# cdrecord -v /local/mycdromfile.iso
将一个目录下的文件刻录到光盘
# mkisofs -l -L -r -o /local/mycdromfile2.iso /home/neal
# mkisofs -o xxx.iso -J -R /full-path-data/
# cdrecord -v /local/mycdromfile2.iso
refer:http://www.itpub.net/thread-593198-1-1.html