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, 06: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, 06:34 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,819
Blog Entries: 1

Rep: Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209
How did you format it and what filesystem you keep formatting it into?
 
Old 06-28-2014, 07: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, 08:36 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,819
Blog Entries: 1

Rep: Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209
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, 08:41 AM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,076

Rep: Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861
i have good results using gparted to delete/create ext2 partitions.
 
Old 06-28-2014, 11:16 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,536

Rep: Reputation: 1708Reputation: 1708Reputation: 1708Reputation: 1708Reputation: 1708Reputation: 1708Reputation: 1708Reputation: 1708Reputation: 1708Reputation: 1708Reputation: 1708
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, 01:08 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,056

Rep: Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468
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 09:47 AM
[SOLVED] Formatting an 8GB usb stick mike11 Linux - Newbie 2 10-24-2011 09:39 PM
Formatting a USB memory stick Chriscrof Linux - Newbie 4 05-01-2010 03:31 AM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM
Formatting my USB stick with ext3 makes stuff crash Khang Linux - Hardware 0 02-20-2005 07:11 PM


All times are GMT -5. The time now is 11:49 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