Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[system] fsck.reiserfs marche pas en bad block
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
alpha_one_x86
Guru
Guru


Joined: 29 Oct 2006
Posts: 544

PostPosted: Sun Nov 19, 2006 8:30 am    Post subject: [system] fsck.reiserfs marche pas en bad block Reply with quote

Quote:
fsck.reiserfs --check -B /dev/sda1
Usage: fsck.reiserfs [mode] [options] device

Modes:
--check consistency checking (default)
--fix-fixable fix corruptions which can be fixed without
--rebuild-tree
--rebuild-sb super block checking and rebuilding if needed
(may require --rebuild-tree afterwards)
--rebuild-tree force fsck to rebuild filesystem from scratch
(takes a long time)
--clean-attributes clean garbage in reserved fields in StatDatas
Options:
-j | --journal device specify journal if relocated
-B | --badblocks file file with list of all bad blocks on the fs
-l | --logfile file make fsck to complain to specifed file
-n | --nolog make fsck to not complain
-z | --adjust-size fix file sizes to real size
-q | --quiet no speed info
-y | --yes no confirmations
-V prints version and exits
-a and -p some light-weight auto checks for bootup
-f and -r ignored
Expert options:
--no-journal-available do not open nor replay journal
-S | --scan-whole-partition build tree of all blocks of the device

toc ~ # fsck.reiserfs --check -y /dev/sda1
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/sda1
Will put log info to 'stdout'
###########
reiserfsck --check started at Sun Nov 19 08:57:59 2006
###########
Partition /dev/sda1 is mounted with write permissions, cannot check it


J'arrive pas a faire un check des secteur defecteur, meme le disk dur non monter.
Back to top
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Sun Nov 19, 2006 10:15 am    Post subject: Reply with quote

regarde ici : https://forums.gentoo.org/viewtopic-t-507839-highlight-badblocks.html a priori fsck.reiserfs est dans le cas que moi je cite.
Back to top
View user's profile Send private message
alpha_one_x86
Guru
Guru


Joined: 29 Oct 2006
Posts: 544

PostPosted: Sun Nov 19, 2006 10:36 am    Post subject: Reply with quote

Je peu pas me permettre de reformater tout mon disk dur.
Back to top
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Sun Nov 19, 2006 11:40 am    Post subject: Reply with quote

Et????
Back to top
View user's profile Send private message
alpha_one_x86
Guru
Guru


Joined: 29 Oct 2006
Posts: 544

PostPosted: Sun Nov 19, 2006 12:06 pm    Post subject: Reply with quote

la commande:
Code:
fsck.reiserfs --check -B /dev/sda1
ne marche pas, meme appartir d'un livecd.
Et avec le lien il y a la soluce mais que en reformatant.
Back to top
View user's profile Send private message
sireyessire
Advocate
Advocate


Joined: 20 Mar 2003
Posts: 2991
Location: back in Paris, France

PostPosted: Sun Nov 19, 2006 12:10 pm    Post subject: Reply with quote

il me semble que:
man reiserfsck wrote:

--badblocks file, -B file
This option sets the badblock list to be the list of blocks specified in the given `file`. The filesystem badblock
list is cleared before the new list is added. It can be used with --fix-fixable to fix the list of badblocks (see
debugreiserfs -B). If the device has bad blocks, every time it must be given with the --rebuild-tree option.


ça veuille dire qu'il faut que tu lances badblocks avant en demandant un fichier en outpout. Ce dit fichier tu le donneras en paramètre à reiserfsck après l'option -B ou --badblocks.

Sinon badblocks je l'ai toujours utilisé en détruisant toutes les données du disque mais il existe un mode si je ne m'abuse qui est dit non destructif pour les données (l'option -n)
man badblocks wrote:
-n Use non-destructive read-write mode. By default only a non-destructive read-only test is done. This option must not be combined with the -w option, as they are mutually exclusive.


Enjoy
_________________
I never think of the future. It comes soon enough.
Albert Einstein

Try simpler first
Shockley
Back to top
View user's profile Send private message
alpha_one_x86
Guru
Guru


Joined: 29 Oct 2006
Posts: 544

PostPosted: Sun Nov 19, 2006 5:57 pm    Post subject: Reply with quote

Alors je peu avoir la commande, car la mon hdd a de gros blem et je peu pas reformater.

La je cherche mais j'ai plus le temp de chercher car mon hdd vas me lancher et il fait des bruits trés bizar, merci pour ce qui me donne la commande, car j'ai pas compris le post + haut.
Back to top
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Sun Nov 19, 2006 6:34 pm    Post subject: Reply with quote

Code:
badblocks -n -o mauvais_blocs && fsck.reiserfs -B mauvais_blocs /dev/sda1


pourtant mon post dans le lien filé et celui de sireyessire, ça me parraissait difficle d'être plus clair, c'est quand même pas à nous d'aller lire les manpages pour trouver les noms d'options... :roll:


Last edited by Enlight on Sun Nov 19, 2006 6:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
alpha_one_x86
Guru
Guru


Joined: 29 Oct 2006
Posts: 544

PostPosted: Sun Nov 19, 2006 6:38 pm    Post subject: Reply with quote

desoler j'avais pas compris, mais defois j'ai du mal a comprendre des truc simple, merci pour ton aide.
Back to top
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Sun Nov 19, 2006 8:39 pm    Post subject: Reply with quote

ça a sauvé ton disque au moins?
Back to top
View user's profile Send private message
alpha_one_x86
Guru
Guru


Joined: 29 Oct 2006
Posts: 544

PostPosted: Mon Nov 20, 2006 9:23 am    Post subject: Reply with quote

la commande:
Code:
badblocks -n -v -o mauvais_blocs

rester bloquer sur le random ..., et creer pas fichier, mon disk a fait une grosse chute et j'espere pouvoir en acheter un au + vite.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum