Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc on other partition than root [SOLVED]
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
Aries-Belgium
l33t
l33t


Joined: 08 Jul 2005
Posts: 730
Location: Willebroek, Belgium

PostPosted: Sat Aug 12, 2006 1:38 am    Post subject: /etc on other partition than root [SOLVED] Reply with quote

Hi,

I've put my /etc on another partition. But now I have trouble booting. My kernel gets booted but then he asks:
Code:
Enter runlevel:

I tried entering a few, like 2, 3 and 5 but everytime I get something like "Nothing to do in this runlevel". I think a bit normal because he can't find the /etc folder to read the runlevels.

My question is now: can I tell the kernel in grub that my /etc is on another partition?

I boot the kernel with grub now like this:
Code:
root (hd0,0)
kernel (hd0,0)/boot/vmlinuz kernel=/dev/sda4

_________________
Ep2.nl | Developers Community


Last edited by Aries-Belgium on Sat Aug 12, 2006 3:05 am; edited 1 time in total
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sat Aug 12, 2006 1:42 am    Post subject: Reply with quote

You will need to create an initrd/initramfs that mounts /etc before the init scripts run.

EDIT : Of course, I would consider doing this to be a big waste of time.


Last edited by cyrillic on Sat Aug 12, 2006 1:58 am; edited 1 time in total
Back to top
View user's profile Send private message
troymc
Guru
Guru


Joined: 22 Mar 2006
Posts: 553

PostPosted: Sat Aug 12, 2006 1:43 am    Post subject: Reply with quote

No.

There are only a few things really needed on your root filesystem - and /etc is one of them.

If you need to make room, move something else.

You have to have /bin, /sbin, /etc, /dev, /lib on /.

Everything else can be mounted from somewhere else.

But all of those are necessary to boot the machine.



troymc
Back to top
View user's profile Send private message
Aries-Belgium
l33t
l33t


Joined: 08 Jul 2005
Posts: 730
Location: Willebroek, Belgium

PostPosted: Sat Aug 12, 2006 3:04 am    Post subject: Reply with quote

Okay, thanks for your replies.

Just copied the data on the partition to my /etc on my root and rebooted. Worked like a charm, like suspected ;)
_________________
Ep2.nl | Developers Community
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