Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo install finished, wont boot, HELP!!!
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
pertplus
n00b
n00b


Joined: 20 Jun 2011
Posts: 22

PostPosted: Tue Jun 21, 2011 4:00 am    Post subject: gentoo install finished, wont boot, HELP!!! Reply with quote

hello all,
I just finished installing the latest version of gentoo. I *thought* i followed all of the instructions perfectly, but upon performing the final reboot and removing the livecd, my laptop displays the message , "os not found" .

Please tell me i can use the livecd to fix this, without having to go through the entire install process again... Laptop is gateway mx6930 intel 945gm chipset
I chose lilo for the bootloader and im assuming i set it up wrong or something but i really hope i can fix this with!?out doing everything over again...how can i chroot on to my new filesystem from the cd!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5356
Location: Goose Creek SC

PostPosted: Tue Jun 21, 2011 4:34 am    Post subject: Reply with quote

boot the cd, mount the gentoo partitions, enter the chroot is standard procdure for correcting boot problems. summarized (for nominal partition scheme) as:
Quote:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"

did you do this? http://forums.gentoo.org/viewtopic-t-880149.html

boot problems are a frequent result of a kernel missing appropriate hard drive adapter drivers. boot cd, run
Code:
lspci
post results for sata, ata, ide devices.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
pertplus
n00b
n00b


Joined: 20 Jun 2011
Posts: 22

PostPosted: Tue Jun 21, 2011 5:00 am    Post subject: Reply with quote

thank you for porviding me with that little sequence..ive got to write that down. After doing that i opened lilos conf file and noticed it was rife with typos.. :p missing initial slashes mostly, and an ry instead of r6 ;)

Then i ran lilo and it worked..although it gave one error "warning: lba32 addressing assumed"

Right now its starting up, taking a while. Ill post any problems..how long shouuld it take to boot now?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5356
Location: Goose Creek SC

PostPosted: Tue Jun 21, 2011 5:03 am    Post subject: Reply with quote

did you do this? http://forums.gentoo.org/viewtopic-t-880149.html

if not it will hang up trying to run init.

no stopwatch but 1-2 min.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
pertplus
n00b
n00b


Joined: 20 Jun 2011
Posts: 22

PostPosted: Tue Jun 21, 2011 5:22 am    Post subject: Reply with quote

it did hang, so i followed the instrctions in the link, rebooted, but still hangs in same spot near beginning. when i made the devices console, null, and zero as per the link, both console and zero were already there, so they wernt made. So now im going to rm all three and make them as the linksaid, then reboot again
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5356
Location: Goose Creek SC

PostPosted: Tue Jun 21, 2011 5:24 am    Post subject: Reply with quote

don't forget the udev link

if from cd with gentoo partitions mounted but not in the chroot:
Code:
cd mnt/gentoo/etc/runlevels/sysinit
ln -s /etc/init.d/udev udev


if from chroot:
Code:
cd /etc/runlevels/sysinit
ln -s /etc/init.d/udev udev
or
Code:
rc-update add udev sysinit


if still having hang, after remaking nodes and adding udev to the sysinit runlevel, take a picture of the hang cell phone or digicam and post on a free photo site posying the url here
_________________
Defund the FCC.
Back to top
View user's profile Send private message
pertplus
n00b
n00b


Joined: 20 Jun 2011
Posts: 22

PostPosted: Tue Jun 21, 2011 5:37 am    Post subject: Reply with quote

did make the udev link as in the other post, still freezing on "init-early.sh used the greatest stack depth: 5792 bytes left"

Any ideas? Thanks for the help so far..also i just noticed this thread is posted twice...didnt mean to do that
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5356
Location: Goose Creek SC

PostPosted: Tue Jun 21, 2011 6:16 am    Post subject: Reply with quote

enter chroot and run:
Code:
rc-update add udev sysinit
exit
reboot

you can enter the other thread and click edit, on the bottom find "delete this post", check it, and submit
_________________
Defund the FCC.
Back to top
View user's profile Send private message
pertplus
n00b
n00b


Joined: 20 Jun 2011
Posts: 22

PostPosted: Tue Jun 21, 2011 6:26 am    Post subject: Reply with quote

here are pics of the hang, you cant see it all but maybe it wil help..

Http://random.flamecore.com/filez/06212011.jpg
Http://random.flamecore.com/filez/06212011(1).jpg


Ill try what you suggested
EDIT: didnt work, confirmed udev was already installed in runlevel sysinit
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5356
Location: Goose Creek SC

PostPosted: Tue Jun 21, 2011 6:36 am    Post subject: Reply with quote

the picture of the hang is exactly what doing http://forums.gentoo.org/viewtopic-t-880149.html prevents; you may have had a tiny typo.
using rc-update from the chroot may avoid the most likely. While there it would be good to run rc-update show to verify that udev is in fact in the sysinit runlevel.
you could also
Code:
emerge udev
as additional assurance.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5356
Location: Goose Creek SC

PostPosted: Tue Jun 21, 2011 6:42 am    Post subject: Reply with quote

from cd with gentoo partitions mounted
Code:
ls -l /mnt/gentoo/dev
post result, photo if more convenient

btw what version stage3??

if that all looks good, last known is; from chroot, edit kernel config to
Quote:
General setup --->
[ ] Enable deprecated sysfs features to support old userspace tools

Device Drivers --->
Generic Driver Options --->
(/sbin/hotplug) path to uevent helper
[*] Maintain a devtmpfs filesystem to mount at /dev
[*] Automount devtmpfs at /dev, after the kernel mounted the rootfs

