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

want to use "badblocks -wsvf -p 2" in anaconda installer 10.4.X.X on CentOS 4.4



hi
I want to use badblocks  -wvf  -p 2   .

That is badblocks with read &write destructive test & passes 2 times.

my ks.cfg
part -- --badblocks / --fstype ext3  --size=400 --asprimary

I tried to change fsset.py.
 fsset.py

 176     def badblocksDevice(self, entry, windowCreator, chroot='/'):
    177         if windowCreator:
    178             w = windowCreator(_("Checking for Bad Blocks"),
    179                               _("Checking for bad blocks on /dev/%s...")
    180                          % (entry.device.getDevice(),), 100)
    181         else:
    182             w = None
    183
    184         devicePath = entry.device.setupDevice(chroot)
    185         args = [ "/usr/sbin/badblocks", " -svwf", devicePath ]
    186
________________________________________________________________
  throw me following error.
How to fix it ?
Need help
-----------------------------------------------------
Traceback (most recent call last ):
  File "/usr/lib/anaconda/gui.py", line 1024, in handldeRenderCallback
    self.currentWindow.renderCallback()
File "/usr/lib/anaconda/iw/progress_gui.py", line 242, in renderCallback
    self.inf.icw.nextClicked()
File "/usr/lib/anaconda/gui.py", line 789, in nextClicked
    self.dispatch.gotoNext()
File "/usr/lib/anaconda/dispatch.py", line 171, in gotoNext
    self.moveStep()
File "/usr/lib/anaconda/dispatch.py", line 239, in moveStep
    rc = apply(func, self.bindArgs(args))
File "/usr/lib/anaconda/dispatch.py", line 568, in turnOnFilesystem
     thefsset.checkBadblocks(insPath)
File "/usr/lib/anaconda/fsset.py", line 1409, in checkBadblocks
    self.badblocksEntry(entry, chroot)
File "/usr/lib/anaconda/fsset.py", line 1386, in badblocksEntry
    entry.fsystem.badblocksDevice(entry, self.progressWindow, chroot)
File "/usr/lib/anaconda/fsset.py", line 230,in badblocksDevice
   val = (long l[0] * 100) / long(l[1])
ValueErro:invalid literal for long () : Reading and comparing : 0
----------------------------------------------------------------------------




Thanks & regards,
Parimal



--
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.6 (GNU/Linux)

mIsERzf5dgEEAOETNneNJpRr9jDQWhPOO56Fd1VkD7HsSJMUJEnHDLex1lZhwCDq
A8G71H5T0Ccr752RSitD686K9zc59K6oMHEKs5DPPYA6JSNF/5/wIfHPdhy9IXwG
ga+SiopBHDXbA/g+9IYo88yaDBaaRWN0sdCoArAIw9PJutMbsyivtDMvAAYptEJQ
YXJpbWFsIChUaGlzIGlzIFBhcmltYWwnIGdwZyBrZXkuKSA8cGFyaW1hbC5zYXJk
YXJAdWZvbW92aWV6LmNvbT6IugQTAQIAJAUCRzf5dgIbAwUJABJ1AAYLCQgHAwID
FQIDAxYCAQIeAQIXgAAKCRBIe8snWGuNWSL4BADCUQ+NodPQR/a9IoiSU5P94nFm
LNNKbwiIzzI1iiUUvDQcIvCGRIzfyd+Mnsf/Cq5Hx7VpQuwm7/4vxUEjL908JLXa
cf1bF/LOaPc2gyp6QNOH+moSGu1zGWbPZ5HeNpNTk3K0exxAY6bYiOSSc7QKQVoz
uvieByhlWKd8pVhn6w==
=tIAO
-----END PGP PUBLIC KEY BLOCK-----
[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]