/dev/sdb is the whole disk, Whole disk is r4 -entire volume.
Question
========
-Does anyone know of any tools to help diagnose and disassemble reiser4 meta-data items ?
# seems to have meta-data problem that needs fixing.
I have a copy of the meta-data.
It looks like a binary format.
need tools to view it.
# fdisk -l
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
# dmesg
[131219.805053] usb 1-2: USB disconnect, device number 3
[131250.954632] usb 1-1: new high-speed USB device number 4 using ehci-pci
[131251.090722] usb 1-1: New USB device found, idVendor=04fc, idProduct=0c25
[131251.090734] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[131251.090741] usb 1-1: Product: USB to Serial-ATA bridge
[131251.090747] usb 1-1: Manufacturer: Sunplus Technology Inc.
[131251.090752] usb 1-1: SerialNumber: ST32000542 5XW1ZMG4
[131251.093705] usb-storage 1-1:1.0: USB Mass Storage device detected
[131251.093971] scsi host5: usb-storage 1-1:1.0
[131252.096359] scsi 5:0:0:0: Direct-Access ST320005 42AS PQ: 0 ANSI: 2
[131252.097781] sd 5:0:0:0: Attached scsi generic sg2 type 0
[131252.102057] sd 5:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[131252.104792] sd 5:0:0:0: [sdb] Write Protect is off
[131252.104802] sd 5:0:0:0: [sdb] Mode Sense: 38 00 00 00
[131252.107452] sd 5:0:0:0: [sdb] No Caching mode page found
[131252.107475] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[131252.142351] sd 5:0:0:0: [sdb] Attached SCSI disk
-version
# debugfs.reiser4 -V
debugfs.reiser4 1.0.5
Copyright (C) 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by
reiser4progs/COPYING.
# cat /proc/filesystems | awk '{print $NF}' | sed '/^$/d' |grep -i reiser | sort
reiser4
reiserfs
# mount /dev/sdb /media/disk
mount: mount(2) failed: No such file or directory
# dmesg
[132593.222658] Loading Reiser4 (format release: 4.0.1) See
www.namesys.com for a description of Reiser4.
[132593.228234] reiser4: sdb: found disk format 4.0.1.
# which fsck.reiser4
/usr/sbin/fsck.reiser4
# fsck.reiser4 --check /dev/sdb
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************
Fscking the /dev/sdb block device.
Will check the consistency of the Reiser4 SuperBlock.
Will check the consistency of the Reiser4 FileSystem.
Continue?
(Yes/No): yes
***** fsck.reiser4 started at Fri Feb 27 02:58:06 2015
Reiser4 fs was detected on /dev/sdb.
Master super block (16):
magic: ReIsEr4
blksize: 4096
format: 0x0 (format40)
uuid: 3006ced1-7490-4ea8-a9b8-d82143c6bede
label: <none>
Format super block (17):
plugin: format40
description: Disk-format plugin.
version: 0
magic: ReIsEr40FoRmAt
mkfs id: 0x1ddaf754
flushes: 0
blocks: 488378640
free blocks: 217146980
root block: 37017218
tail policy: 0x2 (smart)
next oid: 0xedade
file count: 188313
tree height: 6
key policy: LARGE
CHECKING THE STORAGE TREE
Read nodes 197008413
Nodes left in the tree 197008413
Leaves of them 194764277, Twigs of them 2217790
Time interval: Fri Feb 27 03:00:05 2015 - Fri Feb 27 11:07:45 2015
CHECKING EXTENT REGIONS.
Read twigs 2217790
Time interval: Fri Feb 27 11:07:45 2015 - Fri Feb 27 13:18:06 2015
CHECKING THE SEMANTIC TREE
FSCK: semantic.c: 573: repair_semantic_dir_open: Failed to recognize the
plugin for the directory [29:0:2a].
FSCK: semantic.c: 651: repair_semantic_root_prepare: No root directory
opened.
Time interval: Fri Feb 27 13:18:06 2015 - Fri Feb 27 13:18:06 2015
FSCK: repair.c: 550: repair_sem_fini: On-disk used block bitmap and really
used block bitmap differ.
***** fsck.reiser4 finished at Fri Feb 27 13:18:07 2015
Closing fs...done
2 fatal corruptions were detected in FileSystem. Run with --build-fs
option to fix them.
# ll
total 5066022
2,098,194,393 Nov 27 14:33 r4meta-sdb.bz2
# metadata -part of [binary format]
# more r4meta-sdb
VRSN1.1.0
����������������������������������������
Any help greatly appreciated.
Thanks
--Glenn