免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-06-04 14:48 |只看该作者 |倒序浏览
Hi folks,\r\n\r\nHere I got a problem when mounting a iso file.\r\n\r\nI created the iso file based on a sol 9 cd, with software ultrlIso.  The iso file is able to open and explorered by ultrlIso.\r\n\r\nWhile after I transferred the iso file on to a unix box and mount it, the problem arised.\r\n\r\nwhat I did were as below\r\n\r\nlofiadm -a /var/tmp/a.iso\r\nmount -F hsfs -o ro /dev/lofi/1 /cd\r\n\r\nWhile all the contents under /cd became in lower case and length were truncated with 8 charachters.\r\n\r\nwith option \"nomaplcase,ro\" to mount hsfs iso, all contents became upper case, but still with maximum of 8 characters.\r\n\r\nCan anyone here guide me on how to workaround this limitation?\r\n\r\nthanks 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.\r\n\r\nChanging the mount point doesn\'t make any difference.\r\n\r\nnode1:/ # mount -F hsfs /dev/lofi/1 /cdrom\r\nnode1:/ #cd /cdrom\r\nnode1:/cdrom #ls\r\n_volume.inf  copyrigh     solaris_\r\nnode1:/cdrom #

论坛徽章:
0
4 [报告]
发表于 2009-06-05 10:17 |只看该作者
Hi guys,\r\n\r\nthe problem was resolved.\r\n\r\nThis 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.\r\n\r\nthe 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\r\n\r\nnode1:/sol9 #dd if=solaris9_1.iso of=vtoc bs=512 count=1\r\n1+0 records in\r\n1+0 records out\r\nnode1:/sol9 #od -D -j 452 -N 8 < vtoc\r\n0000000 0000000976 0000588160\r\n0000010\r\nnode1:/sol9 #echo 976*640 | bc\r\n624640\r\nnode1:/sol9 #dd if=solaris9_1.iso of=solaris9_1_s1.iso bs=512 skip=624640 count=588160\r\n588160+0 records in\r\n588160+0 records out\r\nnode1:/sol9 #\r\nnode1:/sol9 #ls -ltr\r\ntotal 2973746\r\n-rwxr-xr-x   1 root     root     626540544 Jan 16 23:40 solaris9_1.iso\r\n-rwxr-xr-x   1 root     root     594100224 Jan 16 23:59 solaris9_2.iso\r\n-rw-r--r--   1 root     root         512 Jan 17 00:43 vtoc\r\n-rw-r--r--   1 root     root     301137920 Jan 17 00:46 solaris9_1_s1.iso\r\nnode1:/sol9 #lofiadm -a /sol9/solaris9_1_s1.iso\r\n/dev/lofi/1\r\nnode1:/sol9 #\r\nnode1:/sol9 #mkdir /s1\r\nnode1:/sol9 #fstyp /dev/rlofi/1\r\nufs\r\nnode1:/sol9 #\r\nnode1:/sol9 #mount /dev/lofi/1 /s1\r\nnode1:/sol9 #cd /s1\r\nnode1:/s1 #ls\r\na            cdrom        devices      kernel       mnt          platform     reconfigure  tmp          var\r\nbin          dev          etc          lib          opt          proc         sbin         usr          webstart\r\nnode1:/s1 #lofiadm -a /sol9/solaris9_1.iso\r\n/dev/lofi/2\r\nnode1:/s1 #mount -F hsfs -o ro /dev/lofi/2 /cd\r\n\r\nI know solaris 9 is an antique in nowaday, but from time to time we still need it, do we?\r\n\r\n\r\nAlso 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