Find the answer to your Linux question:
Results 1 to 9 of 9
Hello. I have a problem with 8GB Compact Flash card. I will try to descript it... 1) until now I have used Compact Flash card Kingstone (p/n: CF/4GB - S2, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Posts
    5

    Compact Flash error


    Hello.
    I have a problem with 8GB Compact Flash card. I will try to descript it...

    1) until now I have used Compact Flash card Kingstone (p/n: CF/4GB - S2, 9904318-035.A00LF or p/n: CF/1GB, 9904168-041.A01LF) in PC over CF2SATA or CF2IDE reduction for booting OS linux Slackware. Until now was everything fine but...

    2) these types of cards are not produced now and with new types (CF/8GB, 9904318-058.A00LF) I have this problem...

    Into PC is card inserted over CF2SATA reduction with Marvell 88SA8052 chipset. BIOS detects it correctly but when it have to start OS, tell me, no bootable medium...

    3) When I connect it as second drive into PC over the same reduction and boot the PC from another card (CF/4GB - S2, 9904318-035.A00LF), it works. Both cards are detected as Attached SCSI removable disk... As you can see in bottom, 8GB card look like it doesn't had partition table, but there is it.

    Here is a report from booted PC from another 4GB CF card. Both cards are formated with the same parameters

    k-robot:~# dmesg |grep sd
    sd 0:0:0:0: [sda] 7831152 512-byte logical blocks: (4.00 GB/3.73 GiB)
    sd 0:0:0:0: [sda] Write Protect is off
    sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
    sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    sda: sda1
    sd 0:0:0:0: [sda] Attached SCSI removable disk
    sd 1:0:0:0: [sdb] 15613920 512-byte logical blocks: (7.99 GB/7.44 GiB)
    sd 1:0:0:0: [sdb] Write Protect is off
    sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
    sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    sdb: unknown partition table
    sd 1:0:0:0: [sdb] Attached SCSI removable disk
    EXT3-fs (sda1): mounted filesystem with ordered data mode
    EXT3-fs (sda1): using internal journal

    k-robot:~# sfdisk -l

    Disk /dev/sda: 487 cylinders, 255 heads, 63 sectors/track
    Warning: The partition table looks like it was made
    for C/H/S=*/124/62 (instead of 487/255/63).
    For this listing I'll assume that geometry.
    Units = cylinders of 3936256 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start End #cyls #blocks Id System
    /dev/sda1 0+ 1017 1018- 3913191+ 83 Linux
    /dev/sda2 0 - 0 0 0 Empty
    /dev/sda3 0 - 0 0 0 Empty
    /dev/sda4 0 - 0 0 0 Empty

    Disk /dev/sdb: 971 cylinders, 255 heads, 63 sectors/track

    sfdisk: ERROR: sector 0 does not have an msdos signature
    /dev/sdb: unrecognized partition
    No partitions found

    Could somebody help me?
    Last edited by majlando; 03-21-2013 at 10:44 AM.

  2. #2
    Just Joined!
    Join Date
    Sep 2012
    Location
    Nashville, TN
    Posts
    97
    It looks like your 8gb Drive is missing an MBR which would contain your partition information. Have you formatted this card? Not sure if you said this or not but was the 8 gb a brand new card?

  3. #3
    Just Joined!
    Join Date
    Mar 2013
    Posts
    5
    Hi.
    Thx for interrest. Yes. The card was a brand new and yes, the card is partitioned and formated with the same parameters like the other 4GB...

    echo \; | sfdisk -uM /dev/sdb or sdc...

    I try to install it with the same way like any other my CompactFlash via USB2CF reduction. I do bash script for this...
    Ia have to say one more time... Other CF cards from Kingstone 4GB elite pro or 4GB works fine

    DEV=some script to found attached reduction and CF card


    echo \; | sfdisk -uM /dev/$DEV #> /dev/null 2>&1
    echo done
    DAV=/dev/$DEV"1"
    echo "Format $DAV"
    dd if=/dev/zero of=$DAV bs=512 count=1 > /dev/null 2>&1
    echo -n "format: ext3 "
    mke2fs -j -J size=8 $DAV# > /dev/null
    tune2fs -O ^dir_index $DAV# > /dev/null
    echo

    if I commented this dd if=/dev/zero of=$DAV bs=512 count=1 > /dev/null 2>&1, result is unchanged

  4. #4
    Just Joined!
    Join Date
    Sep 2012
    Location
    Nashville, TN
    Posts
    97
    So if I get this correct. You are using this script to format the drive? If that is so I would do the following and post back
    Code:
    fdisk /dev/sdb
    p
    The p should have it print all partitions that fdisk finds. I feel like that script is not actually creating the partitions for you. It is only trying to format the device.

  5. #5
    Just Joined!
    Join Date
    Mar 2013
    Posts
    5
    8GB CF card
    k-robot:~# fdisk /dev/sdb
    Device contains neither a valid DOS partition table, nor 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 course, the previous
    content won't be recoverable.

    Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

    Command (m for help): p

    Disk /dev/sdb: 7994 MB, 7994327040 bytes
    255 heads, 63 sectors/track, 971 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Valid 4GB CF Card
    k-robot:~# fdisk /dev/sda

    Command (m for help): p

    Disk /dev/sda: 4009 MB, 4009549824 bytes
    124 heads, 62 sectors/track, 1018 cylinders
    Units = cylinders of 7688 * 512 = 3936256 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 1 1018 3913191+ 83 Linux

    8GB CF Card is working fine with IDE2CF reduction or directly to CF slot. Et in PC Engines product Alix 2D3 etc

  6. #6
    Linux Newbie
    Join Date
    Nov 2009
    Posts
    222
    majlando.

    Do you have a compelling reason to use sfdisk? Get yourself a gparted bootable live CD or install just the program and use that to format your drives.

  7. #7
    Just Joined!
    Join Date
    Mar 2013
    Posts
    5
    Yes, I have compelling reason. Every my CF card install a bash script. CF card is connected to instalator via USB2CF and it is impossible do a partition on each with gparted. Any other reason is in image. When I open this CF card with gparted, linux partition is visible. gparted_screen.jpg

  8. #8
    Just Joined!
    Join Date
    Sep 2012
    Location
    Nashville, TN
    Posts
    97
    Is the card an SDHC card by chance? Could be that your card reader does not support SDHC.

    ** NOTE **

    I don't have much experience with SD cards so I don't know if SD and SDHC cards have any major difference. I will look into that and see what I come up with.

  9. #9
    Just Joined!
    Join Date
    Mar 2013
    Posts
    5
    Thats no SD card but CompactFlash card... (:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •