1. Computing & Technology
Linux / Unix Command: debugreiserfs
Command Library

NAME

debugreiserfs  

SYNOPSIS

debugreiserfs [ -dDJmoqpS ] [ -j device ] [ -B blocknumber ]

device  

DESCRIPTION

It helps sometimes to solve problems with reiserfs filesystems. Being called w/o options it prints super block of reiserfs filesystem found on the device.
device
is the special file corresponding to the device (e.g /dev/hdXX for IDE disk partition or /dev/sdXX for SCSI disk partition).
 

OPTIONS

-j device
print contents of journal. Also with the option -p it allows to pack journal into archive with other metadata
-J
print journal header.
-d
print formatted nodes of the internal tree of the filesystem
-D
print formatted nodes of all used blocks of the filesystem
-m
print contents of bitmap (not very useful)
-o
print objectid map (not very useful)
-1 blocknumber
print specified block of the filesystem
-p Makes debugreiserfs to find filesystem metadata This option exists to help reiserfsck debugging. If reiserfsck fails - you may extract filesystem metadata with debugreiserfs -p /dev/xxx |gzip -c > xxx.gz. We download that data and make the filesystem similar to your with gunzip -c xxx.gz | unpack /dev/xxx (unpack is included into reiserfsprogs package). This usually allows to reproduce and debug the problem quickly. When data file is not too large.
-S
When -S is not specified -p deals with blocks marked used in the filesystem bitmap. With this option set they will work with whole device.
-q
Suppress showing speed of progress when -p is in use
 

SEE ALSO

reiserfsck(8), mkreiserfs(8)


Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Discuss in my forum

©2012 About.com. All rights reserved.

A part of The New York Times Company.