免费注册 查看新帖 |

Chinaunix

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

挂载img文件遇到的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-02-17 11:41 |只看该作者 |倒序浏览
2.6.11-1.1369_FC4的系统,我用mount  /home/ssx/initrd-2.6.11-1.1369_FC4.img /opt -o loop
命令挂载initrd-2.6.11-1.1369_FC4.img文件,报错:
ioctl: LOOP_CLR_FD: Device or resource busy
mount: you must specify the filesystem type
我用file /home/ssx/initrd-2.6.11-1.1369_FC4.img命令的结果为:/home/ssx/initrd-2.6.11-1.1369_FC4.img: ASCII cpio archive (SVR4 with no CRC)

请帮忙,谢谢!!

论坛徽章:
0
2 [报告]
发表于 2006-02-17 15:03 |只看该作者
这个initrd-2.6.11-1.1369_FC4.img应该是gzip文件,用file查看一下。解开后再挂下试试。

论坛徽章:
0
3 [报告]
发表于 2006-02-17 15:11 |只看该作者
mount  -t iso9660 /home/ssx/initrd-2.6.11-1.1369_FC4.img /opt

论坛徽章:
0
4 [报告]
发表于 2006-02-17 18:32 |只看该作者
原帖由 egret 于 2006-2-17 15:03 发表
这个initrd-2.6.11-1.1369_FC4.img应该是gzip文件,用file查看一下。解开后再挂下试试。



谢谢回复,不过file文件的输出我已经贴在上面了。

论坛徽章:
0
5 [报告]
发表于 2006-02-17 18:37 |只看该作者
原帖由 lunchan 于 2006-2-17 15:11 发表
mount  -t iso9660 /home/ssx/initrd-2.6.11-1.1369_FC4.img /opt



这个我也试过了,不行。
错误输出为:mount: /home/ssx/initrd-2.6.11-1.1369_FC4.img is not a block device (maybe try `-o loop'?)


mount  -t iso9660 /home/ssx/initrd-2.6.11-1.1369_FC4.img /opt  -o loop同样不行,错误输出为:
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


我用dmesg |tail 输出的结果为:
loop: loaded (max 8 devices)
Unable to identify CD-ROM format.

论坛徽章:
0
6 [报告]
发表于 2006-02-17 18:42 |只看该作者
原帖由 daaxiang 于 2006-2-17 18:32 发表



谢谢回复,不过file文件的输出我已经贴在上面了。

不好意思,没看到。那用cpio -i的命令先解开看看。

论坛徽章:
0
7 [报告]
发表于 2006-02-17 23:20 |只看该作者
gzip -dc initrd-2.6.11-1.1369_FC4.img > /tmp/initrd-2.6.11-1.1369_FC4
mount -o loop  /tmp/initrd-2.6.11-1.1369_FC4 /opt

[ 本帖最后由 chinaux 于 2006-2-17 23:27 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2006-02-18 17:07 |只看该作者
原帖由 egret 于 2006-2-17 18:42 发表

不好意思,没看到。那用cpio -i的命令先解开看看。



这个当然可以,我也早已试过,但还是不明白为什么不能mount.

论坛徽章:
0
9 [报告]
发表于 2006-02-18 17:09 |只看该作者
原帖由 chinaux 于 2006-2-17 23:20 发表
gzip -dc initrd-2.6.11-1.1369_FC4.img > /tmp/initrd-2.6.11-1.1369_FC4
mount -o loop  /tmp/initrd-2.6.11-1.1369_FC4 /opt



这个试过了,结果和我刚开始的命令报同样的错误:
ioctl: LOOP_CLR_FD: Device or resource busy
mount: you must specify the filesystem type

论坛徽章:
0
10 [报告]
发表于 2006-02-18 21:48 |只看该作者
哥们, 你的错误和我一样,
我的帖子 http://bbs.chinaunix.net/viewthr ... &extra=page%3D1

my QQ: 29903775  交流一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP