Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-13-2005, 02:21 AM   #1
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Rep: Reputation: 30
Format a Compact Flash Drive While Mounted

I have a compact flash drive that I use in a card reader. My system cannot see the card if it is not mounted. But I need to reformat the card from fat16 to ext2. However I cannot format a mounted partion or device. Any ideas?

I am trying to install debian onto my Zaurus 3100, but I just cannot get this CF card formated right. And without ext2, I cannot copy the files extract from this:

And follow the instructions here:

Can someone help me?

Last edited by sadarax; 12-13-2005 at 03:41 AM.
Old 12-13-2005, 03:59 AM   #2
Senior Member
Registered: Oct 2003
Posts: 2,606

Rep: Reputation: 225Reputation: 225Reputation: 225
With the flash drive mounted run this as root:

# fdisk -l

that will list all partitions that the system recognizes, whether mounted or not. You should see one for your flash drive, usually /dev/sda if you don't have any sata or scsi hard drives. Next, unmount the flash drive and rerun, fdisk -l. You should still see the entry for your flash drive. To reformat the flash drive to ext2, run:

# mkfs -t ext2 /dev/sdax

where 'x' corresponds to the partition number on the flash drive(usually sda1).
Old 12-15-2005, 03:26 AM   #3
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 30
Thank you. That worked.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to format a USB flash drive? Erik_the_Red Linux - Hardware 4 08-29-2005 12:47 PM
compact flash drive. apenguinlinux Linux - General 1 07-15-2005 03:32 PM
Format Compact flash surff Linux - Hardware 1 09-13-2004 07:41 AM
Low Level format a Compact Flash ? K@rl` Linux - Hardware 4 09-07-2004 08:05 AM
Where is my Compact-flash drive ? shankariyer Red Hat 26 10-30-2003 07:34 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:07 PM.

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