Find the answer to your Linux question:
Results 1 to 5 of 5
I have a 2Gb DT Kingston secure USB stick which somehow I have contrived to partially reformat using Gparted - however it now only shows 15Mb of unallocated space and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    5

    Can't reformat USB stick drive


    I have a 2Gb DT Kingston secure USB stick which somehow I have contrived to partially reformat using Gparted - however it now only shows 15Mb of unallocated space and that's it - I cannot seem to get the full empty 2Gb back again.

    Is it because it used to have windows based secure software on it - has it 'locked down' the drive so it's now useless?

    I just want to have 2Gb of EXT type space!

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    478
    with the stick inserted, try

    fdisk -l

    should show the name--sda, or sdb or whatever: suppose sda

    fdisk /dev/sda

    p: shows existing partitions
    d: to delate one by one
    w: to writeback with no partitions
    q: to quit

    then do it again with fdisk

    fdisk /dev/hda

    n: to make new partition
    p: primary
    1: first
    (accept defaults)
    w:
    q:

    then make a file system

    fsck.ext3 /dev/sda

    should have you up and running again
    the sun is new every day (heraclitus)

  3. #3
    Just Joined!
    Join Date
    Oct 2009
    Posts
    5
    I checked the device in Gparted - it's definitely hdd, yet I get:

    ed@ed-desktop ~ $ fdisk /dev/hdd

    Unable to open /dev/hdd

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,662
    You cannot format a mounted drive. You need to umount it first, then you can repartition and/or reformat it.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #5
    Just Joined!
    Join Date
    Oct 2009
    Posts
    5
    it's not mounted as none of it is allocated

    it just seems odd that it used to be 2Gb, and now it only shows 15Mb total

Posting Permissions

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