Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th January 2008, 03:27 PM
neogranas Offline
Registered User
 
Join Date: Nov 2006
Location: U.S.A.
Age: 27
Posts: 473
Reformat thumbdrive?

I am sorry if I am asking something that has been explained before, but at work they handed out a bunch of 1GB thumb drives, I was able to pick up two, but when I am stuck. I let a friend use one last night to get a large file home, 700MB and he didn't want to let his DSL download it, we've got a connection to the Sprint backbone at work.

He brought it to me this morning and I deleted the file, but my thumb drive is still showing the space being taken. On top of that it is only recognizing 960MB, but my other is showing 999MB (exact same thumb drive).

I assume something may have gone screwy when he unmounted from his XP machine, but what can I do to salvage it? I don't mind reformatting it, I can copy the files to this computer then do that.

Any have a step by step to reformat or a way to correct it? I checked and it won't let me empty trash on the thumb drive. I checked it in terminal, not seeing the file anywhere.
__________________
Registered linux user: #475337

Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
Reply With Quote
  #2  
Old 25th January 2008, 03:31 PM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
Quote:
Originally Posted by neogranas
I am sorry if I am asking something that has been explained before, but at work they handed out a bunch of 1GB thumb drives, I was able to pick up two, but when I am stuck. I let a friend use one last night to get a large file home, 700MB and he didn't want to let his DSL download it, we've got a connection to the Sprint backbone at work.

He brought it to me this morning and I deleted the file, but my thumb drive is still showing the space being taken. On top of that it is only recognizing 960MB, but my other is showing 999MB (exact same thumb drive).

I assume something may have gone screwy when he unmounted from his XP machine, but what can I do to salvage it? I don't mind reformatting it, I can copy the files to this computer then do that.

Any have a step by step to reformat or a way to correct it? I checked and it won't let me empty trash on the thumb drive. I checked it in terminal, not seeing the file anywhere.
If you want to format it, try gparted.

yum install gparted

Typically, flash drives come formatted as FAT32 or FAT16.

In Fedora, when deleting stuff off thumb drives, make sure you hold down shift and then right click on the file to delete it - otherwise i think it will be send to a trash directory on the thumb drive.
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #3  
Old 25th January 2008, 06:11 PM
neogranas Offline
Registered User
 
Join Date: Nov 2006
Location: U.S.A.
Age: 27
Posts: 473
Thanks for the tips, I was able to delete and make some room, then I realized I didn't have the Show Hidden Files enabled, so I found the stuff that was hogging room and got rid of it, I'd still like to reformat to get the extra 30MB out of it. Gparted is saying it's locked and I can't reformat, I am running as root because it asks for root password when I run it.
__________________
Registered linux user: #475337

Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
Reply With Quote
  #4  
Old 25th January 2008, 07:48 PM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
Quote:
Originally Posted by neogranas
Thanks for the tips, I was able to delete and make some room, then I realized I didn't have the Show Hidden Files enabled, so I found the stuff that was hogging room and got rid of it, I'd still like to reformat to get the extra 30MB out of it. Gparted is saying it's locked and I can't reformat, I am running as root because it asks for root password when I run it.
Ah, sorry. I forgot that trash folders are usually hidden (I assume the directory name was .trash?)

Interesting as far as the lock...

Just a note:

When using the command line to display files, you can use ls -a to display all folders including hidden ones (for example, open up a command line and run ls -a ~/ and then run it without the switch - you might be surprised how many hidden directories are in there). So if you weren't seeing the files when you were looking at the drive from the CLI, that may have been why.

Silly trash concept. I bypass it when possible.

EDIT: as far as that extra 30MB, drives are rarely as big as they're "supposed" to be. I bought a "2GB" PNY flash drive and all my operating systems say it has only about 1.87GB of space available. (Same with my hard drive - it's a 320GB Seagate and I really can only store 298GB on it. Don't know where my 20GB went - maybe somebody smarter than me can enlighten...)
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner

Last edited by forkbomb; 25th January 2008 at 07:51 PM.
Reply With Quote
  #5  
Old 25th January 2008, 08:40 PM
neogranas Offline
Registered User
 
Join Date: Nov 2006
Location: U.S.A.
Age: 27
Posts: 473
I knew about the -a argument, but I didn't see that when I originally tried through terminal. I'm not sure why it didn't show up.

As for the space goes, I'd like to have that extra room simply because there is hardly any software on it, I have another flash drive, exact same model from NewEgg, but it holds ~999MB (though might be 996MB to be realistic). And seeing as about once a week I may be transporting half a gig worth of files (video clips, so a few can take up a lot of room), the extra 30MB would allow for some default work files and give me more room.
__________________
Registered linux user: #475337

Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
Reply With Quote
  #6  
Old 25th January 2008, 09:25 PM
sidebrnz's Avatar
sidebrnz Offline
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,145
There are two reasons the drive shows less space than expected. First, the formatting takes up some of the space. Second, it's quite possible that the drive has 2,000,000,000 bytes of space -- two billion in base 10 -- and your computer is calculating in Gigabytes, using 1,073,741,824 bytes per Gig, or 2,147,483,648 for 2 Gig. If both are true, that might explain the discrepancy.
Reply With Quote
  #7  
Old 26th January 2008, 01:15 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Assuming the device (thumb drive) is seen in fedora as /dev/sdc1

unmount the thumb drive (but don't remove it)

try the following

Code:
fdisk /dev/sdc
type d (to delete) then select 1

then type n (for new) and then select primary

type w to write the partition.

After you're done with fdisk try

Code:
mkfs.vfat /dev/sda1
This should help you reformat the thumb drive however sidebrnz's got a valid point.
Reply With Quote
  #8  
Old 26th January 2008, 02:12 PM
ryptyde Offline
Registered User
 
Join Date: May 2005
Location: Tragic City, Michigan USA
Posts: 1,607
I would open a terminal and enter:
Code:
$ df -h
and that will show you the drives and then you can be sure to choose
the right one to format.
Reply With Quote
  #9  
Old 26th January 2008, 03:12 PM
neogranas Offline
Registered User
 
Join Date: Nov 2006
Location: U.S.A.
Age: 27
Posts: 473
It is a good point, and thanks for the commands, they are what I was looking for. However, as I said before, this is 1 of 2 identical thumb drives. I plugged in my other to be sure, it gets 997MB, this one is getting 968MB now. I'm just trying to find what is causing one to formatted for a higher capacity.
__________________
Registered linux user: #475337

Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
Reply With Quote
Reply

Tags
reformat, thumbdrive

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Thumbdrive is unreadable tmick Using Fedora 9 19th November 2007 04:48 AM
The USB thumbdrive from hell! RedPad Using Fedora 0 17th July 2007 04:15 PM
kde usb thumbdrive Jeff Sadowski Using Fedora 2 12th June 2007 02:16 PM
Cannot mount CD-ROM, DVD, USB thumbdrive, etc. NiteQwill Using Fedora 4 17th February 2006 05:11 PM
fc2 and usb thumbdrive ulitz EOL (End Of Life) Versions 8 6th September 2004 02:22 AM


Current GMT-time: 10:03 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat