LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 06-12-2009, 09:25 PM   #1
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Rep: Reputation: 45
Missed one step step in install now gentoo wont boot


I installed Gentoo from my Debian installation. Followed 'The Gentoo Linux alternative installation method HOWTO' but missed one important step, flushing the environment during chroot.

Code:
env -i HOME=$HOME TERM=$TERM chroot /mnt/gentoo /bin/bash
When booting Gentoo I get this message:

Activating mdev
Determing root device
Mounting root...
Booting (initramfs)>> ERROR: your real /dev is missing files required to boot (console and null)..
Switch_root: Can't open '/dev/console': No such file or directory

Then the Kernel panics.


My question is do I need to re-install or can this be fixed.

I've tryed using MAKEDEV to install /dev/console but no luck.

Tried two kernels, one I compiled myself and the genkernel.

Thanks in advance for any help.
 
Old 06-13-2009, 06:06 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Simple mknode for both will do - use your Debian system as an example. Either chroot into the gentoo system (if you can), or merely use the mountpoint.
 
Old 06-15-2009, 06:57 AM   #3
mkborg
LQ Newbie
 
Registered: Apr 2008
Location: Russia, Moscow
Distribution: Gentoo
Posts: 6

Rep: Reputation: 1
Cool some stage3 archives lack necessary items

Some "stage3" archives lack few items (like /dev/console and /dev/null) necessary for boot.
To fix your installation, you need to:
- mount your gentoo root device in read/write mode (for example to /mnt/gentoo)
- create missing pseudo-files (something like the following):
mknod /mnt/gentoo/dev/console c 5 1
mknod /mnt/gentoo/dev/null c 1 3
- unmount your gentoo root device or execute "sync" command
- reboot
 
Old 06-15-2009, 12:37 PM   #4
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Original Poster
Rep: Reputation: 45
Sorry for the late response but work called and I had to go.

Thanks to syg00 and mkborg I was able to get Gentoo to boot, now all I have to do is build my own kernel, install Gnome then enjoy.

Thanks again guys.

Last edited by 62chevy; 06-15-2009 at 12:38 PM. Reason: missed words :(
 
Old 06-15-2009, 09:24 PM   #5
d2_racing
Gentoo support team
 
Registered: May 2009
Location: Ste-Foy,Québec,Canada
Distribution: Gentoo
Posts: 115

Rep: Reputation: 17
Good luck, more specific for your kernel :P
 
Old 06-16-2009, 06:50 AM   #6
mcdebugger
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Good Luck!
Another way is to simply copy necessary files from another stage3 tarball.
Once I removed entire /dev directory (devfs unmounted) on working system and this method helped me to "restore" my system )

Last edited by mcdebugger; 06-16-2009 at 06:55 AM.
 
  


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
Step-By-Step Instruction to install Linksys WPC11 Ver.4 Wireless Card Zypher Linux - Hardware 8 08-12-2009 10:43 AM
Dual Boot Fedora 8 and XP Not Working Need Step by Step Help kingzappa Linux - Newbie 9 01-19-2009 05:08 PM
Install Netgear wg311v wireless card on Fedora Core 6 (step by step help thanks!) jpop Linux - Hardware 1 03-07-2007 12:16 PM
Need a step by step instruction to dual boot knoppix and XP on the 1 hdd Andrewt84 Linux - Newbie 2 10-11-2005 06:41 AM
Step by step procedure in replacing Red Hat 9.0 by Ubuntu in my dual boot XP/linux charliemerleau Linux - Software 1 10-04-2005 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 02:35 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