
Meu professor me deu seu laptop (com Fedora 16) e um cartão compact flash com dados. Ele quer ter acesso aos arquivos do cartão, mas não conseguiu. O problema é que o Linux não sabe que tipo de partição é. Suponho que exista 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
e alguns dados:
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
Sou totalmente novato em sistemas de arquivos. Pesquisei no Google e descobri que o superbloco JFS pode começar no deslocamento 0x8000. Mas e depois? Como montar este cartão? Se houvesse uma tabela de partição normal, eu esperaria 55 AA nos 510 e 511 bytes, mas os primeiros 8.000 bytes estão limpos. Qualquer ajuda seria muito apreciada.