LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-26-2009, 01:58 AM   #1
faizlo
Member
 
Registered: Sep 2008
Location: USA
Distribution: Linux Mint Qiana
Posts: 190

Rep: Reputation: Disabled
format my flash memory stick


Hi,

I have used my flash memory stick to install CentOS on one of my boxes. I used the dd command as it was explained there. Now I cannot use my flash stick again. It says all space I have left is 5 MB.My flash stick is 8 GB in size. Any idea how to get it back as a storage medium?

Thanks in advance,

faizlo
 
Old 07-26-2009, 02:26 AM   #2
EmrldDrgn
Member
 
Registered: Oct 2008
Posts: 40

Rep: Reputation: 16
If it were me, I'd download and use gparted. It's my standard go-to formatting/partitioning utility. Of course there are numerous other options too, but gparted is pretty user-friendly, and should be very helpful.
 
Old 07-26-2009, 11:07 AM   #3
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Rep: Reputation: 31
fdisk and mkfs should be able to take care of that.
 
Old 07-28-2009, 03:53 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

You could use the cli with 'cfdisk' to create your partition. After the partitions are created then use 'mke2fs' to format the device filesystem as ext2.
 
Old 07-28-2009, 04:35 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
In a nutshell the dd command creates an exact image. The size of the flash disk will even though it is 8GB will appear to be the same size as the original boot image file whatever that maybe. As stated all you need to do is use any of the partitioning tools to recover the space and put the disk back to its original state.
 
Old 08-03-2009, 09:10 PM   #6
faizlo
Member
 
Registered: Sep 2008
Location: USA
Distribution: Linux Mint Qiana
Posts: 190

Original Poster
Rep: Reputation: Disabled
Hi,

here is what I had from gparted:
Code:
GParted 0.4.4

Libparted 1.8.8
Delete /dev/sdb1 (fat16, 7.65 GiB) from /dev/sdb  00:00:02    ( ERROR )
     	
calibrate /dev/sdb1  00:00:01    ( SUCCESS )
     	
path: /dev/sdb1
start: 0
end: 16041612
size: 16041613 (7.65 GiB)
delete partition  00:00:01    ( ERROR )
libparted messages    ( INFO )
     	
Input/output error during write on /dev/sdb

========================================
Create Primary Partition #1 (fat32, 7.65 GiB) on /dev/sdb

========================================
What does it mean?

faizlo
 
  


Reply



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
USB memory stick - badblocks - how to format? mazzo Linux - Hardware 6 10-29-2008 12:26 AM
format memory stick Tapasi Linux - Newbie 3 02-08-2008 07:34 AM
USB memory, Compact Flash, Memory Stick energiza Linux - Hardware 2 08-22-2006 09:29 PM
Missing memory in USB stick, flash memory, removable hd etc bamboo_spider Linux - Newbie 3 06-14-2006 05:39 PM
flash memory stick rilians Linux - Hardware 3 08-26-2004 11:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:15 AM.

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
Open Source Consulting | Domain Registration