Страница 1 из 1

how to fix hard derive on Linux

Добавлено: 27 апр 2010, 09:02
dima
Hello all.

I have WD 160Gb hard drive with Kubuntu 9.10 installed on it. HD has bad sectors (or some defects).

Questions:
1. how to check and mark bad sectors on HD?
2. how to format disk (and hopefully check and mark each sector)?

I am ready to loose all data on HD.

thx

Re: how to fix hard derive on Linux

Добавлено: 27 апр 2010, 09:17
Stanislav
fsck - проверка файловой системы, но не уверен насчет бэд блоков.
mkfs / mkfs.ext3 / mkfs.ext4 - форматирование.
А с чего вы решили, что у вас бэд блоки?
Комп вообще работает? Посмотрите репозиторий - может там есть что-нить, да еще может и с ГУем...

Re: how to fix hard derive on Linux

Добавлено: 27 апр 2010, 09:36
dima
Stanislav писал(а):fsck - проверка файловой системы, но не уверен насчет бэд блоков.
mkfs / mkfs.ext3 / mkfs.ext4 - форматирование.
А с чего вы решили, что у вас бэд блоки?
Комп вообще работает? Посмотрите репозиторий - может там есть что-нить, да еще может и с ГУем...
Before installation I checked DVD for errors (no errors).
During installation (use all drive option) I got error "Failed to write to disk", "Skip" button was available, so I skipped.
It was OK until yesterday, then I got some signals from KDE, apt-get, bash crashed ....

fsck checks only file system integrity. I already runs it (when boot from live CD), It found some nodes issues and "fixed", didn't help.

Re: how to fix hard derive on Linux

Добавлено: 27 апр 2010, 09:58
Stanislav
Вспомнил! Norton GHost.

Re: how to fix hard derive on Linux

Добавлено: 27 апр 2010, 11:18
dima
Stanislav писал(а):Вспомнил! Norton GHost.
I downloaded iso with diagnostic tools from WD site.

Re: how to fix hard derive on Linux

Добавлено: 27 апр 2010, 12:26
Groundhog
Ищещ где блохие секторы сидят и ждут вас.
Делаещ партишон так чтобы минимумом покрыть
зону с плохими секторами.
НЕ используешь ЭТОТ раздел.

Re: how to fix hard derive on Linux

Добавлено: 28 апр 2010, 06:06
dima
hmm. this is what happened.

I check disk manufacture info and downloaded from WD site diagnostic tool. I made bootable diskette using this tool and boot machine up.
I run quick test - no errors reported (6 minutes).
I run full test - no errors reported (50 minutes)
I swap the disk (write 0x00 into all disk) - no errors reported (runs overnight)

This morning I try to install kubuntu 9.10 from DVD (run test media first - no errors) and got same error (failed to write to disk).
This time it was using ext4 partitions.
Also message suggested that it could be problem with media and as possible solution to download image again and burn with low speed.

It looks like I will wait for 1-2 days for 10.04 release and try whole story again.

Any suggestions are welcome.

Re: how to fix hard derive on Linux

Добавлено: 28 апр 2010, 06:34
Stanislav
dima писал(а):hmm. this is what happened.
I check disk manufacture info and downloaded from WD site diagnostic tool. I made bootable diskette using this tool and boot machine up.
I run quick test - no errors reported (6 minutes).
I run full test - no errors reported (50 minutes)
I swap the disk (write 0x00 into all disk) - no errors reported (runs overnight)
Я знал (с) Юрий
dima писал(а): This morning I try to install kubuntu 9.10 from DVD (run test media first - no errors) and got same error (failed to write to disk).
This time it was using ext4 partitions.
Also message suggested that it could be problem with media and as possible solution to download image again and burn with low speed.
It looks like I will wait for 1-2 days for 10.04 release and try whole story again.
Any suggestions are welcome.
Попробуйте ехт3 - ехт4 еще слишком свеженькая... Возможны глюки...
Возможны также глюки с дровами или их отсутствием для данного чипсета в данной версии - оно пытается юзать что-то подходящее и пролетает. :D
Попробуйте последнюю Убунту.

Re: how to fix hard derive on Linux

Добавлено: 28 апр 2010, 07:45
Groundhog
Не в тему.
А зачем вам вообще DVD в современном
Линуксовском компе?
Скрепки что-ли хранить?

Re: how to fix hard derive on Linux

Добавлено: 28 апр 2010, 07:50
Stanislav
Groundhog писал(а):Не в тему.
А зачем вам вообще DVD в современном
Линуксовском компе?
Скрепки что-ли хранить?
Лицензионные кино смотреть!

Re: how to fix hard derive on Linux

Добавлено: 28 апр 2010, 14:14
sys@dmin
На bad blocks можно сканировать и с помощью fsck:

Код: Выделить всё

fsck -c

сканирует и помечает бэды в режиме рид-онли.

Код: Выделить всё

fsck -c -c
сканирует в рид-райт.

Про инсталяцию не подскажу :( Может контроллер или рам(?)

Re: how to fix hard derive on Linux

Добавлено: 28 апр 2010, 14:25
borei
man -k badblocks
google "linux badblock"

Re: how to fix hard derive on Linux

Добавлено: 30 апр 2010, 12:31
dima
I got it work now. The problem was in RAM.