LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2013, 12:13 PM   #1
mmcm
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
Not enough space to use apt-get on default partition, how do i change default?


I am using an ALIX board with debian installed and as the board only has a CF card the OS is loaded into ram when booted. This was set up this way by someone else and I am not sure how to change it or expand the ramdisk.

When trying to use apt-get, for example
Code:
apt-get install sun-java6-jdk
the ramdisk fills up before java is installed and apt-fails:

Code:
 failed in write on buffer copy for backend dpkg-deb during `./usr/lib/jvm/java-6-sun-1.6.0.26/lib/visualvm/platform/modules/org-netbeans-modules-options-api.jar': No space left on device
df -h returns

Code:
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 125M     0  125M   0% /lib/init/rw
udev                  121M   84K  121M   1% /dev
tmpfs                 125M     0  125M   0% /dev/shm
rootfs                125M  100M   26M  80% /
/dev/sda1             1.8G 1000M  694M  60% /ro
rootfs.tmpfs          125M  100M   26M  80% /rw
rootfs.aufs           125M  100M   26M  80% /
It is tmpfs and aufs which fill up while apt works (they seem to be the same ie fill up at the same rate) and as java needs 171MB they do not have enough space.

I tried downloading the package and then using dpkg -i root=<directory> to install java similar to in this post http://www.linuxquestions.org/questi...r-path-386763/ but I had no success with that method.
 
Old 01-05-2013, 03:15 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Had this too, once, I stuck to the "out-of-the-tin" defaults, no more...
I resized the partition with GPartedLive...works like a charm. Make a backup though, better play it safe, and provide enough coffee, it takes a while...

Luck

Thor
Edit - did you try a forced logrotate to get rid of stale logs? Also, try to flush some cache space...

Last edited by ButterflyMelissa; 01-05-2013 at 03:19 PM.
 
Old 01-05-2013, 03:34 PM   #3
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Consider tweaking your Debian for less RAM consumption, disable some ttys in inittab, I usualy only leave tty1 and disable tty2-tty6, tty7 is used by X. Also consider compile a custom kernel, remove all things not needed, you will gain performance and more RAM will be available, and if you have X running, consider also lightweight versions of the programs you have, it will drop as well the RAM consumption leaving enough RAM available for other tasks.
This link is a bit outdated but still have some useful hints:http://forums.debian.net/viewtopic.php?f=16&t=14129

Regards
 
Old 01-05-2013, 06:37 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,710

Rep: Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749
This is a single board computer running a port and not a typical x86 installation. All it has is one serial port used as a console device. I assume the link below is what you are running and it is possible to install other apps using a chroot environment. You might want to copy the CF disk just in case something goes wrong. I also assume the CF has the necessary space for JDK

The CF is configured as a read only device to prevent corruption when power is removed.

http://code.google.com/p/debian-for-...nAndFirstSteps

Last edited by michaelk; 01-05-2013 at 06:39 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change the default Abiword font (default copy/paste font too) Quon Linux - Software 0 09-29-2012 01:29 PM
change default noexec to exec for all partition in an external drive centguy Linux - Software 1 01-16-2010 02:15 AM
What config file do you change to change default run level McPriMa Linux - Newbie 2 08-05-2009 04:45 PM
change grub boot order, all instructions say change default, but I don't see default mhg Linux - Newbie 5 11-09-2008 10:01 AM
Details about default web Browser & default Email client sudhasmyle Linux - Software 4 06-15-2006 11:45 AM


All times are GMT -5. The time now is 01:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration