como recuperar o jornal do ext3?
Fala galera, como tá as coisa??
pessoal, seguinte:
tenho uma partição aqui q usava o conectiva 10 (hda5), e qdo passava o fsck aparecia 3,5% (non-contiguous) e coisa e tal...
então procurei um desfragmentador na net e vi um tal de "defrag"...
executei o e2defrag na partição, e depois q terminou executei o fsck -fv no hda5, e apareceu uma porrada de erro, ele fez um monte de coisa...
mas qdo fui montar a unidade apareceu "EXT3-fs: journal inode is deleted."...
e não sei como recuperar isso...
depois que dei um reboot nao encontrou o grub, então peguei o cd do conectiva e reinstalei o grub, mas pra isso ele pegou o arquivo menu.lst do hda5, se o cd conseguiu acessar esta partição é pq tem como montar ela, né???
e como faz isso????
alguém sabe como fazer pra montar mesmo sem o jornal ou pra recuparar o jornal???
valeu
[]ś
Re: como recuperar o jornal do ext3?
galera... seguinte...
esqueci de colocar isso.. é o que aparece qdo manda montar como ext3
Código :
mount -t ext3 /dev/hda5 /mnt/hda5/
mount: wrong fs type, bad option, bad superblock on /dev/hda5,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
mas depois de bater a cabeça um pouco eu lembrei q a diferença do ext2 pro ext3 é o jornal, então montei como ext2 e funcionou...
vendo a manpage do mount, onde fala sobre ext3, tem algumas opções sobre montagem, tentei usar tais opções mas nao adiantou... :(
Mount options for ext3
The `ext3' file system is a version of the ext2 file system which has been enhanced with journalling. It supports the same options as ext2 as well as the following additions:
journal=update
Update the ext3 file system's journal to the current format.
journal=inum
When a journal already exists, this option is ignored. Otherwise, it specifies the number of the inode which will represent the ext3 file system's journal file; ext3 will create a new journal, overwriting the old contents of the file whose inode number is inum.
noload
Do not load the ext3 file system's journal on mounting.
data=journal / data=ordered / data=writeback
Specifies the journalling mode for file data. Metadata is always journaled. To use modes other than ordered on the root file system, pass the mode to the kernel as boot parameter, e.g. rootflags=data=journal.
journal
All data is committed into the journal prior to being written into the main file system.
ordered
This is the default mode. All data is forced directly out to the main file system prior to its metadata being committed to the journal.
writeback
Data ordering is not preserved - data may be written into the main file system after its metadata has been committed to the journal. This is rumoured to be the highest-throughput option. It guarantees internal file system integrity, however it can allow old data to appear in files after a crash and journal recovery.
commit=nrsec
Sync all data and metadata every nrsec seconds. The default value is 5 seconds. Zero means default.
uma maneira deve haver de recuperar o tal jornal... hehehe
valeu
Re: como recuperar o jornal do ext3?
LucianoGF
Você vai ter que recriar o Journal de sua partição
com a partição desmontada,
execute o seguinte comando:
tune2fs -j /dev/hda5
Espero que resolva
Abraços
Robson
Re: como recuperar o jornal do ext3?
cara...
nao funfo nao...
#tune2fs -j /dev/hda5
e nem
#tune2fs -jf /dev/hda5
aparece a mensagem:
tune2fs -jf /dev/hda5
tune2fs 1.37 (21-Mar-2005)
The filesystem already has a journal.
e nada...
quando manda montar aparece a mensagem:
mount -t ext3 /dev/hda5 /mnt/hda5/
mount: wrong fs type, bad option, bad superblock on /dev/hda5,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
valeu
Re: como recuperar o jornal do ext3?
certo
então tente o seguinte
primeiramente remover o journal de sua partição:
#tune2fs -O ^has_journal /dev/hda5
e depois repita o processo de criação do journal:
#tune2fs -j /dev/hda5
Espero que dessa vez funcione :)
Abraços