losetup: /dev/loop0: failed to set up loop device: No such device or address

问题:在/dev下没有loop0,报错误:
losetup: /dev/loop0: failed to set up loop device: No such device or address
解决:
                                                                
  #apt-get install -f 
找到跟系统对应的文件:linux-image-3.16-2-powerpc64_3.16.3-2_ppc64.deb
                                                 # dpkg -i linux-image-3.16-2-powerpc64_3.16.3-2_ppc64.deb
  
在/boot中查看文件:                              #cd /boot 
 
  
将initrd.img-3.16-2-powerpc64拷贝成initrd.img    #cp initrd.img-3.16-2-powerpc64   initrd.img
将vmlinux-3.16-2-powerpc64拷贝成vmlinux                    #cp vmlinux-3.16-2-powerpc64  vmlinux

重启电脑执行添加模块命令就ok了:                                          #reboot         #modprobe loop

你可能感兴趣的:(losetup: /dev/loop0: failed to set up loop device: No such device or address)