Formatting a new drive

Discussion in 'Getting Started' started by sean536, Feb 19, 2014.

  1. sean536

    sean536 New Member

    Messages:
    16
    Likes Received:
    2
    Trophy Points:
    3
    When I buy a new external drive in windows i format it in full format, which formats and identifies bad sectors. In linux when I use gparted or fdisk command it formats in quick way. When i launch badblocks check it takes too much time to complete. What are ways to check for bad sectors and should it be done before or after the formatting?

  2. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,338
    Likes Received:
    445
    Trophy Points:
    83
  3. sean536

    sean536 New Member

    Messages:
    16
    Likes Received:
    2
    Trophy Points:
    3
    The problem is badsector scan takes more than 10 hours to complete. Is there a way to do it by parts? If i write information about bad sectors, will it remain there after reformatting and repartitioning of a drive?
  4. Yesyesloud

    Yesyesloud Active Member

    Messages:
    268
    Likes Received:
    134
    Trophy Points:
    43
    If there's nothing important in it, wiping the disk would probably help.

    E.g.:

    Code:
    dd if=/dev/zero of=/dev/sdx bs=1M
    Replace sdx with your actual device and research how to fine tune dd options according to your needs.

    Also, on the very general Disks tool that comes with several distributions, you can actually perform a "full format" (zeroing the whole drive). Just pick this erase method on format options.

    [​IMG]
  5. pane-free

    pane-free Active Member

    Messages:
    358
    Likes Received:
    83
    Trophy Points:
    28
    One could, perhaps, create an ext2 file system on the partition (/dev/sdaX, for example) using gparted, and then run "fsck -c -f /dev/sdaX" -- which is, more or less, what the ryanvade-provided link suggests
  6. Matesax

    Matesax Member

    Messages:
    56
    Likes Received:
    11
    Trophy Points:
    8
    man parted
    man fsck
    gparted (menu - try recover data)

    Information about disk - "fdisk -l"

Share This Page