www.tirinhas.com
Mostrando postagens com marcador reiserfs. Mostrar todas as postagens
Mostrando postagens com marcador reiserfs. Mostrar todas as postagens

domingo, 30 de agosto de 2009

Sistema de Arquivos Reiserfs Corrompido

Começou a ocorrer erros estranhos na minha instalação do Gentoo. Eu não podia alterar a hora do sistema ou abrir o Konsole, que recebia uma mensagem dizendo que o sistema de arquivos seria somente leitura. Mas como o sistema de arquivos root poderia ser somente leitura?
Reiniciei e entrei na minha outra distro pra rodar o reiserfsck.



root@linux:/home/thiago# reiserfsck /dev/sda2
reiserfsck 3.6.19 (2003 www.namesys.com)

************************************************************
** If you are using the latest reiserfsprogs and it fails **
** please email bug reports to reiserfs-list@namesys.com, **
** providing as much information as possible -- your **
** hardware, kernel, patches, settings, all reiserfsck **
** messages (including version), the reiserfsck logfile, **
** check the syslog file for any related information. **
** If you would like advice on using this program, support **
** is available for $25 at www.namesys.com/support.html. **
*************************************************************



Will read-only check consistency of the filesystem on /dev/sda2
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --check started at Sat Aug 29 12:08:33 2009
###########
Replaying journal..
Reiserfs journal '/dev/sda2' in blocks [18..8211]: 0 transactions replayed
Checking internal tree../ 1 (of 5)/ 55 (of 146)/ 90 (of 162)block 511249: The number of items (49) is incorrect, should be (44)
the problem in the internal node occured (511249), whole subtree is skipped
finished
Comparing bitmaps..vpf-10640: The on-disk and the correct bitmaps differs.
Bad nodes were found, Semantic pass skipped
1 found corruptions can be fixed only when running with --rebuild-tree
###########
reiserfsck finished at Sat Aug 29 12:19:35 2009
###########


Veja a mensagem abaixo, mostrada pelo comando "sugerido". Ela encoraja a usá-lo ou desanima?
Mas como meu sistema de arquivos estava inutilizável, e eu faço sincronizo meus dados mais importantes com o pendrive, decidi arriscar. Veja a saída do "rebuild tree" abaixo.


root@linux:/home/thiago# reiserfsck --rebuild-tree /dev/sda2
reiserfsck 3.6.19 (2003 www.namesys.com)

*************************************************************
** Do not run the program with --rebuild-tree unless **
** something is broken and MAKE A BACKUP before using it. **
** If you have bad sectors on a drive it is usually a bad **
** idea to continue using it. Then you probably should get **
** a working hard drive, copy the file system from the bad **
** drive to the good one -- dd_rescue is a good tool for **
** that -- and only then run this program. **
** If you are using the latest reiserfsprogs and it fails **
** please email bug reports to reiserfs-list@namesys.com, **
** providing as much information as possible -- your **
** hardware, kernel, patches, settings, all reiserfsck **
** messages (including version), the reiserfsck logfile, **
** check the syslog file for any related information. **
** If you would like advice on using this program, support **
** is available for $25 at www.namesys.com/support.html. **
*************************************************************

Will rebuild the filesystem (/dev/sda2) tree
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
Replaying journal..
Reiserfs journal '/dev/sda2' in blocks [18..8211]: 0 transactions replayed
###########
reiserfsck --rebuild-tree started at Sat Aug 29 12:27:23 2009
###########

Pass 0:
####### Pass 0 #######
Loading on-disk bitmap .. ok, 4102100 blocks marked used
Skipping 8348 blocks (super block, journal, bitmaps) 4093752 blocks will be read
0%...block 511249: The number of items (49) is incorrect, should be (44) - corrected
block 511249: The free space (65428) is incorrect, should be (272) - corrected
.20%....40%....block 2659991: The number of items (4864) is incorrect, should be (1) - corrected
block 2659991: The free space (17168) is incorrect, should be (4048) - corrected
pass0: vpf-10210: block 2659991, item 0: The item with wrong offset or length found [1124073616 4997411 0x443000091921500 DRCT (2)], len 0 - deleted
60%....80%.block 3767806: The number of items (34) is incorrect, should be (1) - corrected
block 3767806: The free space (0) is incorrect, should be (208) - corrected
pass0: vpf-10110: block 3767806, item (0): Unknown item type found [738197760 100663296 0x100 ??? (15)] - deleted
...100% left 0, 948 /sec
471878 directory entries were hashed with "r5" hash.
"r5" hash is selected
Flushing..finished
Read blocks (but not data blocks) 4093752
Leaves among those 102883
- leaves all contents of which could not be saved and deleted 2
Objectids found 473918

Pass 1 (will try to insert 102881 leaves):
####### Pass 1 #######
Looking for allocable blocks .. finished
0%....20%....40%....60%....80%....100% left 0, 102 /sec
Flushing..finished
102881 leaves read
101989 inserted
892 not inserted
####### Pass 2 #######

Pass 2:
0%....20%....40%....60%....80%....100% left 0, 63 /sec
Flushing..finished
Leaves inserted item by item 892
Pass 3 (semantic):
####### Pass 3 #########
/rootrebuild_semantic_pass: The entry [937791 2116061] (".ooo3") in directory [2 937791] points to nowhere - is removed
/rootrebuild_semantic_pass: The entry [937791 1641346] (".xauthmcM6zY") in directory [2 937791] points to nowhere - is removed
/rootrebuild_semantic_pass: The entry [937791 2116129] (".xauth6yTJqP") in directory [2 937791] points to nowhere - is removed
vpf-10650: The directory [2 937791] has the wrong size in the StatData (2904) - corrected to (2816)
Flushing..finished
Files found: 407305
Directories found: 44901
Symlinks found: 8954
Others: 5161
Names pointing to nowhere (removed): 3
Pass 3a (looking for lost dir/files):
####### Pass 3a (lost+found pass) #########
Looking for lost directories:
/2116061_2121082get_next_directory_item: The entry ".." of the directory [2116061 2121082] pointes to [937791 2116061], instead of [2 6] - corrected
Looking for lost files:3 /sec
rewrite_file: 1 items of file [937791 1388584] moved to [937791 7]
rewrite_file: 2 items of file [937791 1388676] moved to [937791 8]
Flushing..finished
Objects without names 3
Dirs linked to /lost+found: 1
Files linked to /lost+found 2
Objects having used objectids: 2
files fixed 2
Pass 4 - finished done 102553, 85 /sec
Deleted unreachable items 1
Flushing..finished
Syncing..finished
###########
reiserfsck finished at Sat Aug 29 14:16:18 2009
###########


Levou entre duas e três horas para que o processo terminasse, mas minha instalação, aparentemente está normal agora.