ITPub博客

首页 > 数字化转型 > ERP > mount iso文件的时候提示Could not find any loop device

mount iso文件的时候提示Could not find any loop device

原创 ERP 作者:tonykorn97 时间:2008-07-17 00:30:29 0 删除 编辑

问题现象:
[root@tonykorn97 user]# mount -o loop RedHat.Enterprise.Linux.5.Update.1-XiSO.iso /home/user/disc1/
mount: Could not find any loop device. Maybe this kernel does not know
about the loop device? (If so, recompile or `modprobe loop'.)
[root@tonykorn97 user]# modprobe loop
FATAL: Module loop not found.
[root@tonykorn97 user]#

[@more@]

操作系统:
[root@tonykorn97 /]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Kernel r on an m

[root@tonykorn97 /]# uname -a
Linux tonykorn97 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:02 EDT 2007 i686 i686 i386 GNU/Linux
[root@tonykorn97 /]#


查看本机模块:
[root@tonykorn97 media]# lsmod | grep loop

查看其它机器的模块
[root@test /]# lsmod | grep loop
loop 48977 0
[root@test /]#

运行:
[root@tonykorn97 media]# depmod
[root@tonykorn97 media]#
然后重启服务器


重启后继续查看这个模块:
[root@tonykorn97 ~]# modprobe loop

此时发现还是没有,然后从其他机器查看一下:
[root@test ~]# lsmod | grep loop
loop 19017 0

查看这个module信息
[root@test ~]# modinfo loop
filename: /lib/modules/2.6.18-53.el5/kernel/drivers/block/loop.ko
alias: block-major-7-*
license: GPL
srcversion: 82DB6DB3DABF3B945D6394D
depends:
vermagic: 2.6.18-53.el5 SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1
parm: max_loop:Maximum number of loop devices (1-256) (int)
module_sig: 883f35047d39c6ff48355ac6b12d27112d9220a0c432bc835b2dc51ecacf54e2df5da40ecea25f709e23c7192c7e56fdf01a494c6b4c2e9c19b5b373fe

查看属于哪个包:
[root@test ~]# rpm -qf /lib/modules/2.6.18-53.el5/kernel/drivers/block/loop.ko
kernel-2.6.18-53.el5
[root@test ~]#

在本机上查看这个包的信息
[root@tonykorn97 ~]# rpm -ql kernel-2.6.18-53.el5 | grep loop
/lib/modules/2.6.18-53.el5/kernel/drivers/block/cryptoloop.ko
/lib/modules/2.6.18-53.el5/kernel/drivers/block/loop.ko

发现有这个文件,继续运行:
[root@tonykorn97 ~]# modprobe loop
[root@tonykorn97 ~]# lsmod | grep loop
loop 19017 0
[root@tonykorn97 ~]#

此时继续mount就可以了

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/312079/viewspace-1007376/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: quota 笔记
请登录后发表评论 登录
全部评论

注册时间:2007-12-05

  • 博文量
    1854
  • 访问量
    2088310