Re: Problems with Ext2fs on a CF card.



On 24 May 2007 08:09:16 -0700 Mic <michaelzwrk@xxxxxxxxx> wrote:

| Hi.
| First, thanks for the help.
| I still have the problem, but maybe now I can add some more info:
| 1. I followed the recomendation:
| 1.1.wipe everything out -
| dd if=/dev/zero of=/dev/hda
| 1.2 fdisk, fdisk -l -
| fdisk -l /dev/hda
|
| Disk /dev/hda: 512 MB, 512483328 bytes
| 16 heads, 63 sectors/track, 993 cylinders
| Units = cylinders of 1008 * 512 = 516096 bytes
|
| Device Boot Start End Blocks Id System
| /dev/hda1 1 497 250456+ 83 Linux
| Still, the mkfs does not work:

Commands needed:

cat /proc/partitions

If you do not see "hda1" in the output, then reboot and try again.
If still not after reboot, try this:

dmesg | fgrep hda

Also do:

ls -ld /dev/hda1

That should look similar to (and the "3,1" part is important):

brw-rw---- 1 root disk 3, 1 2002-06-09 14:27 /dev/hda1


| 1.3 mke2fs -F /dev/hda1
| mke2fs 1.38 (30-Jun-2005)
| mke2fs: No such file or directory while trying to determine filesystem
| size
|
| I also bought a card reader and created the partition and a filesystem
| successfully from the Linux host PC:
|
| 2.1 fdisk -l /dev/sdd
|
| Disk /dev/sdd: 512 MB, 512483328 bytes
| 16 heads, 62 sectors/track, 1009 cylinders
| Units = cylinders of 992 * 512 = 507904 bytes
|
| Device Boot Start End Blocks Id System
| /dev/sdd1 1 505 250449 83 Linux
|
| 2.2 mke2fs /dev/sdd1
| mke2fs 1.35 (28-Feb-2004)
| Filesystem label=
| OS type: Linux
| Block size=1024 (log=0) ....
|
| I then booted over NFS on the embedded.
| the fdisk -l successfully read the partition table, but mke2fs failed.
|
| BTW -
| I noticed fdisk read the disk info differently:
| On the embedded:
| 16 heads, 63 sectors/track, 993 cylinders
| On the host PC:
| 16 heads, 62 sectors/track, 1009 cylinders
|
| Why can it be?
| Can it be the cause of the problems?

It is probably weird PC BIOS. It would not cause the /dev/hda1 problem.


| Also, the versions I used were:
| on the host PC:
| mke2fs 1.35, fdisk 2.12a
| on the embedded:
| mke2fs 1.38
| fdisk 2.12

A possible problem is your kernel does not have compiled in the support
for PC style partitions. Embedded devices rarely have such partition
types, so it may be omitted by default for your embedded architecture.
Did you build your own kernel? Got the .config file from the kernel
build tree?

--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2007-05-26-2255@xxxxxxxx |
|------------------------------------/-------------------------------------|
.



Relevant Pages

  • Re: A curse on LABEL=
    ... > At least we used to be given the choice of fdisk if we asked nicely. ... partitioning, choose my partition to mount-point assignments in Disk ... I was under the impression that ALSA supports all the hardware that OSS ... the OSS compatibility layer is part of the kernel source, ...
    (Fedora)
  • Re: 80G disk seen as 20G?
    ... I've read about issues with disks larger than 34 G, ... > but I also understood that is solved in the 2.4 kernel series. ... Use fdisk /dev/hda to revise your partition table. ...
    (Debian-User)
  • Re: problem to configure partition above 2 To
    ... >> Yes i found it but it is already set on kernel. ... >> in fact it is fdisk which is unable to set a partition of more than 2 To. ... Yes i have tried cfdisk. ...
    (comp.os.linux.hardware)
  • Re: [BUG 2.6.7] : Partition table display bogus...
    ... displays the partition table for the drive that the kernel claims has an unknown ... > Check that fdisk still can read the table on that disk. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: messed up partition table reinstalling windows 98
    ... I booted up her system using the 98 floppy, ran fdisk and deleted the ... Partition 1 as an Extended DOS partition 353 MB ... The Extended DOS Partition contains Logical DOS Drives ...
    (Ubuntu)