Skip to contentSkip to conversation

ls: reading directory .: Input/output error on reiser4 partition

DISCUSSION [email protected] 2 participants 7 messages Apr 11, 2011 – Apr 13, 2011

lore
Share & tools
lore
#0 lore raw

Hello
I get this error on a Reiser4 disk:

What are the commands to
- check disk structure
- list any errors
- repair errors

I am using Reiser4 vers 2.6.38
Build log ->https://build.opensuse.org/package/binaries?package=kernel-reiser4&project=home%3Adoiggl&repository=openSUSE_11.4

Thanks Glenn

# ls
ls: reading directory .: Input/output error

2. The disk was mounted with this command ok

# mount /dev/sdd /media/disk

3. dmsg shows disk plugged in ok vis usb connection.

#dmesg

[  149.408064] usb 2-3: new high speed USB device using ehci_hcd and
address 4
[  149.543649] usb 2-3: New USB device found, idVendor=04fc,
idProduct=0c25
[  149.543662] usb 2-3: New USB device strings: Mfr=2, Product=3,
SerialNumber=1
[  149.543670] usb 2-3: Product: USB to Serial-ATA bridge
[  149.543677] usb 2-3: Manufacturer: Sunplus Technology Inc.
[  149.543683] usb 2-3: SerialNumber: ST32000542            5XW1ZMG4
[  149.548258] scsi8 : usb-storage 2-3:1.0
[  150.553859] scsi 8:0:0:0: Direct-Access     ST320005 42AS              
  PQ: 0 ANSI: 2
[  150.554568] sd 8:0:0:0: Attached scsi generic sg4 type 0
[  150.558628] sd 8:0:0:0: [sdd] 3907029168 512-byte logical blocks: (2.00
TB/1.81 TiB)
[  150.563677] sd 8:0:0:0: [sdd] Write Protect is off
[  150.563694] sd 8:0:0:0: [sdd] Mode Sense: 38 00 00 00
[  150.565315] sd 8:0:0:0: [sdd] Incomplete mode parameter data
[  150.565330] sd 8:0:0:0: [sdd] Assuming drive cache: write through
[  150.571680] sd 8:0:0:0: [sdd] Incomplete mode parameter data
[  150.571695] sd 8:0:0:0: [sdd] Assuming drive cache: write through
[  150.586796]  sdd: unknown partition table
[  150.593817] sd 8:0:0:0: [sdd] Incomplete mode parameter data
[  150.593828] sd 8:0:0:0: [sdd] Assuming drive cache: write through
[  150.593838] sd 8:0:0:0: [sdd] Attached SCSI disk
[  222.780803] Loading Reiser4. See www.namesys.com for a description of
Reiser4.
[  222.786169] reiser4: sdd: found disk format 4.0.0.
#1 lore raw
Quoted 5 lines · On 04/11/2011 03:50 PM, [email protected] wrote:

Hello
I get this error on a Reiser4 disk:

What are the commands to
- check disk structure

make sure /dev/sdd is unmounted, or mounted read-only; fsck.reiser4 /dev/sdd

Quoted 52 lines

- list any errors
- repair errors

I am using Reiser4 vers 2.6.38
Build log ->https://build.opensuse.org/package/binaries?package=kernel-reiser4&project=home%3Adoiggl&repository=openSUSE_11.4

Thanks Glenn

# ls
ls: reading directory .: Input/output error

2. The disk was mounted with this command ok

# mount /dev/sdd /media/disk

3. dmsg shows disk plugged in ok vis usb connection.

#dmesg

[  149.408064] usb 2-3: new high speed USB device using ehci_hcd and
address 4
[  149.543649] usb 2-3: New USB device found, idVendor=04fc,
idProduct=0c25
[  149.543662] usb 2-3: New USB device strings: Mfr=2, Product=3,
SerialNumber=1
[  149.543670] usb 2-3: Product: USB to Serial-ATA bridge
[  149.543677] usb 2-3: Manufacturer: Sunplus Technology Inc.
[  149.543683] usb 2-3: SerialNumber: ST32000542            5XW1ZMG4
[  149.548258] scsi8 : usb-storage 2-3:1.0
[  150.553859] scsi 8:0:0:0: Direct-Access     ST320005 42AS
   PQ: 0 ANSI: 2
