• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Space saving on the plug  (Read 1118 times)
mgillespie
Full Member
***

Karma: 7
Posts: 233



View Profile
« on: August 05, 2009, 12:41:43 AM »

I know many people run their root filesystems on extrernal SD, or USB HDD, but I am still perservering with using the onboard flash to store my root filesystem.

Anyone got any tips for freeing up space?   Whilst I'm not at a critical level (30% of the flash left), it's nice to ask these things in advance.

My Tips:

I found out about the strip command (in binutils package), that strips debugging symbols from files, making them smaller, thats a VERY handy tip that saved me quite alot of space (I ran it on everything in /usr/bin!!!)

I also found out I can do the following to show the size of a directories sub directories (sorted):

Code:
du -sm * | sort -n

Any other tips for saving space?  Anything that can be removed from the Ubuntu filesystem to save flash space?
Logged

fnordianslip
Newbie
*

Karma: 0
Posts: 8



View Profile
« Reply #1 on: August 05, 2009, 01:03:01 AM »

Just ordered my plug a couple of days ago, so I guess I've got at least a month to get familiar with the beasty.   

I don't have an answer for you but a couple of related questions.

1) How much free space is there on the MTD with the shipped stock Ubuntu image?
2) Is the stock Ubuntu JFFS2 image compressed or not?
Logged

hypn0toad
Newbie
*

Karma: 0
Posts: 29


View Profile
« Reply #2 on: August 05, 2009, 05:39:19 AM »

uhm i dont know if the ubuntu JFFS2 image is compressed sorry

but i know i just got the plug and it came with about 330MB free out of the box
Logged

frafra
Newbie
*

Karma: 0
Posts: 6


View Profile
« Reply #3 on: August 05, 2009, 06:54:19 AM »

1. 30% used
2. It's compressed. I don't know wich algorithm it uses, but it works sooo well Cheesy
Logged

fnordianslip
Newbie
*

Karma: 0
Posts: 8



View Profile
« Reply #4 on: August 05, 2009, 01:10:25 PM »


Any other tips for saving space?  Anything that can be removed from the Ubuntu filesystem to save flash space?

It's a bit obvious, but 'apt-get clean' is often overlooked.
Logged

mail4asim
Newbie
*

Karma: 0
Posts: 39



View Profile
« Reply #5 on: August 05, 2009, 03:11:25 PM »

fnordianslip thank you for the tip. I was up to 67% used.. and with the "apt-get clean" I am down to 47%. That's a huge saving.. will have to readup on the apt-get a bit Smiley
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 233



View Profile
« Reply #6 on: August 07, 2009, 03:19:40 PM »

Posted these tips in the Wiki:

http://plugcomputer.org/plugwiki/index.php/Freeing_up_space_on_the_plug#Other_Space_Saving_Tips

If anyone has any others, post there here, and I'll pop them in the Wiki, or tuck in and update the wiki youself.
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 233



View Profile
« Reply #7 on: August 15, 2009, 07:08:06 AM »

Another tip:

I used the Alpha6 installer which came with a root filesystem, you can see what packages you have installed by using this command:

Code:
dpkg -l |grep '^ii'
(or if you want to send it to a text file:
Code:
dpkg -l |grep '^ii' >installedstuff.txt

I determined that I had x11-common installed, and I have no requirement for X11 on this box, so removed that, and all it's dependancies with the following command:

Code:
apt-get remove x11-common ; apt-get autoremove ; apt-get clean

This dropped by flash usage from 45% to 35%   Nice...
Logged

Pages: [1]
Print
Jump to: