http://bugzilla.novell.com/show_bug.cgi?id=984463 http://bugzilla.novell.com/show_bug.cgi?id=984463#c2 --- Comment #2 from Glenn Doig <doiggl@velocitynet.com.au> --- Hello Using a more recent kernel -encountered Segmentation fault. Repair failed. --Glenn # uname -r 4.6.0-1-vanilla Hello, Need help to repair and mount command be done to use a reiser4 volume ? [located /dev/sdb] # mount /dev/sdb /media/disk - mount command [for sdb] see http://www.spinics.net/lists/reiserfs-devel/msg04810.html - These commands were run using opensuse 64 bit x86_64 - Steps run so far in this order: # fsck.reiser4 --build-sb --force /dev/sdb # fsck.reiser4 --build-fs --force /dev/sdb # fsck.reiser4 --check /dev/sdb Entire output see [1] message sequence from commands: ------------------------------- # fsck.reiser4 --build-sb --force /dev/sdb 2 fatal corruptions were detected in FileSystem. Run with --build-fs option to fix them. # fsck.reiser4 --build-fs --force /dev/sdb LOOKING FOR UNCONNECTED NODES FSCK: node.c: 108: repair_node_items_check: Node (43828275), items (0) and (1): Wrong order of keys. FSCK: node.c: 108: repair_node_items_check: Node (52697435), items (79) and (80): Wrong order of keys. FSCK: node.c: 108: repair_node_items_check: Node (63227569), items (24) and (25): Wrong order of keys. FSCK: node.c: 108: repair_node_items_check: Node (63227571), items (73) and (74): Wrong order of keys. FSCK: node.c: 108: repair_node_items_check: Node (116595727), items (20) and (21): Wrong order of keys. FSCK: node.c: 108: repair_node_items_check: Node (227923161), items (22) and (23): Wrong order of keys. FSCK: node.c: 108: repair_node_items_check: Node (284305753), items (61) and (62): Wrong order of keys. # fsck.reiser4 --check /dev/sdb 2 fatal corruptions were detected in FileSystem. Run with --build-fs option to fix them my observations: It seems to go loop around these commands. No way to complete repair sequence to allow mount on volume. So stuck in a loop of commands. I know files and data are on disk but just cannot get to it. Questions: - Is this because of a bug in fsck: 'it jumps to wrong branch' ? see http://www.spinics.net/lists/reiserfs-devel/msg04206.html - How can repair be done to allow ? Thanks --Glenn [1] # fsck.reiser4 --build-sb --force /dev/sdb ******************************************************************* This is an EXPERIMENTAL version of fsck.reiser4. Read README first. ******************************************************************* Fscking the /dev/sdb block device. Will build the Reiser4 SuperBlock. Will check the consistency of the Reiser4 FileSystem. ***** fsck.reiser4 started at Thu Oct 15 20:54:23 2015 FSCK: backup.c: 505: repair_backup_open: Found backup does not match to the on-disk filesystem metadata. FSCK: format40_repair.c: 129: format40_check_struct: Minor format version number (1) in superblock doesn't match the one in backup (0). Fixed. 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: Thu Oct 15 20:56:20 2015 - Fri Oct 16 04:40:12 2015 CHECKING EXTENT REGIONS. Read twigs 2217790 Time interval: Fri Oct 16 04:40:12 2015 - Fri Oct 16 06:49:48 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 Oct 16 06:49:48 2015 - Fri Oct 16 06:49:48 2015 FSCK: repair.c: 547: repair_sem_fini: On-disk used block bitmap and really used block bitmap differ. ***** fsck.reiser4 finished at Fri Oct 16 06:49:49 2015 Closing fs...done 2 fatal corruptions were detected in FileSystem. Run with --build-fs option to fix them. # fsck.reiser4 --build-fs --force /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 build the Reiser4 FileSystem. ***** fsck.reiser4 started at Fri Oct 16 10:43:34 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 Oct 16 10:45:30 2015 - Fri Oct 16 18:31:21 2015 CHECKING EXTENT REGIONS. Read twigs 2217790 Time interval: Fri Oct 16 18:31:21 2015 - Fri Oct 16 20:41:09 2015 LOOKING FOR UNCONNECTED NODES FSCK: node.c: 108: repair_node_items_check: Node (43828275), items (0) and (1): Wrong order of keys. FSCK: node.c: 108: repair_node_items_check: Node (52697435), items (79) and (80): Wrong order of keys. FSCK: node.c: 108: repair_node_items_check: Node (63227569), items (24) and (25): Wrong order of keys. FSCK: node.c: 108: repair_node_items_check: Node (63227571), items (73) and (74): Wrong order of keys. FSCK: node.c: 108: repair_node_items_check: Node (116595727), items (20) and (21): Wrong order of keys. FSCK: node.c: 108: repair_node_items_check: Node (227923161), items (22) and (23): Wrong order of keys. FSCK: node.c: 108: repair_node_items_check: Node (284305753), items (61) and (62): Wrong order of keys. Read nodes 1481038 Good nodes 471512 Leaves of them 466164, Twigs of them 5348 Time interval: Fri Oct 16 20:41:24 2015 - Fri Oct 16 20:45:01 2015 ***** fsck.reiser4 finished at Fri Oct 16 20:45:01 2015 Closing fs...done FS is consistent. # # 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 Oct 16 22:14:19 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 Oct 16 22:16:51 2015 - Sat Oct 17 07:11:51 2015 CHECKING EXTENT REGIONS. Read twigs 2217790 Time interval: Sat Oct 17 07:11:51 2015 - Sat Oct 17 09:37:22 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: Sat Oct 17 09:37:22 2015 - Sat Oct 17 09:37:22 2015 FSCK: repair.c: 550: repair_sem_fini: On-disk used block bitmap and really used block bitmap differ. ***** fsck.reiser4 finished at Sat Oct 17 09:37:23 2015 Closing fs...done 2 fatal corruptions were detected in FileSystem. Run with --build-fs option to fix them. ################################################################### # # fsck.reiser4 --build-sb --force /dev/sdb # fsck.reiser4 --build-fs --force /dev/sdb # fsck.reiser4 --check /dev/sdb #dmesg . . NOTICE: Warning: mounting sdb with errors. [38281.828173] reiser4: sdb: found disk format 4.0.1. [38281.828284] reiser4: sdb: use 'fsck.reiser4 --fix' to complete disk format upgrade. [38391.735448] reiser4[mount(17356)]: traverse_tree (../fs/reiser4/search.c:725)[nikita-373]: WARNING: not found on internal node: level: 6, lock_level: 1, stop_level: 1 lock_mode: read, bias: exact [38391.735466] reiser4[mount(17356)]: key_warning (../fs/reiser4/plugin/file_plugin_common.c:510)[nikita-717]: WARNING: Error for inode 42 (-2) # ~ # fsck.reiser4 --build-sb --force /dev/sdb ******************************************************************* This is an EXPERIMENTAL version of fsck.reiser4. Read README first. ******************************************************************* Fscking the /dev/sdb block device. Will build the Reiser4 SuperBlock. Will check the consistency of the Reiser4 FileSystem. ***** fsck.reiser4 started at Thu Oct 15 20:54:23 2015 FSCK: backup.c: 505: repair_backup_open: Found backup does not match to the on-disk filesystem metadata. FSCK: format40_repair.c: 129: format40_check_struct: Minor format version number (1) in superblock doesn't match the one in backup (0). Fixed. 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: Thu Oct 15 20:56:20 2015 - Fri Oct 16 04:40:12 2015 CHECKING EXTENT REGIONS. Read twigs 2217790 Time interval: Fri Oct 16 04:40:12 2015 - Fri Oct 16 06:49:48 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 Oct 16 06:49:48 2015 - Fri Oct 16 06:49:48 2015 FSCK: repair.c: 547: repair_sem_fini: On-disk used block bitmap and really used block bitmap differ. ***** fsck.reiser4 finished at Fri Oct 16 06:49:49 2015 Closing fs...done 2 fatal corruptions were detected in FileSystem. Run with --build-fs option to fix them. You have new mail in /var/spool/mail/root ### # fsck.reiser4 --build-fs --force /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 build the Reiser4 FileSystem. ***** fsck.reiser4 started at Fri Oct 16 10:43:34 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 00% 10:18 ##### # fsck.reiser4 --build-sb --force /dev/sdb ******************************************************************* This is an EXPERIMENTAL version of fsck.reiser4. Read README first. ******************************************************************* Fscking the /dev/sdb block device. Will build the Reiser4 SuperBlock. Will check the consistency of the Reiser4 FileSystem. ***** fsck.reiser4 started at Thu Oct 15 20:54:23 2015 FSCK: backup.c: 505: repair_backup_open: Found backup does not match to the on-disk filesystem metadata. FSCK: format40_repair.c: 129: format40_check_struct: Minor format version number (1) in superblock doesn't match the one in backup (0). Fixed. 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: Thu Oct 15 20:56:20 2015 - Fri Oct 16 04:40:12 2015 CHECKING EXTENT REGIONS. Read twigs 2217790 Time interval: Fri Oct 16 04:40:12 2015 - Fri Oct 16 06:49:48 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 Oct 16 06:49:48 2015 - Fri Oct 16 06:49:48 2015 FSCK: repair.c: 547: repair_sem_fini: On-disk used block bitmap and really used block bitmap differ. ***** fsck.reiser4 finished at Fri Oct 16 06:49:49 2015 Closing fs...done 2 fatal corruptions were detected in FileSystem. Run with --build-fs option to fix them. ### # fsck.reiser4 --build-fs --force /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 build the Reiser4 FileSystem. ***** fsck.reiser4 started at Fri Oct 16 10:43:34 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 # # fsck.reiser4 --check /dev/sdb ##### # rpm -qa | grep -i reiser4progs |sort reiser4progs-1.0.8-3.1.2.x86_64 reiser4progs-debuginfo-1.1.0-14.1.x86_64 reiser4progs-debugsource-1.1.0-14.1.x86_64 reiser4progs-devel-1.1.0-14.1.x86_64 # rpm -qa | grep -i libaal |sort libaal-1_0-5-1.0.5-96.1.2.x86_64 libaal-1_0-6-1.0.6-126.1.x86_64 libaal-minimal0-1.0.5-96.1.2.x86_64 ##### # fsck.reiser4 --build-sb --force /dev/sdb ******************************************************************* This is an EXPERIMENTAL version of fsck.reiser4. Read README first. ******************************************************************* Fscking the /dev/sdb block device. Will build the Reiser4 SuperBlock. Will check the consistency of the Reiser4 FileSystem. ***** fsck.reiser4 started at Thu Oct 15 20:54:23 2015 FSCK: backup.c: 505: repair_backup_open: Found backup does not match to the on-disk filesystem metadata. FSCK: format40_repair.c: 129: format40_check_struct: Minor format version number (1) in superblock doesn't match the one in backup (0). Fixed. ############################## # dmesg [36217.056514] fsck.reiser4[1994]: segfault at 0 ip 00007efe91c79e09 sp 00007ffd4a43f430 error 4 in libreiser4-1.1.so.0.0.0[7efe91c5c000+4c000] # rpm -qf /usr/lib64/libreiser4-1.1.so.0.0.0 libreiser4-1_1-0-1.1.0-14.1.x86_64 # rpm -qf /usr/lib64/libreiser4-1.1.so.0 libreiser4-1_1-0-1.1.0-14.1.x86_64 ########### # fsck.reiser4 --check --help Usage: fsck.reiser4 [ options ] FILE Fsck options: --check checks the consistency (default) --fix fixes minor corruptions --build-sb rebuilds the super block --build-fs rebuilds the filesystem -L, --logfile file complains into the file -n, --no-log makes fsck to not complain -a, --auto automatically checks the consistency without any questions. -q, --quiet supresses gauges -r ignored Plugins options: --print-profile prints the plugin profile. -l, --print-plugins prints all known plugins. -o, --override TYPE=PLUGIN overrides the default plugin of the type "TYPE" by the plugin "PLUGIN" in the profile. Common options: -?, -h, --help prints program usage. -V, --version prints current version. -y, --yes assumes an answer 'yes' to all questions. -f, --force makes fsck to use whole disk, not block device or mounted partition. -p, --preen automatically repair the filesysem. -c, --cache N number of nodes in tree buffer cache ########### # fsck.reiser4 --fix /dev/sdb ******************************************************************* This is an EXPERIMENTAL version of fsck.reiser4. Read README first. ******************************************************************* Fscking the /dev/sdb block device. Will fix minor corruptions of the Reiser4 SuperBlock. Will fix minor corruptions of the Reiser4 FileSystem. Continue? (Yes/No): yes ***** fsck.reiser4 started at Thu Oct 15 08:39:00 2015 FSCK: backup.c: 505: repair_backup_open: Found backup does not match to the on-disk filesystem metadata. Backup update is needed. Done. 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: 1 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: Thu Oct 15 08:40:55 2015 - Thu Oct 15 16:24:00 2015 CHECKING EXTENT REGIONS. Read twigs 2217790 Time interval: Thu Oct 15 16:24:00 2015 - Thu Oct 15 18:33:46 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: Thu Oct 15 18:33:47 2015 - Thu Oct 15 18:33:47 2015 FSCK: repair.c: 547: repair_sem_fini: On-disk used block bitmap and really used block bitmap differ. Segmentation fault # dmesg [36217.056514] fsck.reiser4[1994]: segfault at 0 ip 00007efe91c79e09 sp 00007ffd4a43f430 error 4 in libreiser4-1.1.so.0.0.0[7efe91c5c000+4c000] # dmesg [38198.804395] usb 1-2: USB disconnect, device number 3 [38236.083430] usb 1-2: new high-speed USB device number 4 using ehci-pci [38236.219675] usb 1-2: New USB device found, idVendor=04fc, idProduct=0c25 [38236.219687] usb 1-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1 [38236.219694] usb 1-2: Product: USB to Serial-ATA bridge [38236.219700] usb 1-2: Manufacturer: Sunplus Technology Inc. [38236.219705] usb 1-2: SerialNumber: ST32000542 5XW1ZMG4 [38236.222656] usb-storage 1-2:1.0: USB Mass Storage device detected [38236.223163] scsi host5: usb-storage 1-2:1.0 [38237.229192] scsi 5:0:0:0: Direct-Access ST320005 42AS PQ: 0 ANSI: 2 [38237.229780] sd 5:0:0:0: Attached scsi generic sg2 type 0 [38237.231338] sd 5:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB) [38237.234898] sd 5:0:0:0: [sdb] Write Protect is off [38237.234909] sd 5:0:0:0: [sdb] Mode Sense: 38 00 00 00 [38237.237568] sd 5:0:0:0: [sdb] No Caching mode page found [38237.237578] sd 5:0:0:0: [sdb] Assuming drive cache: write through [38237.278121] sd 5:0:0:0: [sdb] Attached SCSI disk [38281.822957] Loading Reiser4 (format release: 4.0.1) See www.namesys.com for a description of Reiser4. [38281.828160] reiser4[mount(17356)]: try_init_format40 (../fs/reiser4/plugin/disk_format/disk_format40.c:300)[vpf-1363]: NOTICE: Warning: mounting sdb with errors. [38281.828173] reiser4: sdb: found disk format 4.0.1. [38281.828284] reiser4: sdb: use 'fsck.reiser4 --fix' to complete disk format upgrade. [38391.735448] reiser4[mount(17356)]: traverse_tree (../fs/reiser4/search.c:725)[nikita-373]: WARNING: not found on internal node: level: 6, lock_level: 1, stop_level: 1 lock_mode: read, bias: exact [38391.735466] reiser4[mount(17356)]: key_warning (../fs/reiser4/plugin/file_plugin_common.c:510)[nikita-717]: WARNING: Error for inode 42 (-2) # cat /proc/partitions major minor #blocks name 8 16 1,953,514,584 sdb # dmesg [36217.056514] fsck.reiser4[1994]: segfault at 0 ip 00007efe91c79e09 sp 00007ffd4a43f430 error 4 in libreiser4-1.1.so.0.0.0[7efe91c5c000+4c000] [39087.197103] SFW2-INext-DROP-DEFLT IN=enp3s0f5 OUT= MAC= SRC=fe80:0000:0000:0000:22cf:30ff:fe28:fda2 DST=ff02:0000:0000:0000:0000:0000:000 # -- You are receiving this mail because: You are on the CC list for the bug.