[  150.554568] sd 8:0:0:0: Attached scsi generic sg4 type 0
[  150.558628] sd 8:0:0:0: [sdd] 3907029168 512-byte logical blocks: (2.00
TB/1.81 TiB)
[  150.563677] sd 8:0:0:0: [sdd] Write Protect is off
[  150.563694] sd 8:0:0:0: [sdd] Mode Sense: 38 00 00 00
[  150.565315] sd 8:0:0:0: [sdd] Incomplete mode parameter data
[  150.565330] sd 8:0:0:0: [sdd] Assuming drive cache: write through
[  150.571680] sd 8:0:0:0: [sdd] Incomplete mode parameter data
[  150.571695] sd 8:0:0:0: [sdd] Assuming drive cache: write through
[  150.586796]  sdd: unknown partition table
[  150.593817] sd 8:0:0:0: [sdd] Incomplete mode parameter data
[  150.593828] sd 8:0:0:0: [sdd] Assuming drive cache: write through
[  150.593838] sd 8:0:0:0: [sdd] Attached SCSI disk
[  222.780803] Loading Reiser4. See www.namesys.com for a description of
Reiser4.
[  222.786169] reiser4: sdd: found disk format 4.0.0.

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 4 lines · Edward Shishkin
Quoted 3 lines · On 04/11/2011 03:50 PM, [email protected] wrote:

Hello
I get this error on a Reiser4 disk:

Quoted 14 lines
Quoted 2 lines

What are the commands to
- check disk structure

make sure /dev/sdd is unmounted, or mounted read-only; fsck.reiser4 /dev/sdd

Quoted 6 lines

- list any errors
- repair errors

I am using Reiser4 vers 2.6.38
Build log

->https://build.opensuse.org/package/binaries?package=kernel-reiser4&project=home%3Adoiggl&repository=openSUSE_11.4

Quoted 1 line
Quoted 1 line

Hello
Thanks for the info
I did the following
- installed reiser4progs
- umount /dev/sdd

This next step will take a long time [in progress] Its at 0% -I'll reply later with full result, its checking 1.2 TB data and > 250,000 files

What I have so far.
Glenn

# fsck.reiser4 /dev/sdd
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************
***** fsck.reiser4 started at Tue Apr 12 01:18:23 2011
Reiser4 fs was detected on /dev/sdd.                                      

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:    184741937 
root block:     240062537 
tail policy:    0x2 (smart) 
next oid:       0xe6e2d 
file count:     254746 
tree height:    6 
key policy:     LARGE 

CHECKING THE STORAGE TREE 0%
FSCK: node.c: 108: repair_node_items_check: Node (7616539), items (6) and (7): Wrong order of keys.

FSCK: filter.c: 407: repair_filter_update_traverse: Node (7616539): the node is broken. Pointed from the node (35239054), item (12), unit (0). The whole
subtree is skipped.

#3 lore raw
Quoted 29 lines · On 04/11/2011 05:32 PM, [email protected] wrote:
Quoted 4 lines · Edward Shishkin
Quoted 3 lines · On 04/11/2011 03:50 PM, [email protected] wrote:

Hello
I get this error on a Reiser4 disk:

Quoted 14 lines
Quoted 2 lines

What are the commands to
- check disk structure

make sure /dev/sdd is unmounted, or mounted read-only; fsck.reiser4 /dev/sdd

Quoted 6 lines

- list any errors
- repair errors

I am using Reiser4 vers 2.6.38
Build log

->https://build.opensuse.org/package/binaries?package=kernel-reiser4&project=home%3Adoiggl&repository=openSUSE_11.4

Quoted 1 line
Quoted 1 line

Hello
Thanks for the info
I did the following
- installed reiser4progs
- umount /dev/sdd

Quoted 3 lines

This next step will take a long time [in progress] Its at 0% -I'll reply later with full result, its checking 1.2 TB data and> 250,000 files

Reiser4 doesn't have production stability so far, so, creating large reiser4 volumes is not a good idea.

An old nasty bug still lives in reiser4 kernel module (appearing objects with inconsistent key order). Fsck will cope with this kind of corruption, however, it will take a lot of time.

Thanks,
Edward.

Quoted 45 lines

What I have so far.
Glenn

