我在尝试挂载文件系统时遇到问题。基本上,如果我安装/dev/sdc1
,它就可以完美工作。但如果我/dev/sdc
使用字节偏移量安装,则会失败。文件系统是 HFS+(使用实际的 iMac 格式化)。
root# fdisk -l /dev/sdc
Disk /dev/sdc: 320.1 GB, 320072932864 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142447 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 63 128519 64228+ af HFS / HFS+
root# mount /dev/sdc1 /mnt
root# echo $?
0
root# umount /mnt
root# mount --ro -o offset=32256,sizelimit=6576994 /dev/sdc /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop20,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
root# dmesg | tail
[164258.208493] hfs: unable to find HFS+ superblock
[164398.983651] hfs: invalid secondary volume header
[164398.983654] hfs: unable to find HFS+ superblock
[164404.235785] hfs: invalid secondary volume header
[164404.235787] hfs: unable to find HFS+ superblock
[164407.461400] hfs: invalid secondary volume header
[164407.461404] hfs: unable to find HFS+ superblock
我到底做错了什么?
PS 偏移量似乎与 的输出匹配fdisk
,所以这不是问题。
编辑添加了fdisk
输出。
答案1
这个问题在 OpenSUSE 12.1 中被破坏了,但是当我将我的电脑更新到 OpenSUSE 13.1 时,这个问题就不再存在了。很奇怪,但却是事实!一定是内核错误或其他什么......