Skip to contentSkip to conversation

about crash

DISCUSSION Yura Umanets 1 participant 6 messages Apr 25, 2002 9 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 2 lines · Anders Widman

I ran dd with blocksize 4096, though I'm not sure this is the actual blocksize. Can I verify the blocksize easilly?

Possible debugreiserfs can show it...

Yes, try this.
debugreiserfs /dev/hda1 | grep ^Blocksize

Quoted 7 lines

Anyway. I attacked the output to this e-mail.

This is what I did:

[root@server demos]# ./lookup /dev/Server/FTPRoot 1 2 0 0
Information: Specified item found inside the leaf 669227 at position 0.

Seems right, however root-file you sent not a valid root leaf block. It contains rubbish.

Try this:

debugreiserf /dev/Server/FTPRoot -B 669227

And send me out.

If you'll see your root directories (at leat lost+found), then 669227 is right number.

Quoted 2 lines

[root@server demos]# dd if=/dev/Server/FTPRoot bs=4096 skip=669226 count=1 of=/root-file

It's may be joke :) You have compressed 4096 bytes file by bz2 and it size at the moment 4596

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 3 lines · Anders Widman

Hello again!

Wouldn't debugreiserfs -B exytract all bad blocks to a file?

debugreiserfs -B some_block just will be trying to show contains of the given block. If this block contains direntry, then it will show it.

This is a part of my root:

[root@banshee tmp]$ debugreiserfs /dev/hda1 -B 13715

<-------------debugreiserfs, 2002------------->
reiserfsprogs 3.x.1b-pre4

13715 is used in ondisk bitmap

===================================================================
LEAF NODE (13715) contains level=1, nr_items=6, free_space=140 rdkey (real items 6)
-------------------------------------------------------------------------------

|###|type|ilen|f/sp| loc|fmt|fsck|                   key 
      |
|   |    |    |e/cn|    |   |need| 
      |

-------------------------------------------------------------------------------
| 0|1 2 0x0 SD (0), len 44, location 4052 entry count 0, fsck need 0, format new| (NEW SD), mode drwxr-xr-x, size 448, nlink 16, mtime 04/21/2002 04:23:03 blocks 1, uid 0
-------------------------------------------------------------------------------

|  1|1 2 0x1 DIR (3), len 448, location 3604 entry count 18, fsck need 0, format old|
###: Name                     length    Object key           Hash Gen number
  0: ".                        "(  1)                 1 2           0 

1, loc 440, state 4 not set
1: ".. "( 2) 0 1 0
2, loc 432, state 4 not set
2: "bin "( 3) 2 16950 2318336
0, loc 424, state 4 "r5"
3: "dev "( 3) 2 17415 2354688
0, loc 416, state 4 "r5"
4: "etc "( 3) 2 18 2401792
0, loc 408, state 4 "r5"
5: "lib "( 3) 2 517 2529152
0, loc 400, state 4 "r5"
6: "mnt "( 3) 2 18693 2563328
0, loc 392, state 4 "r5"
7: "tmp "( 3) 2 17418 2711168
0, loc 384, state 4 "r5"
8: "var "( 3) 2 17417 2730880
0, loc 376, state 4 "r5"
9: "usr "( 3) 2 3 2744576
0, loc 368, state 4 "r5"
10: "boot "( 4) 2 17127 25652864
0, loc 360, state 4 "r5"
11: "home "( 4) 2 18692 27051904
0, loc 352, state 4 "r5"
12: "proc "( 4) 2 17416 29009280
0, loc 344, state 4 "r5"
13: "sbin "( 4) 2 47 29360256
0, loc 336, state 4 "r5"
14: "root "( 4) 2 18708 29415552
0, loc 328, state 4 "r5"
15: ".autofs "( 7) 2 16939 294236416
0, loc 320, state 4 "r5"
16: "quota.group "( 11) 2 426388 1105062784
0, loc 304, state 4 "r5"
17: "quota.user "( 10) 2 23274 2056011904
0, loc 288, state 4 "r5"

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw
Quoted 46 lines · Anders Widman

ok.. This is the output I get when running "debugreiserfs /dev/Server/FTPRoot -B"

<-------------debugreiserfs, 2002------------->
reiserfsprogs 3.x.1c-pre2

debugreiserfs: option requires an argument -- B

Filesystem state: consistent

Reiserfs super block in block 16 on 0x3a00 of format 3.6 with standard journal Count of blocks on the device: 213532672
Number of bitmaps: 6517
Blocksize: 4096
Free blocks (count of blocks - used [journal, bitmaps, data, reserved] blocks): 20694828 Root block: 67992
Filesystem is cleanly umounted
Tree height: 5
Hash function used to sort names: "r5"
Objectid map size 550, max 972
Journal parameters:
Device [0x0]
Magic [0x0]
Size 8193 blocks (including 1 for journal header) (first block 18) Max transaction length 0 blocks
Max batch size 0 blocks
Max commit age 0
Blocks reserved by journal: 0
Fs state field: 0x0
sb_version: 2
inode generation number: 52783
UUID: ce0c6cd1-e381-4597-bd30-edc0074968ab
LABEL: Set flags in SB:

This is what I get when running "debugreiserfs /dev/Server/FTPRoot -B 669227":

[root@server /]# debugreiserfs /dev/Server/FTPRoot -B 669227

<-------------debugreiserfs, 2002------------->
reiserfsprogs 3.x.1c-pre2

Quoted 8 lines

Will try to extract list of bad blocks and save it to '669227' file Done

I end up with a file called 669227 which is 0 bytes long. I'll try with the same version of debugreiserfs as you are running.

You should be using

debugreiserfs /dev/Server/FTPRoot -1 669227

Signature · 3 lines
Yury Umanets,
IT Engeneer of Priocom Corp.
Phone: +380 44 4924636, ICQ: 55494590

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#12 lore raw

I've checked your lost+found dir. And I think it contains "." and ".." entries.

This is some part of output ./progsreiserfs-0.3.0/demos/ls /dev/Server/FTPRoot /lost+found

[root@server demos]# ./ls /dev/Server/FTPRoot /lost+found .
..
42555_11634
42555_16819
42555_23482
42555_24549
42555_25089
42555_30440
42555_42703
42555_42710
42555_46086
42555_46088
42555_46090
42555_48062
42555_48119
42555_48135
42555_48848
42555_48851
32214_32216
18373_18376
20163_20164
20163_20167
20163_20168
19191_19192
19191_19193
28_29
29734_29735
29734_29736
29734_29737
29734_29738
29734_29739
29734_29740
29734_29741
29734_29742
25631_25632

A message that is not in the archive (sent off-list or not yet received): [email protected]

#14 lore raw
Quoted 2 lines · Anders Widman

What do you think the problem is then? If I try to rename (mv) a folder (and perhaps files) from lost+found the kernel would crash.

Since "." and ".." entries actually exist. I don't know what is the problem. Possible direntry of lost+found directory isn't valid. mv command modify it by corresponding sys_call and oops.