-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You can also use dd (I use ddrescue with a script called dd_rhelp as a
front end) to copy the partition to another drive and/or computer.  You
can then try to mount the resulting file with -o loop option in mount to
get your files off.

For example:
dd if=/dev/hdxn of=/path/to/disk.bin
mount -t reiserfs path/to/disk.bin /path/to/mount/point -o loop,uid=username

Note if the disk is physically corrupt dd will error out.  This is why I
use ddrescue which has a number of options for dealing with failed
disks.  I know that ddrescue is packaged into Debian and Ubuntu, but
YMMV with other distros.

To make life easier you can use the dd_rhelp script from:
http://www.kalysto.org/utilities/dd_rhelp/index.en.html
to pass some reasonably good default options to ddrescue.  The dd
example above then becomes:

dd_rhelp /dev/hdxn /path/to/disk.bin

Knoppix has ddrescue installed, and dd_rhelp installs into Knoppix
without issue, at least for me (standard ./configure && make && sudo
make install ).

Cheers,

Gustin Johnson wrote:
> Boot from knoppix
> 
> Drop into root with su
> 
> fsck.reiserfs --fix-fixable /dev/hdxn
> fsck.reiserfs --rebuild-sb /dev/hdxn
> fsck.reiserfs --rebuild-tree /dev/hdxn
> fsck.reiserfs --check /dev/hdxn
> 
> Graham Monk wrote:
>>> Hi All
>>>
>>> Saturday night i dropped my laptop while running, the hdd unseated
>>> and now the filesystem on /home appears to be corrupted. ( reiser )
>>>
>>> Is there a command I can run to rebuild it?
>>> I can see root with Knoppix but it does not recognize the file type
>>> on the home partition.
>>>
>>> Graham
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> clug-talk mailing list
>>> [email protected]
>>> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
>>> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
>>> **Please remove these lines when replying

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEMYpZwRXgH3rKGfMRAlevAJ9xhLeqMbe3Lomtt5GjbAdHhvweWQCbBzvw
JYl0JXycf6pR8mTqQso4c+w=
=Upmn
-----END PGP SIGNATURE-----

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to