# fsck.reiser4 /dev/sdd
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************
***** fsck.reiser4 started at Tue Apr 12 01:18:23 2011
Reiser4 fs was detected on /dev/sdd.

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:    184741937
root block:     240062537
tail policy:    0x2 (smart)
next oid:       0xe6e2d
file count:     254746
tree height:    6
key policy:     LARGE

CHECKING THE STORAGE TREE 0%
FSCK: node.c: 108: repair_node_items_check: Node (7616539), items (6) and (7): Wrong order of keys.

FSCK: filter.c: 407: repair_filter_update_traverse: Node (7616539): the node is broken. Pointed from the node (35239054), item (12), unit (0). The whole
subtree is skipped.

#4 lore raw
Quoted 15 lines · Edward Shishkin
Quoted 14 lines · On 04/11/2011 05:32 PM, [email protected] wrote:
Quoted 12 lines · Edward Shishkin
Quoted 5 lines · On 04/11/2011 03:50 PM, [email protected] wrote:

Hello
I get this error on a Reiser4 disk:

What are the commands to
- check disk structure

make sure /dev/sdd is unmounted, or mounted read-only; fsck.reiser4 /dev/sdd

Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines

- list any errors
- repair errors

I am using Reiser4 vers 2.6.38
Build log

->https://build.opensuse.org/package/binaries?package=kernel-reiser4&project=home%3Adoiggl&repository=openSUSE_11.4

Quoted 17 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line

Hello
Thanks for the info
I did the following
- installed reiser4progs
- umount /dev/sdd

Quoted 4 lines

This next step will take a long time [in progress] Its at 0% -I'll reply later with full result, its checking 1.2 TB data and> 250,000
files

Reiser4 doesn't have production stability so far, so, creating large reiser4 volumes is not a good idea.

Quoted 46 lines

An old nasty bug still lives in reiser4 kernel module (appearing objects with inconsistent key order). Fsck will cope with this kind of corruption, however, it will take a lot of time.

Thanks,
Edward.

Quoted 37 lines

What I have so far.
Glenn

# fsck.reiser4 /dev/sdd
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************
***** fsck.reiser4 started at Tue Apr 12 01:18:23 2011
Reiser4 fs was detected on /dev/sdd.

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:    184741937
root block:     240062537
tail policy:    0x2 (smart)
next oid:       0xe6e2d
file count:     254746
tree height:    6
key policy:     LARGE

CHECKING THE STORAGE TREE 0%
FSCK: node.c: 108: repair_node_items_check: Node (7616539), items (6)

and

Quoted 5 lines
Quoted 5 lines

(7): Wrong order of keys.

FSCK: filter.c: 407: repair_filter_update_traverse: Node (7616539): the node is broken. Pointed from the node (35239054), item (12), unit (0). The whole subtree is skipped.

Hello
Can a single directory be repaired or has the whole disk structure be repaired in one pass ?
What is the command to repair disk structure.
Thanks

#5 lore raw
Quoted 86 lines · On 04/12/2011 02:37 PM, [email protected] wrote:
Quoted 15 lines · Edward Shishkin
Quoted 14 lines · On 04/11/2011 05:32 PM, [email protected] wrote:
Quoted 12 lines · Edward Shishkin
Quoted 5 lines · On 04/11/2011 03:50 PM, [email protected] wrote:

Hello
I get this error on a Reiser4 disk:

What are the commands to
- check disk structure

make sure /dev/sdd is unmounted, or mounted read-only; fsck.reiser4 /dev/sdd

Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines

- list any errors
- repair errors

I am using Reiser4 vers 2.6.38
Build log

->https://build.opensuse.org/package/binaries?package=kernel-reiser4&project=home%3Adoiggl&repository=openSUSE_11.4

Quoted 61 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line

Hello
Thanks for the info
I did the following
- installed reiser4progs
- umount /dev/sdd

Quoted 4 lines

This next step will take a long time [in progress] Its at 0% -I'll reply later with full result, its checking 1.2 TB data and> 250,000
files

Reiser4 doesn't have production stability so far, so, creating large reiser4 volumes is not a good idea.

An old nasty bug still lives in reiser4 kernel module (appearing objects with inconsistent key order). Fsck will cope with this kind of corruption, however, it will take a lot of time.

Thanks,
Edward.

Quoted 35 lines

What I have so far.
Glenn

