LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-04-2012, 05:00 PM   #1
5883
Member
 
Registered: Aug 2004
Posts: 173

Rep: Reputation: 0
how to build a tiny size of ubuntu rootfs ?


we're working on ubuntu platform,
so still want to build a same type of rootfs for embedded board.

to save space, we need rootfs small.

but need that apt-get in case we need to install stuff.

any hints ?
 
Old 06-04-2012, 05:03 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
How small? Honestly, I would use a distribution better suited to embedded devices than Ubuntu; that's really not what it's designed for.
 
Old 06-04-2012, 05:08 PM   #3
5883
Member
 
Registered: Aug 2004
Posts: 173

Original Poster
Rep: Reputation: 0
is it possible to get it under 100M ?

the rootfs we built is painful, it used busybox and lots of things are not working nicely.
we have 2 eth ports, but not NetworkManager, etc.


Quote:
Originally Posted by MS3FGX View Post
How small? Honestly, I would use a distribution better suited to embedded devices than Ubuntu; that's really not what it's designed for.
 
Old 06-04-2012, 06:35 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
100MB compressed or in uncompressed state? Also, things like NetworkManager are designed for full blown systems, not really embedded machines. It is possible to get quite small systems with Ubuntu, if you use debootstrap for installing a really minimal system (using the --variant=minbase option) and then carefully add the packages you need, with the installation of recommends and suggests disabled. But only the minimal base system (which only contains the essential packages and apt) will be about 200MB uncompressed and you also have to add the kernel to that.
 
Old 06-06-2012, 02:42 PM   #5
5883
Member
 
Registered: Aug 2004
Posts: 173

Original Poster
Rep: Reputation: 0
our case is uncompressed,
200MB is larger than what we can have, but i can understand it's already tiny for desktop.



Quote:
Originally Posted by TobiSGD View Post
100MB compressed or in uncompressed state? Also, things like NetworkManager are designed for full blown systems, not really embedded machines. It is possible to get quite small systems with Ubuntu, if you use debootstrap for installing a really minimal system (using the --variant=minbase option) and then carefully add the packages you need, with the installation of recommends and suggests disabled. But only the minimal base system (which only contains the essential packages and apt) will be about 200MB uncompressed and you also have to add the kernel to that.
 
Old 06-06-2012, 02:44 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Ubuntu really is not the distro for such a restricted embedded system.

What board is this?
 
Old 06-10-2012, 03:44 PM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
What is the goal of this system in the first place? What does it need to do? Determining how small the filesystem image needs to be will greatly depend on the required functionality. For example, if you need X, things are going to take a lot more space than if you don't.
 
  


Reply



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
build my own tiny computer? hydraMax Programming 8 02-03-2012 03:45 PM
Any one can build a ubuntu UML rootfs successfully ? 5883 Linux - Virtualization and Cloud 1 11-26-2011 08:01 AM
How to reduce size of rootfs.jffs2 sumiram Linux - Software 0 01-28-2011 05:18 AM
"No space left on device" - rootfs image build error sjremya Linux - Software 2 08-30-2010 12:16 AM
rootfs 0 size left sjcoder Linux - Newbie 1 10-05-2009 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:37 PM.

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
Open Source Consulting | Domain Registration