Am 2006-05-20 18:40:36, schrieb Serena Cantor: > I write a Java program to read a file that is on bad > sector, when the program read bad sector, Linux kernel > take very long time unsuccessfully reading. > > I wish use ramdon bits to replace data on bad sector > when reading files. how to do it? Thanks!
You can not read defective sectors via the kernel directly. You need RAW-ACCESS (ther is a kernel-option for it) to the drive and THEN you can access the sectors, but I am not sure, it can be done from Java. From a C Program it works perfectly as I have allready done this before. Greetings Michelle Konzack -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##################### Debian GNU/Linux Consultant ##################### Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]