how to fix hard derive on Linux

Все, что вы хотели знать о программизме, но боялись спросить.
Ответить
Аватара пользователя
dima
Житель
Сообщения: 690
Зарегистрирован: 19 фев 2003, 19:26
Откуда: Хабаровск->Toronto

how to fix hard derive on Linux

Сообщение 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
Аватара пользователя
Stanislav
Mr. Minority Report
Сообщения: 45331
Зарегистрирован: 19 окт 2005, 16:33
Откуда: Moscow - Richmond - New Wesт - Burnaby - PoCo

Re: how to fix hard derive on Linux

Сообщение Stanislav »

fsck - проверка файловой системы, но не уверен насчет бэд блоков.
mkfs / mkfs.ext3 / mkfs.ext4 - форматирование.
А с чего вы решили, что у вас бэд блоки?
Комп вообще работает? Посмотрите репозиторий - может там есть что-нить, да еще может и с ГУем...
Аватара пользователя
dima
Житель
Сообщения: 690
Зарегистрирован: 19 фев 2003, 19:26
Откуда: Хабаровск->Toronto

Re: how to fix hard derive on Linux

Сообщение 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.
Аватара пользователя
Stanislav
Mr. Minority Report
Сообщения: 45331
Зарегистрирован: 19 окт 2005, 16:33
Откуда: Moscow - Richmond - New Wesт - Burnaby - PoCo

Re: how to fix hard derive on Linux

Сообщение Stanislav »

Вспомнил! Norton GHost.
Аватара пользователя
dima
Житель
Сообщения: 690
Зарегистрирован: 19 фев 2003, 19:26
Откуда: Хабаровск->Toronto

Re: how to fix hard derive on Linux

Сообщение dima »

Stanislav писал(а):Вспомнил! Norton GHost.
I downloaded iso with diagnostic tools from WD site.
Аватара пользователя
Groundhog
Графоман
Сообщения: 5099
Зарегистрирован: 20 авг 2005, 16:36
Откуда: Vancouver

Re: how to fix hard derive on Linux

Сообщение Groundhog »

Ищещ где блохие секторы сидят и ждут вас.
Делаещ партишон так чтобы минимумом покрыть
зону с плохими секторами.
НЕ используешь ЭТОТ раздел.
Аватара пользователя
dima
Житель
Сообщения: 690
Зарегистрирован: 19 фев 2003, 19:26
Откуда: Хабаровск->Toronto

Re: how to fix hard derive on Linux

Сообщение 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.
Аватара пользователя
Stanislav
Mr. Minority Report
Сообщения: 45331
Зарегистрирован: 19 окт 2005, 16:33
Откуда: Moscow - Richmond - New Wesт - Burnaby - PoCo

Re: how to fix hard derive on Linux

Сообщение 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
Попробуйте последнюю Убунту.
Аватара пользователя
Groundhog
Графоман
Сообщения: 5099
Зарегистрирован: 20 авг 2005, 16:36
Откуда: Vancouver

Re: how to fix hard derive on Linux

Сообщение Groundhog »

Не в тему.
А зачем вам вообще DVD в современном
Линуксовском компе?
Скрепки что-ли хранить?
Аватара пользователя
Stanislav
Mr. Minority Report
Сообщения: 45331
Зарегистрирован: 19 окт 2005, 16:33
Откуда: Moscow - Richmond - New Wesт - Burnaby - PoCo

Re: how to fix hard derive on Linux

Сообщение Stanislav »

Groundhog писал(а):Не в тему.
А зачем вам вообще DVD в современном
Линуксовском компе?
Скрепки что-ли хранить?
Лицензионные кино смотреть!
sys@dmin
Частый Гость
Сообщения: 21
Зарегистрирован: 16 июл 2008, 18:33
Откуда: Toronto

Re: how to fix hard derive on Linux

Сообщение sys@dmin »

На bad blocks можно сканировать и с помощью fsck:

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

fsck -c

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

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

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

Про инсталяцию не подскажу :( Может контроллер или рам(?)
borei
Графоман
Сообщения: 5103
Зарегистрирован: 18 авг 2008, 14:51

Re: how to fix hard derive on Linux

Сообщение borei »

man -k badblocks
google "linux badblock"
Аватара пользователя
dima
Житель
Сообщения: 690
Зарегистрирован: 19 фев 2003, 19:26
Откуда: Хабаровск->Toronto

Re: how to fix hard derive on Linux

Сообщение dima »

I got it work now. The problem was in RAM.
Ответить