[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No space left on device




I am getting a "No space left on device" error
whenever i try to write to my JFFS or JFFS2 mounts. 
I've hit a wall in trying to debug this and i don't
know which direction to go.

Here's a snip of my starup, it can explain my
environment better than i can:

---

Linux version 2.4.17-uc0 (mwhite@waterloo) (gcc
version 2.95.3 20010315 (release)(ColdFire patches -
20010318 from http://fiddes.
net/coldfire/)(-msep-data patches)) #50 Tue Apr 23
17:01:37 PDT 2002


uClinux/COLDFIRE(m5272)
COLDFIRE port done by Greg Ungerer, gerg@xxxxxxx.com
Flat model support (C) 1998,1999 Kenneth Albanowski,
D. Jeff Dionne
On node 0 totalpages: 1024
zone(0): 0 pages.
zone(1): 1024 pages.
zone(2): 0 pages.
Kernel command line: CONSOLE=/dev/ttyS0,19200
root=1e00
Calibrating delay loop... 43.62 BogoMIPS
Memory available: 2248k/4096k RAM, 0k/0k ROM (655k
kernel code, 190k data)
kmem_create: Forcing size word alignment -
vm_area_struct
kmem_create: Forcing size word alignment - mm_struct
kmem_create: Forcing size word alignment - filp
Dentry-cache hash table entries: 512 (order: 0, 4096
bytes)
Inode-cache hash table entries: 512 (order: 0, 4096
bytes)
kmem_create: Forcing size word alignment - inode_cache
Mount-cache hash table entries: 512 (order: 0, 4096
bytes)
kmem_create: Forcing size word alignment - bdev_cache
kmem_create: Forcing size word alignment - cdev_cache
Buffer-cache hash table entries: 1024 (order: 0, 4096
bytes)
Page-cache hash table entries: 1024 (order: 0, 4096
bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society
NET3.039
kmem_create: Forcing size word alignment - sock
Initializing RT netlink socket
Starting kswapd
kmem_create: Forcing size word alignment - file lock
cache
JFFS2 version 2.1. (C) 2001, 2002 Red Hat, Inc.,
designed by Axis Communications AB.
ColdFire internal UART serial driver version 1.00
ttyS0 at 0x10000100 (irq = 73) is a builtin ColdFire
UART
ttyS1 at 0x10000140 (irq = 74) is a builtin ColdFire
UART
kmem_create: Forcing size word alignment -
blkdev_requests
block: 64 slots per queue, batch=16
RAMDISK driver initialized: 16 RAM disks of 4096K size
1024 blocksize
eth0: FEC ENET Version 0.2, 00:cf:52:72:c3:01
fec: Phy @ 0x0, type 0x001378e2
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 7 disk images:
0: F3A34-1B9A33 [VIRTUAL F3A34-1B9A33] (RO)
1: FFE00000-FFE1FFFF [VIRTUAL FFE00000-FFE1FFFF] (RW)
2: FFE20000-FFEDFFFF [VIRTUAL FFE20000-FFEDFFFF] (RW)
3: FFEE0000-FFEEFFFF [VIRTUAL FFEE0000-FFEEFFFF] (RW)
4: FFEF0000-FFEF3FFF [VIRTUAL FFEF0000-FFEF3FFF] (RW)
5: FFEF4000-FFEF7FFF [VIRTUAL FFEF4000-FFEF7FFF] (RW)
6: FFEF8000-FFEFFFFF [VIRTUAL FFEF8000-FFEFFFFF] (RW)
physmap flash device: 200000 at ffe00000
 Amd/Fujitsu Extended Query Table v1.0 at 0x0040
number of CFI chips: 1
Creating 10 MTD partitions on "Physically mapped
flash":
0x00000000-0x00004000 : "boot (16K)"
mtd: Giving out device 0 to boot (16K)
0x00080000-0x00100000 : "kernel (512K)"
mtd: Giving out device 1 to kernel (512K)
0x00100000-0x00200000 : "rootfs (1024K)"
mtd: Giving out device 2 to rootfs (1024K)
0x00004000-0x00006000 : "spare (8K)"
mtd: Giving out device 3 to spare (8K)
0x00006000-0x00008000 : "spare (8K)"
mtd: Giving out device 4 to spare (8K)
0x00040000-0x00080000 : "spare (256K)"
mtd: Giving out device 5 to spare (256K)
0x00000000-0x00200000 : "complete (2048K)"
mtd: Giving out device 6 to complete (2048K)
0x00100000-0x00140000 : "boot J13 (256K)"
mtd: Giving out device 7 to boot J13 (256K)
0x00140000-0x001c0000 : "kernel J13 (512K)"
mtd: Giving out device 8 to kernel J13 (512K)
0x001c0000-0x00200000 : "rootfs J13 (256K)"
mtd: Giving out device 9 to rootfs J13 (256K)
init_mtdchar: allocated major number 90.
init_mtdblock: allocated major number 31.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
kmem_create: Forcing size word alignment -
ip_dst_cache
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Freeing unused kernel memory: 24k freed (0xcc000 -
0xd1000)
Shell invoked to run file: /etc/rc

...etc.

Note that i am using Bernard Kuhn's patches for MTD
Paritioning for the the Coldfire "Tarifa" testboard,
as well as his patches to change the major number of
the blkmem device so that it can be used at the same
time as MTD (changed to 30.)
http://home.t-online.de/home/Bernhard_Kuhn/


Then i do something like this:

eraseall /dev/mtd2
mount -t jffs2 /dev/mtdblock2 /tmp/
cd tmp

then:

/var/tmp> touch foo
foo: No space left on device

/var/tmp> cp /bin/sh .
./sh: No space left on device


I get the exact same results when i use mount -t jffs.

I've also tried creating a jffs2 filesystem with some
cross-compiled binaries in it copying it /dev/mtd2,
and then mounting it as above.  I can access the
directory, and run the binaries just fine, but i still
can't write  to the JFFS(2) filesystem when inside
uClinux.

Am i missing something?

Is this an MTD or lower-level problem?

Thanks for any help you can give,
mike


______________________________________________________________________ 
Only a few days left to file! http://taxes.yahoo.ca

To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo@xxxxxxx.com