免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2120 | 回复: 4
打印 上一主题 下一主题

problem with mount of iso file [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-06-04 14:48 |只看该作者 |倒序浏览
Hi folks,

Here I got a problem when mounting a iso file.

I created the iso file based on a sol 9 cd, with software ultrlIso.  The iso file is able to open and explorered by ultrlIso.

While after I transferred the iso file on to a unix box and mount it, the problem arised.

what I did were as below

lofiadm -a /var/tmp/a.iso
mount -F hsfs -o ro /dev/lofi/1 /cd

While all the contents under /cd became in lower case and length were truncated with 8 charachters.

with option "nomaplcase,ro" to mount hsfs iso, all contents became upper case, but still with maximum of 8 characters.

Can anyone here guide me on how to workaround this limitation?

thanks a lot.

论坛徽章:
0
2 [报告]
发表于 2009-06-04 14:50 |只看该作者
mount -F hsfs /dev/lofi/1 /cdrom

论坛徽章:
0
3 [报告]
发表于 2009-06-04 15:01 |只看该作者
Thanks for the update.

Changing the mount point doesn't make any difference.

node1:/ # mount -F hsfs /dev/lofi/1 /cdrom
node1:/ #cd /cdrom
node1:/cdrom #ls
_volume.inf  copyrigh     solaris_
node1:/cdrom #

论坛徽章:
0
4 [报告]
发表于 2009-06-04 17:15 |只看该作者
学习。

论坛徽章:
0
5 [报告]
发表于 2009-06-05 10:17 |只看该作者
Hi guys,

the problem was resolved.

This is purely related to the bloody software ultriISO.  Once I re-created iso with winISO (as it has an option to create iso from cdrom), all appeared ok.

the only outstanding is that with iso file, lofiadm is not vtoc aware. Thus /s1 is not mounted automatically as vold does.  So I had to manucally extracted slice 1 from the original iso file. below detailed what I did

node1:/sol9 #dd if=solaris9_1.iso of=vtoc bs=512 count=1
1+0 records in
1+0 records out
node1:/sol9 #od -D -j 452 -N 8 < vtoc
0000000 0000000976 0000588160
0000010
node1:/sol9 #echo 976*640 | bc
624640
node1:/sol9 #dd if=solaris9_1.iso of=solaris9_1_s1.iso bs=512 skip=624640 count=588160
588160+0 records in
588160+0 records out
node1:/sol9 #
node1:/sol9 #ls -ltr
total 2973746
-rwxr-xr-x   1 root     root     626540544 Jan 16 23:40 solaris9_1.iso
-rwxr-xr-x   1 root     root     594100224 Jan 16 23:59 solaris9_2.iso
-rw-r--r--   1 root     root         512 Jan 17 00:43 vtoc
-rw-r--r--   1 root     root     301137920 Jan 17 00:46 solaris9_1_s1.iso
node1:/sol9 #lofiadm -a /sol9/solaris9_1_s1.iso
/dev/lofi/1
node1:/sol9 #
node1:/sol9 #mkdir /s1
node1:/sol9 #fstyp /dev/rlofi/1
ufs
node1:/sol9 #
node1:/sol9 #mount /dev/lofi/1 /s1
node1:/sol9 #cd /s1
node1:/s1 #ls
a            cdrom        devices      kernel       mnt          platform     reconfigure  tmp          var
bin          dev          etc          lib          opt          proc         sbin         usr          webstart
node1:/s1 #lofiadm -a /sol9/solaris9_1.iso
/dev/lofi/2
node1:/s1 #mount -F hsfs -o ro /dev/lofi/2 /cd

I know solaris 9 is an antique in nowaday, but from time to time we still need it, do we?


Also to above "风之幻想",  I LIKE the picture in your pfile, the so sweety girl with a feeling of summer, thank you so much to comfort my eyes.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP