Tech Support > Operating Systems > Linux / Variants > CF Card Problems
CF Card Problems
Posted by Thomas Tonneson on October 7th, 2003


Can somebody tell me how to recreate a file system on a CF card from
scratch please.

I need all the fdisk, mkfs commands etc

I used mkfs.ext2 on /dev/hda but on teh whole device not just a
partition and screwed it up.

All help greatly apprecaiated.

Thanks

Thomas

Posted by Raj Rijhwani on October 7th, 2003


On 7 Oct, in article
<42873bcd.0310070734.3d27a00d@posting.google.com >
tt@manx.net "Thomas Tonneson" wrote:

Quite simply you treat it like you would any other disk.

In my laptop, the CF (in PCMCIA adaptor) is treated as an IDE drive,
specifically /dev/hdc. Can't speak for others.

So first of all you need to partition it, and set the partition types. I
prefer cfdisk, it's just that much easier to use and to visualise the
partitions.

so, for example, cfdisk /dev/hdc

Once partitioned, you then mkfs on the partition(s) you have created.
It should be possible, though not necessarily most efficient, to rely
on mkfs to work out the partition type for itself and apply the
appropriate default file-system parameters.

mkfs /dev/hdc1
--
Raj Rijhwani | This is the voice of the Mysterons...
raj@rijhwani.org | ... We know that you can hear us Earthmen
http://www.rijhwani.org/raj/ | "Lieutenant Green: Launch all Angels!"


Similar Posts