| View previous topic :: View next topic |
| Author |
Message |
pertplus n00b

Joined: 20 Jun 2011 Posts: 22
|
Posted: Tue Jun 21, 2011 4:00 am Post subject: gentoo install finished, wont boot, HELP!!! |
|
|
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 |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 5271 Location: Goose Creek SC
|
Posted: Tue Jun 21, 2011 4:34 am Post subject: |
|
|
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 post results for sata, ata, ide devices. _________________ Defund the FCC. |
|
| Back to top |
|
 |
pertplus n00b

Joined: 20 Jun 2011 Posts: 22
|
Posted: Tue Jun 21, 2011 5:00 am Post subject: |
|
|
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 |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 5271 Location: Goose Creek SC
|
|
| Back to top |
|
 |
pertplus n00b

Joined: 20 Jun 2011 Posts: 22
|
Posted: Tue Jun 21, 2011 5:22 am Post subject: |
|
|
| 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 |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 5271 Location: Goose Creek SC
|
Posted: Tue Jun 21, 2011 5:24 am Post subject: |
|
|
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 |
|
 |
pertplus n00b

Joined: 20 Jun 2011 Posts: 22
|
Posted: Tue Jun 21, 2011 5:37 am Post subject: |
|
|
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 |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 5271 Location: Goose Creek SC
|
Posted: Tue Jun 21, 2011 6:16 am Post subject: |
|
|
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 |
|
 |
pertplus n00b

Joined: 20 Jun 2011 Posts: 22
|
|
| Back to top |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 5271 Location: Goose Creek SC
|
Posted: Tue Jun 21, 2011 6:36 am Post subject: |
|
|
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 as additional assurance. _________________ Defund the FCC. |
|
| Back to top |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 5271 Location: Goose Creek SC
|
Posted: Tue Jun 21, 2011 6:42 am Post subject: |
|
|
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 |
_________________ Defund the FCC. |
|
| Back to top |
|
 |
pertplus n00b

Joined: 20 Jun 2011 Posts: 22
|
Posted: Tue Jun 21, 2011 4:47 pm Post subject: |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 30016 Location: 56N 3W
|
Posted: Tue Jun 21, 2011 6:05 pm Post subject: |
|
|
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
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 |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 5271 Location: Goose Creek SC
|
Posted: Tue Jun 21, 2011 6:20 pm Post subject: |
|
|
@neddy Thanks. I'm less ignorant now. _________________ Defund the FCC. |
|
| Back to top |
|
 |
pertplus n00b

Joined: 20 Jun 2011 Posts: 22
|
Posted: Tue Jun 21, 2011 6:55 pm Post subject: |
|
|
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 |
|
 |
pertplus n00b

Joined: 20 Jun 2011 Posts: 22
|
Posted: Tue Jun 21, 2011 7:36 pm Post subject: |
|
|
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 |
|
 |
pertplus n00b

Joined: 20 Jun 2011 Posts: 22
|
Posted: Tue Jun 21, 2011 8:16 pm Post subject: |
|
|
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 |
|
 |
pertplus n00b

Joined: 20 Jun 2011 Posts: 22
|
Posted: Tue Jun 21, 2011 8:58 pm Post subject: major progress? |
|
|
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 |
|
 |
DONAHUE Watchman


Joined: 09 Dec 2006 Posts: 5271 Location: Goose Creek SC
|
|
| Back to top |
|
 |
cach0rr0 Moderator


Joined: 13 Nov 2008 Posts: 4117 Location: Houston, Republic of Texas
|
Posted: Tue Jun 21, 2011 11:41 pm Post subject: |
|
|
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 |
|
 |
pertplus n00b

Joined: 20 Jun 2011 Posts: 22
|
Posted: Wed Jun 22, 2011 2:59 am Post subject: Success! |
|
|
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 |
|
 |
|