Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

partitioning CF card error

hi, hippo

when I partition CF card in the last step by entering "w" at the main prompt. it showns below:

"The partition table has been altered!

Calling ioctl<> to re-read partition table.

hda:unknown partition table

hda:unknown partition table

warning: if you have created or modified any DOS 6.x partitions please see the fdisk manual page foe additonal information.

Syncing disks."

what shall I do?

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Those look like typical Linux warnings, except for the first bit. If you type fdisk <your dev> and then type "p", what does that show? If you were successful, you should see a listing of all partitions on your card. From this point, you should be able to format your partition(s) and get on with the flow.

    Good luck!

    - slacker
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by slacker@Jun 28 2006, 12:20 AM

    those look like typical linux warnings, except for the first bit. if you type fdisk <your dev> and then type "p", what does that show? if you were successful, you should see a listing of all partitions on your card. from this point, you should be able to format your partition(s) and get on with the flow.

    good luck!

    - slacker

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16435)

    --- quote end ---

    --- Quote End ---

    thanks!

    when I fdisk CF card:

    "#fdisk /dev/hda

    hda:unknown partition table

    device contains neither a valaid DOS partition table, or Sun,SGI or OSF disklabel

    Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of coure, the previous content will not be recoverable.

    "

    can u help me?

    thanks!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    First a quick question:

    You&#39;re trying to do this from a Linux host, right?

    - Not uCLinux! While it may be possible to format a CF card, from within uCLinux, it&#39;s certainly not advisable.

    Things to check:

    1. Be sure that you&#39;re fdisking the correct device.

    - scan the output of the &#39;dmesg&#39; command to make sure that your CF card is being properly detected. You should see something like the following:

    SCSI device sdg: 3978240 512-byte hdwr sectors (2037 MB)
    sdg: Write Protect is off
    sdg: Mode Sense: 02 00 00 00
    sdg: assuming drive cache: write through
    SCSI device sdg: 3978240 512-byte hdwr sectors (2037 MB)
    sdg: Write Protect is off
    sdg: Mode Sense: 02 00 00 00
    sdg: assuming drive cache: write through

    Pay attention to the name of the device as that is how you&#39;ll access it. NOTE: There is some amount of variation to the drive letter chosen, based upon boot order or when you connected your card reader.

    2. Be sure that you don&#39;t have some sort of media issue with the CF card. Try formatting it from within Windows....or from a digital camera...or whatever. You just want to make sure this is successful, before trying on Linux, again.

    - If successful, you should be able to "mount" the drive, on your Linux host, and copy files onto it.

    Best of luck...

    - slacker
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by slacker@Jun 28 2006, 12:53 PM

    first a quick question:

    you&#39;re trying to do this from a linux host, right?

    - not uclinux! while it may be possible to format a cf card, from within uclinux, it&#39;s certainly not advisable.

    things to check:

    1. be sure that you&#39;re fdisking the correct device.

    - scan the output of the &#39;dmesg&#39; command to make sure that your cf card is being properly detected. you should see something like the following:

    scsi device sdg: 3978240 512-byte hdwr sectors (2037 mb)
    sdg: write protect is off
    sdg: mode sense: 02 00 00 00
    sdg: assuming drive cache: write through
    scsi device sdg: 3978240 512-byte hdwr sectors (2037 mb)
    sdg: write protect is off
    sdg: mode sense: 02 00 00 00
    sdg: assuming drive cache: write through

    pay attention to the name of the device as that is how you&#39;ll access it. note: there is some amount of variation to the drive letter chosen, based upon boot order or when you connected your card reader.

    2. be sure that you don&#39;t have some sort of media issue with the cf card. try formatting it from within windows....or from a digital camera...or whatever. you just want to make sure this is successful, before trying on linux, again.

    - if successful, you should be able to "mount" the drive, on your linux host, and copy files onto it.

    best of luck...

    - slacker

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16452)</div>

    --- Quote End ---

    thanks