Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 64711

Summary: Exception Occured while checking hard disk for bad blocks
Product: [Retired] Red Hat Linux Reporter: Heikki Kiviranta <mafis>
Component: anacondaAssignee: Michael Fulbright <msf>
Status: CLOSED DUPLICATE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: a3333274, cpelz, rh
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-06-17 21:28:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
anaconda crashed on the checking for bad sectors none

Description Heikki Kiviranta 2002-05-09 20:36:51 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Description of problem:
File "/usr/bin/anaconda", line 633m in ? (id, dispatch, configFileData)
File "/usr/lib/anaconda/", line 427, in run dispatch,gotoNext()
File "/usr/lib/anaconda/", line 984, in badblocksEntry
val = (long(l[0]) * 100) / long(l[1])
Value Error: invalid literal for long(): 267840 267841

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Nothing special, just selecting scan for bad blocks at partitioning. Hard disk 
does have bad sectors, and check couldn't get pass them.


Actual Results:  Unhandled exception.

Expected Results:  It should have scanned bad blocks, and marked them. Nothing 

Additional info:

harddisk: Old seagate ~500mb with few bad sectors.

Comment 1 dan 2002-05-10 06:41:03 UTC
Created attachment 56905 [details]
anaconda crashed on the checking for bad sectors

Comment 2 James Johnson 2002-05-10 06:52:35 UTC
I have had the exact same problem. Installed RHL 7.3 on a brand new system
including out of the box HDD. Once I removed the "check for bad blocks",
installed as before it worked fine.

After install i used: badblocks /dev/hda6 and it found three bad blocks.

Here is the anacron output:

Traceback (innermost last):
  File "/usr/bin/anaconda", line 633, in ?, dispatch, configFileData)
  File "/usr/lib/anaconda/", line 353, in run (self.runres, configFileData)
  File "/usr/lib/anaconda/", line 814, in run
    mainloop ()
  File "/usr/lib/python1.5/site-packages/", line 2676, in mainloop
  File "/usr/lib/anaconda/", line 529, in handleRenderCallback
  File "/usr/lib/anaconda/iw/", line 135, in renderCallback
  File "/usr/lib/anaconda/", line 417, in nextClicked
  File "/usr/lib/anaconda/", line 144, in gotoNext
  File "/usr/lib/anaconda/", line 209, in moveStep
    rc = apply(func, self.bindArgs(args))
  File "/usr/lib/anaconda/", line 375, in turnOnFilesystems
  File "/usr/lib/anaconda/", line 1007, in checkBadblocks
    self.badblocksEntry(entry, chroot)
  File "/usr/lib/anaconda/", line 984, in badblocksEntry
    entry.fsystem.badblocksDevice(entry, self.progressWindow, chroot)
  File "/usr/lib/anaconda/", line 210, in badblocksDevice
    l = string.split(num, '/')
TypeError: argument 1: expected read-only character buffer, int found

Comment 3 Jeremy Katz 2002-05-20 19:08:25 UTC
*** Bug 65169 has been marked as a duplicate of this bug. ***

Comment 4 Jeremy Katz 2002-05-20 19:09:49 UTC
*** Bug 65162 has been marked as a duplicate of this bug. ***

Comment 5 Jeremy Katz 2002-05-20 19:10:27 UTC
*** Bug 65151 has been marked as a duplicate of this bug. ***

Comment 6 Michael Fulbright 2002-05-20 19:16:01 UTC
*** Bug 65013 has been marked as a duplicate of this bug. ***

Comment 7 Michael Fulbright 2002-05-20 19:19:57 UTC
*** Bug 64992 has been marked as a duplicate of this bug. ***

Comment 8 Michael Fulbright 2002-06-17 21:27:55 UTC
This error occurs when the badblocks command detects bad blocks on the system. 
The traceback occurred because the output from the badblocks command has
changed, fooling our parser.

If you get this traceback it means you have bad blocks on the drive it was testing.

In the future an error dialog will be presented saying bad blocks have been

Comment 9 Michael Fulbright 2002-06-17 21:31:14 UTC

*** This bug has been marked as a duplicate of 66181 ***

Comment 10 Tom McQueeney 2002-06-19 19:45:33 UTC
Wait a minute.

Does the fact that this bug is closed mean nothing is going to be fixed? I can't
install RedHat 7.3 because of this bug. I have several bad blocks in my hard
disk, but that shouldn't mean the hard disk is unusable. That's the whole point
of scanning for bad blocks -- so they can be marked as "do not use." Heck, DOS
was able to handle the bad blocks. Are you saying this is too complicated for

I would very much appreciate this bug being fixed. I'd like to install 7.3. But
till this bug is fixed, I can't.

Comment 11 Michael Fulbright 2002-06-26 04:59:32 UTC
*** Bug 67478 has been marked as a duplicate of this bug. ***

Comment 12 Michael Fulbright 2002-12-20 17:38:25 UTC
Time tracking values updated