From: Vitaly Fertman <vitaly@namesys.com>
To: Christian Placzek <kris@cp-data.de>
Cc: reiserfs-list@namesys.com
Subject: Re: reiserfs3 rebuild-tree successful but no files
Date: Fri, 11 Feb 2005 13:57:41 +0300 [thread overview]
Message-ID: <200502111357.41536.vitaly@namesys.com> (raw)
In-Reply-To: <200502110832.28847.kris@cp-data.de>
> > after rebuilding the tree, does 'reiserfsck --check <device>' see these
> > files?
>
> Yes, see my original email from 08.02.2005 23:21. The original output has a
> length of about 13000 lines. A extract looks like this:
>
> ...
> rebuild_semantic_pass: The entry [741258 1025777] ("www.firstname.de.ico")
> in directory [296134 741258] points to nowhere - is removed
> rewrite_file: 2 items of file [741258 1041142] moved to [741258 93475]
> The entry [741258 1041142] ("deltab.de.ico") in directory [296134 741258]
> updated to point to [741258 93475]
> rewrite_file: 2 items of file [741258 1041137] moved to [741258 93569]
> The entry [741258 1041137] ("www.bild.t-online.de.ico") in directory
> [296134 741258] updated to point to [741258 93569]
> ...
>
> The last lines:
>
> ...
> Flushing..finished
> Objects without names 18403
> Empty lost dirs removed 384
> Dirs linked to /lost+found: 2174
> Dirs without stat data found 83
> Files linked to /lost+found 16229
> Objects having used objectids: 49
> files fixed 47
> dirs fixed 2
> Pass 4 - finished done 1476, 37 /sec
> Deleted unreachable items 716
> Flushing..finished
> Syncing..finished
> ###########
> reiserfsck finished at Tue Feb 8 17:40:05 2005
> ...
>
> Most of the files were removed by 'reiserfsck --check <device>'.
besides the journal replay reiserfsck --check does not change
anything on the partition, RO checks only.
> > do you have a reiserfs support in the kernel?
>
> Sure, one of my data partition is reiserfs:
>
> ...
> root@marvin:~ 0$ # debugreiserfs -J /dev/hda7
> debugreiserfs 3.6.19 (2003 www.namesys.com)
>
>
> Filesystem state: consistency is not checked after last mounting
>
> Reiserfs super block in block 16 on 0x307 of format 3.6 with standard
> journal Count of blocks on the device: 4393769
> ...
>
> > what if you zero the first 64K with
> > dd conv=notrunc if=/dev/zero of=<device> bs=4096 count=16
> > can you mount it now? (rebuild-tree should already complete by the mount
> > time).
>
> Hurray, this is the trick! I don't understand why, but I can see hundreds
> of directories and thousends of files. Thanks a lot!!!
>
> > do you have anything related in the syslog about the mount time?
>
> This is the first time 'dmesg' gives an output:
>
> ReiserFS: sdc5: found reiserfs format "3.6" with standard journal
> ReiserFS: sdc5: using ordered data mode
> ReiserFS: sdc5: journal params: device sdc5, size 8192, journal first block
> 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
> ReiserFS: sdc5: checking transaction log (sdc5)
> ReiserFS: sdc5: Using r5 hash to sort names
>
> Could you give me a technical describtion why this worked?
the kernel found an ext2 magic somewhere in the first 64K,
reiserfs keeps the super block on 64K offset, so ext2 one was
not overwritten by rebuild-sb. this is why it was mounted as ext2.
but why the kernel refused to mount as reiserfs when was explicitely
specified -- this is a bug.
--
Thanks,
Vitaly Fertman
next prev parent reply other threads:[~2005-02-11 10:57 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-08 22:21 reiserfs3 rebuild-tree successful but no files Christian Placzek
2005-02-09 8:47 ` Vladimir Saveliev
2005-02-09 9:04 ` Christian Placzek
[not found] ` <4209D935.1060203@namesys.com>
2005-02-09 11:56 ` Christian Placzek
2005-02-09 12:22 ` Vladimir Saveliev
2005-02-09 12:01 ` Vladimir Saveliev
2005-02-10 6:54 ` Christian Placzek
2005-02-10 8:50 ` Vladimir Saveliev
2005-02-10 12:50 ` Christian Placzek
2005-02-10 14:52 ` Vladimir Saveliev
2005-02-11 7:02 ` Christian Placzek
[not found] ` <420B6B35.2000607@namesys.com>
2005-02-10 15:02 ` Christian Placzek
2005-02-10 15:25 ` Vitaly Fertman
2005-02-11 7:32 ` Christian Placzek
2005-02-11 10:57 ` Vitaly Fertman [this message]
2005-02-10 20:54 ` Vitaly Fertman
2005-02-10 21:59 ` Adrian Ulrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200502111357.41536.vitaly@namesys.com \
--to=vitaly@namesys.com \
--cc=kris@cp-data.de \
--cc=reiserfs-list@namesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.