Fedora Linux Support Community & Resources Center
  #1  
Old 16th October 2012, 01:16 PM
nofxboy1234 Offline
Registered User
 
Join Date: Oct 2012
Location: South Africa
Posts: 6
linuxfedorafirefox
Question usb memory stick showing old data

Hi everyone

I am using Fedora 17 x64.

I recently used the "dd" command to copy an Ubuntu disc image to my 2Gb Verbatime usb stick.
I have now formatted the usb stick with gparted to clear everything and gave it a new volume label name. Now, when I plug it in, Fedora pops up the dialog showing both the old name of the usb stick, and the new name.

When I click on the new name, it shows that the usb is blank which is what I want. When I click on the old name, it shows the old data that I thought was formatted.

How do I get only the new name to show up? Why is this strange behaviour happening? I'm thinking I need to delete the old device file or something, but not too sure.

Any help would be appreciated, thanks
Reply With Quote
  #2  
Old 16th October 2012, 04:03 PM
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 1,138
linuxredhatmozilla
Re: usb memory stick showing old data

Looks like you have two partitions on the stick.
Could you post the output of (if the stick is /dev/sdb)
Code:
fdisk -l /dev/sdb
__________________
:confused:
Reply With Quote
  #3  
Old 16th October 2012, 08:49 PM
nofxboy1234 Offline
Registered User
 
Join Date: Oct 2012
Location: South Africa
Posts: 6
linuxfirefox
Re: usb memory stick showing old data

Hi Skull_One

Thanks for the quick reply!
Here is the output:

[root@oy dpalmboom]# fdisk -l /dev/sdg

Disk /dev/sdg: 2003 MB, 2003828736 bytes
158 heads, 42 sectors/track, 589 cylinders, total 3913728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5136a65c

Device Boot Start End Blocks Id System
/dev/sdg1 2048 3913727 1955840 b W95 FAT32

Thanks!
Reply With Quote
  #4  
Old 17th October 2012, 10:07 AM
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 1,138
linuxredhatmozilla
Re: usb memory stick showing old data

Hum... only one partition... weird....
I have no clues...

Maybe you could try to get some info from udisks. Unplug the stick, open a terminal and type the command 'udisksctl monitor'.
Then insert the stick and look in the monitor if you can see something relevant.
__________________
:confused:
Reply With Quote
  #5  
Old 18th October 2012, 06:41 AM
nofxboy1234 Offline
Registered User
 
Join Date: Oct 2012
Location: South Africa
Posts: 6
linuxfedorafirefox
Re: usb memory stick showing old data

Thank you, I will try that soon . Haven't had a chance yet, but really want to solve this. It's annoying haha!
Reply With Quote
  #6  
Old 18th October 2012, 08:29 PM
nofxboy1234 Offline
Registered User
 
Join Date: Oct 2012
Location: South Africa
Posts: 6
linuxfirefox
Re: usb memory stick showing old data

I ran: udisks --monitor, as that was the closest command I could find. I'm guessing it's the right one . Here's
what it output:

[dpalmboom@oy ~]$ udisks --monitor
Monitoring activity from the disks daemon. Press Ctrl+C to cancel.
added: /org/freedesktop/UDisks/devices/sdg
added: /org/freedesktop/UDisks/devices/sdg1

In the Available Devices dialog that pops up, it shows:
Storage Volume
billy_bumbl
Verbatim STORE N GO
Reply With Quote
  #7  
Old 19th October 2012, 09:22 AM
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 1,138
linuxredhatmozilla
Re: usb memory stick showing old data

I guess 'udisks --monitor' is equivalent to 'udisksctl monitor'.
Well, no clues...

If you do not have any data on the stick, you could try to erase the first sectors and reformat it.
It is overkilling, but must work.
__________________
:confused:
Reply With Quote
  #8  
Old 19th October 2012, 01:17 PM
nofxboy1234 Offline
Registered User
 
Join Date: Oct 2012
Location: South Africa
Posts: 6
linuxfedorafirefox
Re: usb memory stick showing old data

How would I go about doing that please? I don't have data on it so I don't mind.
It is very weird haha!
Reply With Quote
  #9  
Old 19th October 2012, 01:58 PM
flyingfsck Offline
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,878
linuxfirefox
Re: usb memory stick showing old data

Howdy.

Note that gparted doesn't necessarily 'format' a partition. The Linux equivalent of the windows 'format' is 'mkfs'. You need to do mkfs on the new partition and even then the old data would not be overwritten, it will still be there.

If you really want to wipe a disk, then you got to use dd to write /dev/zero to the whole thing before you make a new partition and file system.
Reply With Quote
  #10  
Old 19th October 2012, 02:50 PM
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 1,138
linuxredhatmozilla
Re: usb memory stick showing old data

Quote:
Originally Posted by nofxboy1234 View Post
How would I go about doing that please? I don't have data on it so I don't mind.
It is very weird haha!
Here we go!
Beware! Beware! Beware!
The following command is irreversible!
So, check at least two times that you are using the correct device.
If your stick is /dev/sdg:
Code:
dd count=2050 if=/dev/zero of=/dev/sdg
A count of 2050 must be enought for this.
The first sectors are now empty, without even a partition table.
Recreate a partition using fdisk or gparted, and format it.

Tested using the combo fdisk+mkfs without problem.
__________________
:confused:
Reply With Quote
  #11  
Old 19th October 2012, 08:28 PM
zuser Offline
Registered User
 
Join Date: Jan 2011
Posts: 77
linuxchrome
Re: usb memory stick showing old data

You might try this, always works for me.

http://www.pendrivelinux.com/restori...key-partition/
Reply With Quote
  #12  
Old 20th October 2012, 11:28 AM
nofxboy1234 Offline
Registered User
 
Join Date: Oct 2012
Location: South Africa
Posts: 6
linuxfirefox
Smile Re: usb memory stick showing old data

Thank you Skull_One, zuser, and flyingfsck for the help. Greatly appreciated! I ended up doing what Skull_One said, and all is working!
Reply With Quote
Reply

Tags
data, memory, showing, stick, usb

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
Memory not showing up? TriDanDroid Hardware & Laptops 4 18th October 2011 08:22 AM
USB stick and drive not showing in nautilus kevin tough Alpha, Beta & Snapshots Discussions (Fedora 11 Only) 4 16th May 2009 04:22 AM
6GB of Memory showing as 5GB DollaBillz618 Hardware & Laptops 8 19th December 2008 06:39 PM
bad memory stick reader Hardware & Laptops 3 8th May 2008 07:50 PM


Current GMT-time: 08:10 (Wednesday, 01-10-2014)

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