File Systems --->
[*] Dnotify support
[*] Inotify support for userspace
Pseudo filesystems --->
[*] Virtual memory file system support (former shm fs)

ensure /boot partition is mounted, recompile and recopy the kernel

ensure /etc/fstab includes
Quote:
shm /dev/shm tmpfs defaults 0 0

Code:
exit
reboot

_________________
Defund the FCC.
Back to top
View user's profile Send private message
pertplus
n00b
n00b


Joined: 20 Jun 2011
Posts: 22

PostPosted: Tue Jun 21, 2011 4:47 pm    Post subject: Reply with quote

ok, so i emerged udev, which downloaded about 20 things so i guess it had to be done. If i try to readd udev to the sysinit it skips it because its already there. do i need to remove it, then add it? At any rate, im still hanging at the same point


Im now going to try remaking the kernel wwith the options you specified

Im using the latest tarball
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Jun 21, 2011 6:05 pm    Post subject: Reply with quote

pertplus,

"os not found" is a message from your BIOS, not Gentoo.
You need to flag exactly one partition on your HDD as bootable. Its traditional to set the flag on / if you don't gave a boot.

Boot the liveCD, run
Code:
fdisk /dev/sda

check and set your boot flags

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63       80324       40131   fd  Linux raid autodetect
is good, if the flag is off on every other partition.

This is totally harmless to your install.
_________________
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
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5356
Location: Goose Creek SC

PostPosted: Tue Jun 21, 2011 6:20 pm    Post subject: Reply with quote

@neddy Thanks. I'm less ignorant now.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
pertplus
n00b
n00b


Joined: 20 Jun 2011
Posts: 22

PostPosted: Tue Jun 21, 2011 6:55 pm    Post subject: Reply with quote

thanks for the reply neddy, but the problem has changed since this post began. I no longer recieve the 'os not found' error, but freeze on boot after lilo dyring gentoo initialization.
i have three partitions, root swap and boot. Only boot is flagged as bootable, as confirmed in fdisk by being the only one with a *. Here are contents of my /etc/fstab from chroot on livecd:
Quote:

/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext3 noatime 0 1
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0

proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0


going to try the kernel options suggested by donahue and recompile
Back to top
View user's profile Send private message
pertplus
n00b
n00b


Joined: 20 Jun 2011
Posts: 22

PostPosted: Tue Jun 21, 2011 7:36 pm    Post subject: Reply with quote

interesting... after adding the options specified by donahue and recompiling, I no longer hang while loading gentoo.

Instead, my computer reboots before I see any of the init text. This continues in a loop.

The good news is im using links to post this instead of my cell phone now! fun !

So either way I guess it has to do with my compile options?

I'm going to look over them again...
Back to top
View user's profile Send private message
pertplus
n00b
n00b


Joined: 20 Jun 2011
Posts: 22

PostPosted: Tue Jun 21, 2011 8:16 pm    Post subject: Reply with quote

oops, that was because i forgot I have to emerge lilo again and stuff... also it seems i cant edit posts with links

EDIT** wait, i dont have to emerge it again after all, config is still there after recompile..so why the reboot loop? Im recompiling again with some different options. Of course seeing as i know nothing about this, any improvement in the situation will be purely luck based... And i still cant edit post with lniks
Back to top
View user's profile Send private message
pertplus
n00b
n00b


Joined: 20 Jun 2011
Posts: 22

PostPosted: Tue Jun 21, 2011 8:58 pm    Post subject: major progress? Reply with quote

wow, i finally got through the boot! Could have been a couple things. I added ext4 support and the option where it says something like 'treat ext3 as ext4'. Also i noticed the compiled image was placed in /x86/ not /i386/ as in the manual.Also, when i tried to copy the compiled image to /boot/kernelname , it wouldnt let me, saying it was read only. Then i did umount /dev/sda1 and mount /dev/sda1 /boot (in chroot environment) and the cp then worked. The i exit' reboot and it booted!

But now, trouble. I have no 'iwconfig' command, and no net-setup, .....EDIT i did emerge wireless-tools on the live cd in chroot but still cant do net setup, wlan0 isnt a device now, apparently (driver shows up in lscia)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5356
Location: Goose Creek SC

PostPosted: Tue Jun 21, 2011 11:31 pm    Post subject: Reply with quote

net-setup is only available in the cd system.
see http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4
_________________
Defund the FCC.
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4117
Location: Houston, Republic of Texas

PostPosted: Tue Jun 21, 2011 11:41 pm    Post subject: Reply with quote

wireless-tools only does WEP

if you use WPA, you will probably want to emerge wpa_supplicant and get that set up
you should also emerge net-wireless/iw, as that's needed for the nl80211 way of configuring things from what i understand
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
pertplus
n00b
n00b


Joined: 20 Jun 2011
Posts: 22

PostPosted: Wed Jun 22, 2011 2:59 am    Post subject: Success! Reply with quote

Well, it took 30 some odd hours, infinite recompiles and a whole lot of brain-twisting rage, but I FINALLY got everything to boot with wireless working. I'm learning a lot..this is all very fascinating and I could see myself becoming..engulfed

My next step is to set up a window system. Gonna try Enlightenment because I liked how it looked on the pentoo cd. Hopefully wont have to recompile again for it..

Thank you so much everyone for your help!! You'll be hearing from me again..probably very soon
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