当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 求助!!! 在Ubuntu下挂载树莓派镜像GG了
帖子发表于 : 2016-09-20 17:31 

注册: 2016-09-20 15:24
帖子: 2
系统: ubuntu 12.04 LTS
送出感谢: 0 次
接收感谢: 0 次
求助!!!
在Ubuntu下挂载树莓派镜像
$sudo mkdir /mnt/rasp-pi-rootfs
$sudo mount -o loop,offset=62914560 2015-05-05-raspbian-wheezy.img /mnt/rasp-pi-rootfs
出现以下错误:
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 求助!!! 在Ubuntu下挂载树莓派镜像GG了
帖子发表于 : 2016-09-20 18:11 
头像

注册: 2011-03-20 13:12
帖子: 4521
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
代码:
$ sudo fdisk -l 2015-05-05-raspbian-wheezy.img
[sudo] password for vicky:
Disk 2015-05-05-raspbian-wheezy.img: 3.1 GiB, 3276800000 bytes, 6400000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa6202af7

Device                          Boot  Start     End Sectors Size Id Type
2015-05-05-raspbian-wheezy.img1        8192  122879  114688  56M  c W95 FAT32 (LBA)
2015-05-05-raspbian-wheezy.img2      122880 6399999 6277120   3G 83 Linux

$ python
Python 2.7.12+ (default, Sep  1 2016, 20:27:38)
[GCC 6.2.0 20160822] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 122880*512
62914560
>>>

$ sudo mount -o offset=62914560 -t ext4 2015-05-05-raspbian-wheezy.img /mnt

$ ls /mnt
bin   dev  home  lost+found  mnt  proc  run   selinux  sys  usr
boot  etc  lib   media       opt  root  sbin  srv      tmp  var

$ cat /mnt/etc/issue
Raspbian GNU/Linux 7 \n \l


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 求助!!! 在Ubuntu下挂载树莓派镜像GG了
帖子发表于 : 2016-09-20 18:37 

注册: 2016-09-20 15:24
帖子: 2
系统: ubuntu 12.04 LTS
送出感谢: 0 次
接收感谢: 0 次
刚刚按照您的方法操作了一遍,还是不行 :Cry :Cry :Cry 我用的是ubuntu 12.04 LTS
显示如下:
mount:文件系统类型错误、选项错误、/dev/loop0 有坏超级块,
缺少代码页或助手程序,或其他错误
有些情况下在 syslog 中可以找到一些有用信息- 请尝试
dmesg | tail 这样的命令看看。


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 求助!!! 在Ubuntu下挂载树莓派镜像GG了
帖子发表于 : 2016-09-20 19:10 
头像

注册: 2011-03-20 13:12
帖子: 4521
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
摩洛哥 写道:
mount:文件系统类型错误、选项错误、/dev/loop0 有坏超级块

看看咱俩的 2015-05-05-raspbian-wheezy.img 一样吗?我的是从这下载的:
http://ftp.jaist.ac.jp/pub/raspberrypi/raspbian/images/raspbian-2015-05-07/2015-05-05-raspbian-wheezy.zip
代码:
$ md5sum 2015-05-05-raspbian-wheezy.img
6eef7926c8ef67e613e0daed35d3c1b4  2015-05-05-raspbian-wheezy.img
$ sha256sum 2015-05-05-raspbian-wheezy.img
f97a255a647a7f647cd157f81a699a93ffdd947de14698fad7e3a5a46643dd2c  2015-05-05-raspbian-wheezy.img


关键是 -o offset 要正确(122880*512=62914560),-t ext4 文件系统类型要正确


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 0 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译