无法在 Linux 上挂载 UFS2 分区 - ufs_fill_super(): 错误的幻数

无法在 Linux 上挂载 UFS2 分区 - ufs_fill_super(): 错误的幻数

在 FreeNAS 9.3 中,我通过执行以下操作创建了一个分区(切片?):

fdisk -BI /dev/ada3
bsdlabel -wB /dev/ada3s1
newfs -O2 -U /dev/ada3s1a

该驱动器现在在 Ubuntu 14.04 上是 /dev/sdg,我无法安装它。

我尝试像这样安装它:

$ sudo mount -r -t ufs -o ro,ufstype=ufs2 /dev/sdg1 /mnt/tmp/
mount: wrong fs type, bad option, bad superblock on /dev/sdg1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

更多相关命令的输出:

$ sudo fdisk -l /dev/sdg

Disk /dev/sdg: 1000.2 GB, 1000203804160 bytes
16 heads, 63 sectors/track, 1938018 cylinders, total 1953523055 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: 0x90909090

   Device Boot      Start         End      Blocks   Id  System
/dev/sdg1   *          63  1953522143   976761040+  a5  FreeBSD

$ sudo hexdump /dev/sdg1 | grep -w '1954'
0000d00 3cf0 0000 543d 0119 7400 3d1f 0119 1954
...

如您所见,UFS2 幻数 0x19540119 出现在偏移量 0xd0c 处。驾驶员期望的偏移量是多少?

dmesg 显示:

[ 2499.499004] sd 7:0:0:0: [sdg] 1953523055 512-byte logical blocks: (1.00 TB/931 GiB)
[ 2499.500127] sd 7:0:0:0: [sdg] Write Protect is off
[ 2499.500133] sd 7:0:0:0: [sdg] Mode Sense: 00 38 00 00
[ 2499.500996] sd 7:0:0:0: [sdg] Asking for cache data failed
[ 2499.501306] sd 7:0:0:0: [sdg] Assuming drive cache: write through
[ 2499.528760]  sdg: sdg1
[ 2499.528760]  sdg1: <bsd: >
[ 2499.532364] sd 7:0:0:0: [sdg] Attached SCSI disk
[ 2511.225195] ufs: ufs_fill_super(): bad magic number

我也尝试过没有这个ro选项。我已经尝试过了ufstype=44bsdoffset=32256并且offset=32768

任何建议将不胜感激!

相关内容