Vous n'êtes pas identifié(e).
Entrer la commande en modificant X :
screen /bin/sh -c '/usr/local/diskutils/sbin/badblocks -wv -b 4096 -c 4096 /dev/sdX > /root/badblocks_sdX.log 2>&1'
donc j'envisage de lancer :
mais que signifie la partie finale :
?
merci d'avance.
cordialement.
debianux
Dernière modification par debianux (16-09-2014 10:02:25)
Hors ligne
Je suis aussi sur Twitter et nouvellement sur Diaspora*
Mon blog de geekeries : HAL-9000
(J'applique la règle de proximité)
Hors ligne
First we have to write the location of the bad sectors into a flat file.
sudo badblocks /dev/sdb > /home/zainul/bad-blocks
After that, we need to feed the flat file into the FSCK command to mark these bad sectors as ‘unusable’ sectors.
sudo fsck -l bad-blocks /dev/sdb
serait-ce la raison pour laquelle il faut lancer la commande à l'intérieur du gestionnaire du NAS, synology en l'occurence, pour que "son" fsck soit "informé" ?
Hors ligne
Hors ligne
echo test > afile.txt
..redirects stdout to afile.txt. This is the same as doing..
echo test 1> afile.txt
To redirect stderr, you do..echo test 2> afile.txt
>& is the syntax to redirect a stream to another file descriptor - 0 is stdin. 1 is stdout. 2 is stderr.
You can redirect stdout to stderr by doing..echo test 1>&2# or
echo test >&2
..or vice versa:echo test 2>&1
So, in short.. 2> redirects stderr to an (unspecified) file, appending &1 redirects stderr to stdout
Hors ligne