我的老师给了我他的笔记本电脑(装有 Fedora 16)和带有数据的闪存卡。他想访问卡上的文件,但无法访问。问题是 Linux 不知道分区类型是什么。我想是 JFS:
root@debian:~# dmesg |grep sdc
[ 9066.908223] sd 3:0:0:1: [sdc] 3940272 512-byte logical blocks: (2.01 GB/1.87 GiB)
[ 9066.962307] sd 3:0:0:1: [sdc] Write Protect is off
[ 9066.962310] sd 3:0:0:1: [sdc] Mode Sense: 03 00 00 00
[ 9066.962312] sd 3:0:0:1: [sdc] Assuming drive cache: write through
[ 9067.028420] sd 3:0:0:1: [sdc] Assuming drive cache: write through
[ 9067.028637] sdc: unknown partition table
[ 9067.097065] sd 3:0:0:1: [sdc] Assuming drive cache: write through
[ 9067.097281] sd 3:0:0:1: [sdc] Attached SCSI removable disk
以及一些数据:
root@debian:~# hexdump -Cn 65536 /dev/sdc
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00008000 4a 46 53 31 01 00 00 00 48 63 0e 00 00 00 00 00 |JFS1....Hc......|
00008010 00 10 00 00 0c 00 03 00 00 02 00 00 09 00 00 00 |................|
00008020 00 20 00 00 00 09 20 10 02 00 00 00 00 00 00 00 |. .... .........|
00008030 04 00 00 00 26 00 00 00 02 00 00 00 24 00 00 00 |....&.......$...|
00008040 41 03 00 00 16 00 00 00 00 02 00 00 a0 cc 01 00 |A...............|
00008050 37 00 00 00 69 cc 01 00 b6 d8 ac 4b 00 00 00 00 |7...i......K....|
00008060 32 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 |2...............|
00008070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00008080 00 00 00 00 00 00 00 00 90 15 e5 5f e3 c4 45 fa |..........._..E.|
00008090 9d 6a 5c b5 4f da 62 1a 00 00 00 00 00 00 00 00 |.j\.O.b.........|
000080a0 00 00 00 00 00 00 00 00 c3 c9 01 00 ed 81 00 00 |................|
000080b0 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000080c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
[cut]
*
0000f000 4a 46 53 31 01 00 00 00 48 63 0e 00 00 00 00 00 |JFS1....Hc......|
0000f010 00 10 00 00 0c 00 03 00 00 02 00 00 09 00 00 00 |................|
0000f020 00 20 00 00 00 09 20 10 00 00 00 00 00 00 00 00 |. .... .........|
0000f030 04 00 00 00 26 00 00 00 02 00 00 00 24 00 00 00 |....&.......$...|
0000f040 41 03 00 00 16 00 00 00 00 02 00 00 a0 cc 01 00 |A...............|
0000f050 37 00 00 00 69 cc 01 00 b6 d8 ac 4b 00 00 00 00 |7...i......K....|
0000f060 32 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 |2...............|
0000f070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0000f080 00 00 00 00 00 00 00 00 90 15 e5 5f e3 c4 45 fa |..........._..E.|
0000f090 9d 6a 5c b5 4f da 62 1a 00 00 00 00 00 00 00 00 |.j\.O.b.........|
0000f0a0 00 00 00 00 00 00 00 00 c3 c9 01 00 ed 81 00 00 |................|
0000f0b0 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0000f0c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00010000
我对文件系统完全是新手。我在 Google 上搜索后发现 JFS 超级块可能从 0x8000 偏移开始。但接下来该怎么做?如何安装此卡?如果有正常的分区表,我期望第 510 和 511 字节上有 55 AA,但前 8000 个字节是清楚的。任何帮助都将不胜感激。