PDA

View Full Version : [pls help] cannot load kernel


rx_b10
March 4th, 2009, 07:54
hi all, i am newbie pls help
http://www.freeimagehosting.net/uploads/ceca6d61ca.jpg

i upgrade my FreeBSD7.1, i add some gnome component and
after that i restart. then appear this error


how to fix my kernel ?



thx u all

ale
March 4th, 2009, 10:26
Try typing
unload kernel
boot /boot/kernel.old/kernel

mickey
March 4th, 2009, 10:31
You may try the following at the loader prompt:

boot /boot/kernel/kernel

if that fails, try:

boot /boot/kernel.old/kernel

If this still does not succeed, try this:

Boot your system off a 7.1-RELEASE CD
Enter the "fixit" mode
Mount the harddisk partition containing your root filesystem (and the /boot directory with your kernel)
See what's wrong with the kernel on your harddisk
See if there is another kernel you could possibly boot (kernel.GENERIC, etc)
Eventually copy over the GENERIC kernel from the CD to your HD.
Try booting from your harddisk again using the kernel you found/restored from CD.

rx_b10
March 4th, 2009, 11:17
You may try the following at the loader prompt:

boot /boot/kernel/kernel

if that fails, try:

boot /boot/kernel.old/kernel

If this still does not succeed, try this:

Boot your system off a 7.1-RELEASE CD
Enter the "fixit" mode
Mount the harddisk partition containing your root filesystem (and the /boot directory with your kernel)
See what's wrong with the kernel on your harddisk
See if there is another kernel you could possibly boot (kernel.GENERIC, etc)
Eventually copy over the GENERIC kernel from the CD to your HD.
Try booting from your harddisk again using the kernel you found/restored from CD.



thx all for reply,

i try
boot /boot/kernel.prev

this is working, how to copy kernel.prev to kernel ???

i install freebsd to learn C++ program. so i want xwindow. after i add a gnome packet. i want when i type STARTX, gnome desktop will show. but another window appear like this ???

http://img88.imageshack.us/img88/1395/xterm.jpg (http://www.imagehosting.com/)

what should i do to make i login to gnome desktop ???

thx u

SirDice
March 4th, 2009, 13:40
Edit ~/.xinitrc:


exec gnome-session


That greenish stuff is the default TWM window manager.

mickey
March 4th, 2009, 17:11
this is working, how to copy kernel.prev to kernel ???


Try this:


cd /boot/kernel.prev
tar -cf - . | (cd ../kernel; tar -vxpf -)



what should i do to make i login to gnome desktop ???


If you have installed the full gnome2 package, then you should have gdm, the graphical gnome login. To enable it, add the following line to the file /etc/rc.conf:


gnome_enable="YES"


Thereafter you should reboot the machine, and when it comes back up, you should see a graphical login window appearing.

SirDice
March 4th, 2009, 17:16
If you use GDM or XDM, you will need to put that "exec gnome-session" in ~/.xsession instead of ~/.xinitrc.

mickey
March 4th, 2009, 18:33
If you use GDM or XDM, you will need to put that "exec gnome-session" in ~/.xsession instead of ~/.xinitrc.

This holds true only for XDM. When using GDM, there is no need to have .xinitrc nor .xsession files. The system wide gdm setup will do just the right thing.

Despite this, using xdm to log into gnome is not preferable, as xdm as of yet has no console-kit support.

SirDice
March 4th, 2009, 20:14
This holds true only for XDM. When using GDM, there is no need to have .xinitrc nor .xsession files. The system wide gdm setup will do just the right thing.
Ah.. I never use either :e GDM however did in the past?

ale
March 4th, 2009, 22:06
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11-wm.html
but I would suggest you to read also the other chapters.

rx_b10
March 5th, 2009, 08:54
Try this:


cd /boot/kernel.prev
tar -cf - . | (cd ../kernel; tar -vxpf -)





i've try but there some error "cannot write in some file"

now i am trying to install my FreeBSD again...

thx u all for reply if i've a question. i'll ask again

mickey
March 5th, 2009, 10:56
i've try but there some error "cannot write in some file"


Then I guess the target directory (/boot/kernel) was not empty, causing tar to complain.

rx_b10
March 6th, 2009, 03:34
hi all, i've reinstall FreeBSD

and i've enable gdm_enable = "YES"

thx for reply this forum very helpfull