[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Как с загрузкой ОС, автоматически, запустить проверку ЖМД на плохие блоки?



On Sun, 22 Feb 2015, Ста Деюс wrote:

Доброго времени суток, alexander.


Спасибо за ответ, Fri, 20 Feb 2015 15:09:19 +0300, вы писали:
но программа требует терминала

$ man -P cat fsck.ext2 | grep -i -A 6 'auto'
       -p     Automatically repair ("preen") the file system.  This
option will cause e2fsck  to  auto‐ matically  fix  any  filesystem
problems that can be safely fixed without human interven‐ tion.  If
e2fsck discovers a problem which may require the system
administrator  to  take additional  corrective  action,  e2fsck  will
print a description of the problem and then exit with the value 4
logically or'ed into the exit code.  (See the EXIT  CODE  section.)
This  option  is  normally used by the system's boot scripts.  It may
not be specified at the same time as the -n or -y options.

Не работает. :о(

  Что именно не работает? man?

  Посмотрите как в /etc/init.d/checkfs.sh вызов fsck реализован.
  И нет ли в логах:
        "Running on battery power, so skipping file system check."

  Желаемый период проверки можно изменить:
  tune2fs -c max-mount-counts
  или
  tune2fs -i interval-between-checks
Ю.

Reply to: