mtchang / rt-n56u

Automatically exported from code.google.com/p/rt-n56u
0 stars 0 forks source link

Entware and space on usb stick #1000

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi I followed this guide to install Entware, the one with the swap partition
http://code.google.com/p/rt-n56u/wiki/HowToConfigureEntware

I use a 2Gb usb stick

After that I started to install various program, for example nano etc etc...

So I tried to install pyload (I don't know if works, but the package is 
present), when it download the dependency files, make me this error

 * pkg_write_filelist: Failed to open //opt/lib/opkg/info/python-django.list: No space left on device.

but I've space on device

/opt/home/admin # df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                    6656      6656         0 100% /
/dev/root                 6656      6656         0 100% /
tmpfs                        8         0         8   0% /dev
tmpfs                     2048       140      1908   7% /etc
tmpfs                     1024         0      1024   0% /home
tmpfs                        8         0         8   0% /media
tmpfs                        8         0         8   0% /mnt
tmpfs                    24576        80     24496   0% /tmp
tmpfs                     4096        68      4028   2% /var
/dev/sda2              1764620     64768   1699852   4% /media/AiDisk_a2
/dev/sda2              1764620     64768   1699852   4% /opt

How it's possible, where's my mistake?

J

Original issue reported on code.google.com by jorman.f...@gmail.com on 23 Sep 2013 at 5:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please write the result of mount command

Original comment by Dr.Sydorenko.O on 3 Oct 2013 at 6:33

GoogleCodeExporter commented 9 years ago
Hi,

I encountered the same problem. Also, any attempts to write something to usb 
drive fail:
/opt/home/admin # echo 'hi' > ./tmp
-sh: can't create ./tmp: No space left on device

mounts:

rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
tmpfs on /dev type tmpfs (rw,relatime,size=8k)
tmpfs on /etc type tmpfs (rw,noatime,size=2048k)
tmpfs on /home type tmpfs (rw,relatime,size=1024k)
tmpfs on /media type tmpfs (rw,relatime,size=8k)
tmpfs on /mnt type tmpfs (rw,relatime,size=8k)
tmpfs on /tmp type tmpfs (rw,relatime,size=24576k)
tmpfs on /var type tmpfs (rw,relatime,size=4096k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/sda2 on /media/tank type ufsd (rw,noatime,sparse,force)
/dev/sdb2 on /media/System type ext4 (rw,noatime,data=ordered)
/dev/sdb2 on /opt type ext4 (rw,noatime,data=ordered)

df -h:

Filesystem                Size      Used Available Use% Mounted on
rootfs                    6.5M      6.5M         0 100% /
/dev/root                 6.5M      6.5M         0 100% /
tmpfs                     8.0K         0      8.0K   0% /dev
tmpfs                     2.0M    140.0K      1.9M   7% /etc
tmpfs                     1.0M      8.0K   1016.0K   1% /home
tmpfs                     8.0K         0      8.0K   0% /media
tmpfs                     8.0K         0      8.0K   0% /mnt
tmpfs                    24.0M     76.0K     23.9M   0% /tmp
tmpfs                     4.0M    220.0K      3.8M   5% /var
/dev/sda2                 2.7T      1.2T      1.5T  44% /media/tank
/dev/sdb2                 7.2G    226.0M      7.0G   3% /media/System
/dev/sdb2                 7.2G    226.0M      7.0G   3% /opt

BR
Nick

Original comment by cmf.ra...@gmail.com on 3 Jan 2014 at 9:06

GoogleCodeExporter commented 9 years ago
Problem solved. It comes out that the file system ran out of inodes. This can 
be checked with 'df -i'. 
By default, mkfs has allocated around 7200 inodes on a 8Gb usb stick, which 
apparently is not enough for some packages. To increase this value, I 
reformatted the volume with -N parameter, e.g.:

mkfs.ext4 -m 0 -T largefile -L Main -N 256000 /dev/sda1
Please note that this will destroy the data, and corresponding backup steps 
should be taken.

--
BR
Nick

Original comment by cmf.ra...@gmail.com on 3 Jan 2014 at 11:20

GoogleCodeExporter commented 9 years ago
On the small usb stick you must use mkfs without '-T largefile'

Original comment by Dr.Sydorenko.O on 12 Mar 2014 at 11:02