LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-22-2012, 05:03 AM   #1
Nyyr
LQ Newbie
 
Registered: Nov 2012
Posts: 9

Rep: Reputation: Disabled
Question Kernel/driver parameter to limit (S)ATA disk bad sector read retries?


Hello!

I have RAID1 mdadm setup (2 SATA disks) on Ubuntu 11.10 and one of the disks during boot causes system to freeze trying to read from the disk. After half an hour of waiting I had to reset the PC. When I change BIOS settings to boot from the other disk of the RAID1, it ends the same way.
(I then managed to run SeaTools and repair the disk (by reallocating unreadable sectors I guess) and now it is OK.)
So is there a way to tell kernel/driver to report the disk as failed after the first unsuccessful attempt to read the bad sector?
 
Old 11-25-2012, 11:06 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,147

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
You sure that's what's going on? No BIOS knows how to boot from Linux software RAID. That means you need to be booting to RAID-enabled GRUB, a copy of which has been installed on each disk in your RAID 1. GRUB will have to assemble and boot from your RAID. There are many variables involved:
  • Are you using GRUB or GRUB-2?
  • Are you using DOS partitions or GPT?

Here's a typical procedure for non-GPT boot:
http://www.texsoft.it/index.php?c=ha...d-squeeze&l=it
 
Old 11-27-2012, 10:08 AM   #3
Nyyr
LQ Newbie
 
Registered: Nov 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Yes, I´m sure what´s going on. It doesn´t matter what version of grub I´m using and partition type it not involved at all!!!
I suggest that you read CAREFULLY my post before replying. I said it freezes DURING boot and NOT that it doesn´t boot at all!!!

Even when not using RAID at all, the system should report an error reading disk and not stay stuck trying to read a bad sector for a half of an hour !!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using a USB to ATA adaptor to read a disk in slackware gives kernel panic msgs nass Slackware 7 08-03-2012 10:45 AM
How to recover a hard disk bad sector? carlatf Linux - Hardware 3 01-09-2012 04:54 PM
How to configure disk as one partition on HPdv8000 also..(Getting bad sector errors) er.rigney Linux - Laptop and Netbook 3 06-09-2010 09:21 AM
hard disk bad sector detection arunka Linux - Hardware 2 02-15-2006 01:28 AM
work around a bad disk sector cyclist Linux - Software 1 09-25-2001 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration