no space left on device error??


Forum: Other Help Topics
Topic: no space left on device error??
started by: plinej

Posted by plinej on Jan. 13 2006,02:39
I've got a frugal hard drive install of dsl 2.1 and after loading several extensions I get this error but I still have plenty of ram and swap available. My ram usage is at 46% 234M/502M. My swap usage is at 57% 365/635M. Is there some file I need to configure to fix this problem?
Posted by cbagger01 on Jan. 16 2006,04:21
You are usig too much space on your root filesystem.

Usually, this means that too much data has been stored in a directory like /etc or /

The ideal solution to this problem is to either:

1) Increase the size of the initial root filesystem /

or

2) symlink /etc to /ramdisk/etc like the mkwritable process does for /usr, /lib and others

A quick way for you to fix the problem is to create a separate holding area for your newly added /etc files and then symlink them to the real /etc

For exmaple, instead of loading

/etc/bigfilesdir

you would move the contents to

/opt/bigfilesdir

and then create a symlink at

/etc/bigfilesdir  -----> /opt/bigfilesdir

that points to the /opt/bigfilesdir location.

Posted by plinej on Jan. 16 2006,13:17
Thank you! I will try your suggestions.
Posted by plinej on Jan. 16 2006,14:18
That did the trick! I made a script with the following lines:

#!/bin/bash
rm -r /mnt/hda2/opt/etc/
mv /etc/ /mnt/hda2/opt/
ln -sf /mnt/hda2/opt/etc/ /

Then I added that script to my /opt/bootlocal.sh

Thanks for the help!

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.