Re: Problems with Ext2fs on a CF card.
- From: phil-news-nospam@xxxxxxxx
- Date: 27 May 2007 04:04:33 GMT
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 |
|------------------------------------/-------------------------------------|
.
- References:
- Problems with Ext2fs on a CF card.
- From: Mic
- Re: Problems with Ext2fs on a CF card.
- From: phil-news-nospam
- Re: Problems with Ext2fs on a CF card.
- From: Mic
- Problems with Ext2fs on a CF card.
- Prev by Date: Re: *** Software Architect & Lead Openings @ Hyderabad
- Next by Date: Re: ARM development board recommendation
- Previous by thread: Re: Problems with Ext2fs on a CF card.
- Next by thread: librarys on target
- Index(es):
Relevant Pages
|