LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-28-2014, 07:32 AM   #1
singh016
LQ Newbie
 
Registered: Jun 2014
Posts: 6

Rep: Reputation: Disabled
Formatting a USB stick


I had a 16 GB USB pen drive. For some purpose I had to format it again and again. When I checked the capacity of the stick today, I found out that the used memory is NULL but the free memory was gone down to 986 MB.

What really could have happened?
And how can I get back 15 GB space of my pen drive?
 
Old 06-28-2014, 07:34 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
How did you format it and what filesystem you keep formatting it into?
 
Old 06-28-2014, 08:42 AM   #3
singh016
LQ Newbie
 
Registered: Jun 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
I used this command in linux :

sudo mkfs.vfat -I /dev/sdc1
 
Old 06-28-2014, 09:36 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Ok, you're using FAT for that. If you are using a Windows file system, have you tried to format it from Windows?

Have you removed all other partitions from it? what does 'fdisk -l /dev/sdc say?
 
Old 06-28-2014, 09:41 AM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
i have good results using gparted to delete/create ext2 partitions.
 
Old 06-28-2014, 12:16 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,938

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Inferring from your other post that if you you copied an image via the dd command to the drive and if that image was only 996MB then your drive will appear to be the same size.

The easiest fix would be to delete and recreate the partition table.
 
Old 06-28-2014, 02:08 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
mark or buy colored usb drives and label them a FAT
using your ( or your GF's/wife's) nail polish WORKS
for working with windows

for the rest format them to ext4
and keep them that format
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hauppauge wintv-hvr h006 - dvb-t tuner - usb-stick - hybrid tv stick Xeratul Linux - Hardware 5 12-23-2012 10:47 AM
[SOLVED] Formatting an 8GB usb stick mike11 Linux - Newbie 2 10-24-2011 10:39 PM
Formatting a USB memory stick Chriscrof Linux - Newbie 4 05-01-2010 04:31 AM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 12:12 PM
Formatting my USB stick with ext3 makes stuff crash Khang Linux - Hardware 0 02-20-2005 08:11 PM


All times are GMT -5. The time now is 03:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration