ext4: я могу как-нибудь ручками пометить заданные блоки как bad blocks?
От: dimgel Россия https://github.com/dimgel
Дата: 17.11.13 08:28
Оценка:
Hi all. Сабж. Т.е. у меня есть список номеров блоков, и мне их надо добавить в bad blocks inode (или как оно там).
Re: ext4: я могу как-нибудь ручками пометить заданные блоки как bad blocks?
От: Doom100500 Израиль  
Дата: 17.11.13 11:36
Оценка: 6 (1)
Здравствуйте, dimgel, Вы писали:

D>Hi all. Сабж. Т.е. у меня есть список номеров блоков, и мне их надо добавить в bad blocks inode (или как оно там).


man fsck.ext4
-l filename
Add the block numbers listed in the file specified by filename
to the list of bad blocks. The format of this file is the same
as the one generated by the badblocks(8) program. Note that the
block numbers are based on the blocksize of the filesystem.
Hence, badblocks(8) must be given the blocksize of the filesys-
tem in order to obtain correct results. As a result, it is much
simpler and safer to use the -c option to e2fsck, since it will
assure that the correct parameters are passed to the badblocks
program.

-L filename
Set the bad blocks list to be the list of blocks specified by
filename. (This option is the same as the -l option, except the
bad blocks list is cleared before the blocks listed in the file
are added to the bad blocks list.)


OHO?
Спасибо за внимание
Re[2]: ext4: я могу как-нибудь ручками пометить заданные блоки как bad blocks?
От: dimgel Россия https://github.com/dimgel
Дата: 17.11.13 11:56
Оценка:
Здравствуйте, Doom100500, Вы писали:

D>man fsck.ext4

D>...
D>OHO?

О, точно. Глазки мои вчерашние. Спасибо!
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.