View previous topic :: View next topic |
Author |
Message |
alpha_one_x86 Guru
Joined: 29 Oct 2006 Posts: 544
|
Posted: Sun Nov 19, 2006 8:30 am Post subject: [system] fsck.reiserfs marche pas en bad block |
|
|
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 |
|
|
Enlight Advocate
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
|
Back to top |
|
|
alpha_one_x86 Guru
Joined: 29 Oct 2006 Posts: 544
|
Posted: Sun Nov 19, 2006 10:36 am Post subject: |
|
|
Je peu pas me permettre de reformater tout mon disk dur. |
|
Back to top |
|
|
Enlight Advocate
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Sun Nov 19, 2006 11:40 am Post subject: |
|
|
Et???? |
|
Back to top |
|
|
alpha_one_x86 Guru
Joined: 29 Oct 2006 Posts: 544
|
Posted: Sun Nov 19, 2006 12:06 pm Post subject: |
|
|
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 |
|
|
sireyessire Advocate
Joined: 20 Mar 2003 Posts: 2991 Location: back in Paris, France
|
Posted: Sun Nov 19, 2006 12:10 pm Post subject: |
|
|
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 |
|
|
alpha_one_x86 Guru
Joined: 29 Oct 2006 Posts: 544
|
Posted: Sun Nov 19, 2006 5:57 pm Post subject: |
|
|
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 |
|
|
Enlight Advocate
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Sun Nov 19, 2006 6:34 pm Post subject: |
|
|
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...
Last edited by Enlight on Sun Nov 19, 2006 6:39 pm; edited 1 time in total |
|
Back to top |
|
|
alpha_one_x86 Guru
Joined: 29 Oct 2006 Posts: 544
|
Posted: Sun Nov 19, 2006 6:38 pm Post subject: |
|
|
desoler j'avais pas compris, mais defois j'ai du mal a comprendre des truc simple, merci pour ton aide. |
|
Back to top |
|
|
Enlight Advocate
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Sun Nov 19, 2006 8:39 pm Post subject: |
|
|
ça a sauvé ton disque au moins? |
|
Back to top |
|
|
alpha_one_x86 Guru
Joined: 29 Oct 2006 Posts: 544
|
Posted: Mon Nov 20, 2006 9:23 am Post subject: |
|
|
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 |
|
|
|