# fsck.reiser4 /dev/sdd
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************
***** fsck.reiser4 started at Tue Apr 12 01:18:23 2011
Reiser4 fs was detected on /dev/sdd.

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:    184741937
root block:     240062537
tail policy:    0x2 (smart)
next oid:       0xe6e2d
file count:     254746
tree height:    6
key policy:     LARGE
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

CHECKING THE STORAGE TREE 0%
FSCK: node.c: 108: repair_node_items_check: Node (7616539), items (6)

and

Quoted 1 line
Quoted 1 line

(7): Wrong order of keys.

yeah, this is what I have talked about..

Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

FSCK: filter.c: 407: repair_filter_update_traverse: Node (7616539): the node is broken. Pointed from the node (35239054), item (12), unit (0). The whole subtree is skipped.

Hello
Can a single directory be repaired or has the whole disk structure be repaired in one pass ?

you can not to specify a single directory to repair

Quoted 1 line

What is the command to repair disk structure.

in the (default) check mode fsck prints diagnostics with the following suggestions how to repair. In your case it will be an advice to run with --build-fs option.

Edward.

#6 lore raw

This may be related, just fyi --Glenn.
#dmesg

[  499.298559] WARNING: Failed to save sd for 65595: -2
[  499.298715] reiser4[mv(3563)]: key_warning
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/file_plugin_common.c:511)[nikita-717]:
[  499.298721] WARNING: Error for inode 65595 (-2)
[  499.298730] reiser4[mv(3563)]: write_sd_by_inode_common
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/file_plugin_common.c:34)[nikita-2221]:
[  499.298736] WARNING: Failed to save sd for 65595: -2
[  499.298892] reiser4[mv(3563)]: key_warning
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/file_plugin_common.c:511)[nikita-717]:
[  499.298898] WARNING: Error for inode 65595 (-2)
[  499.298908] reiser4[mv(3563)]: write_sd_by_inode_common
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/file_plugin_common.c:34)[nikita-2221]:
[  499.298914] WARNING: Failed to save sd for 65595: -2
[  499.299121] reiser4[mv(3563)]: reiser4_unlink_common
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/inode_ops.c:300)[nikita-3398]:
[  499.299127] WARNING: Cannot unlink 65595 (-2)
[  499.299155] reiser4[mv(3563)]: key_warning
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/file_plugin_common.c:511)[nikita-717]:
[  499.299161] WARNING: Error for inode 65595 (-2)
[  499.299169] reiser4[mv(3563)]: write_sd_by_inode_common
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/file_plugin_common.c:34)[nikita-2221]:
[  499.299174] WARNING: Failed to save sd for 65595: -2
[  499.299282] reiser4[mv(3563)]: reiser4_unlink_common
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/inode_ops.c:300)[nikita-3398]:
[  499.299288] WARNING: Cannot unlink 65584 (-2)
[  499.299315] reiser4[mv(3563)]: key_warning
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/file_plugin_common.c:511)[nikita-717]:
[  499.299321] WARNING: Error for inode 65584 (-2)
[  499.299331] reiser4[mv(3563)]: write_sd_by_inode_common
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/file_plugin_common.c:34)[nikita-2221]:
[  499.299337] WARNING: Failed to save sd for 65584: -2
[  499.299423] reiser4[mv(3563)]: reiser4_unlink_common
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/inode_ops.c:300)[nikita-3398]:
[  499.299430] WARNING: Cannot unlink 65583 (-2)
[  499.299457] reiser4[mv(3563)]: key_warning
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/file_plugin_common.c:511)[nikita-717]:
[  499.299463] WARNING: Error for inode 65583 (-2)
[  499.299472] reiser4[mv(3563)]: write_sd_by_inode_common
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/file_plugin_common.c:34)[nikita-2221]:
[  499.299478] WARNING: Failed to save sd for 65583: -2
[  499.299562] reiser4[mv(3563)]: reiser4_unlink_common
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/inode_ops.c:300)[nikita-3398]:
[  499.299569] WARNING: Cannot unlink 945688 (-2)
[  499.299597] reiser4[mv(3563)]: key_warning
(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/file_plugin_common.c:511)[nikita-717]:
[  499.299602] WARNING: Error for inode 945688 (-2)
[  499.299612] reiser4[mv(3563)]: write_sd_by_inode_common

(/usr/src/packages/BUILD/kernel-reiser4-2.6.38.2/linux-2.6.38.2/fs/reiser4/plugin/file_plugin_common.c:34)[nikita-2221]: