Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Peripherals / Hardware > Can't reformat USB stick drive

Forgot Password?
 Peripherals / Hardware   Is your hardware supported? Having trouble getting some hardware working? Post here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 3 Weeks Ago   #1 (permalink)
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!
orange71 is offline  


Reply With Quote
Old 3 Weeks Ago   #2 (permalink)
tpl
Linux User
 
Join Date: Jan 2007
Location: cleveland
Posts: 370
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)
tpl is offline   Reply With Quote
Old 3 Weeks Ago   #3 (permalink)
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
orange71 is offline   Reply With Quote
Old 2 Weeks Ago   #4 (permalink)
Linux Guru
 
Rubberman's Avatar
 
Join Date: Apr 2009
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 2,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.
Rubberman is offline   Reply With Quote
Old 2 Weeks Ago   #5 (permalink)
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
orange71 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:18 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2