Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can I install Gentoo like this?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 994

PostPosted: Wed Oct 24, 2012 4:13 pm    Post subject: Can I install Gentoo like this? Reply with quote

Can I set up a basic and functioning Gentoo system by doing the following on an existing Gentoo install:

# ROOT=/tmp/root emerge baselayout uclibc busybox

copying /tmp/root to / on another disk, setting up /boot on that disk, and booting it?
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 994

PostPosted: Fri Oct 26, 2012 1:41 pm    Post subject: Reply with quote

I take it this won't work?
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Mon Oct 29, 2012 3:04 pm    Post subject: Reply with quote

Why don't you just chroot into your tmp root?

Otherwise, look into our Prefix and Embedded documentation.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 994

PostPosted: Wed Oct 31, 2012 6:43 pm    Post subject: Reply with quote

yngwin, I'm sorry but I don't follow. I'm trying to come up with an easy way to build a super-minimal Gentoo system that will fit into 256MB RAM. Is my approach above incorrect?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10354
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Oct 31, 2012 7:45 pm    Post subject: Reply with quote

Many things are missing. Just one for instance: baselayout doesn't contain an init system. Alas, I'm no expert.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44020
Location: 56N 3W

PostPosted: Wed Oct 31, 2012 8:58 pm    Post subject: Reply with quote

grant123,

Are you trying to build in a very small system or build on a normal PC for a very small system?

You need two different approaches. In the first case - don't.
In the latter case, do a normal install, in a chroot, then copy out the useful bits. If the copy doesn't work, you have left something behind.

You will not need /usr/portage, /usr/src they are easy to leave out.
You won't need any man pages or documentaion, put
Code:
noman noinfo nodoc
into your FEATURES to save you hunting things down.

You can get rid of most of gcc - it does provide some libraries and the rest of the toolchain.
/usr/share/zoneinfo can go - you on;y need your own timezone file which you should have copied to /etc/locatime.

Now it gets harder ...
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 994

PostPosted: Thu Nov 01, 2012 6:41 pm    Post subject: Reply with quote

Neddy, do you think I could get it down to 192MB without compression?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44020
Location: 56N 3W

PostPosted: Thu Nov 01, 2012 8:18 pm    Post subject: Reply with quote

grant123,

A long time ago when users were pleased to have a 128Mb (yes, Mb) pen drive, I did hear of someone booting Gentoo from it.
Both pen drives and Gentoo have grown. I suspect that 192Mb will be a real challenge.

If you want to get an indication, take a stage3 file, add a kernel binary and a bootloader, then start ripping things out.

Tell what you you want to achieve and on what hardware. If you tell us your problem, you may get solutions you didn't even know existed, rather than contributions to your perceived solution.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 994

PostPosted: Sun Nov 04, 2012 11:16 pm    Post subject: Reply with quote

Thanks Neddy. I'm just trying to come up with a Linux OS that will run entirely from 256MB RAM.

Which are the best super-small Linux distros? I've heard Tiny Core is good.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum