Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Messed up setting up GRUB
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 19, 2010 2:58 pm    Post subject: Messed up setting up GRUB Reply with quote

I blew it. I was trying to set up GRUB which installed and everything.I tried to set it up to boot my kernel but apparently I messed up. Before I rebooted I umounted proc, boot, and gentoo. How can I get back into my environment and fix the problem and/or problems.
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 19, 2010 3:01 pm    Post subject: Reply with quote

Oh yeah, if it would be easier to just start over I can.
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri Mar 19, 2010 3:04 pm    Post subject: Reply with quote

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6#doc_chap1

Do the chroot from Handbook and you are back in your install.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Mar 19, 2010 3:30 pm    Post subject: Reply with quote

After chrooting, can you post this :

Code:

# fdisk -l
# mount
# cat /etc/fstab
# cat /boot/grub/grub.conf
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 19, 2010 3:45 pm    Post subject: Reply with quote

No, no, no. The computer is off so I need to somehow boot back into it. but I don't know how. Can I use the install CD?
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 19, 2010 4:01 pm    Post subject: Reply with quote

GRUB is installed but I didn't set it right cause is didn't boot my kernel.
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Raistlin Majere
n00b
n00b


Joined: 04 Feb 2010
Posts: 61

PostPosted: Fri Mar 19, 2010 4:02 pm    Post subject: Reply with quote

Yes , boot the install cd , mount your root partition , and any others you created like /boot then provide they are mounted at /mnt/gentoo, it's exactly like in the handbook during install, just

Code:
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
cp /etc/resolv.conf /mnt/gentoo/etc/
chroot /mnt/gentoo /bin/bash
env-update && source /etc/profile


Then you can fix whatever you need
Back to top
View user's profile Send private message
Raistlin Majere
n00b
n00b


Joined: 04 Feb 2010
Posts: 61

PostPosted: Fri Mar 19, 2010 4:07 pm    Post subject: Reply with quote

Quote:
GRUB is installed but I didn't set it right cause is didn't boot my kernel.


If you know what's wrong it's possible to edit grub from the boot menu , instuctions are at the bottom of the menu, comes in handy when you make a typo in the config file, if you don't know what is wrong , then would probably be best just to chroot in and post the 4 items that d2_racing asked for.
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 19, 2010 4:24 pm    Post subject: Reply with quote

Ok, then. I will stick the cd and remount everything and then chroot into my environment.

Quote:
If you know what's wrong it's possible to edit grub from the boot menu , instuctions are at the bottom of the menu, comes in handy when you make a typo in the config file, if you don't know what is wrong , then would probably be best just to chroot in and post the 4 items that d2_racing asked for.


I don't know what I did wrong. I was hoping that you guys could help me wit that after I get back into my environment.

Right now I am doing school(I'm homeschooled). After I finish( probably in like two hours or so) I will boot my Linux machine. I'm sure you guys will need outputs of certain commands and stuff to figure out how I need to set up GRUB so why don't say what you need now. Also when I boot to the CD do I just do the normal thing or do I need to do anything special?
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Fri Mar 19, 2010 8:50 pm    Post subject: Reply with quote

I think d2_racing already asked for the output of these commands:
    # fdisk -l
    # mount
    # cat /etc/fstab
    # cat /boot/grub/grub.conf
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 19, 2010 9:52 pm    Post subject: Reply with quote

Here is the output of fdisk -l
Code:
Disk /dev/hda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x878f878f


     Device   Boot     Start     End     Blocks     Id     System
/dev/hda1      *           1         5      40131     83       Linux
/dev/hda2                   6       528 4200997+   82       Linux swap / Solaris
/dev/hda3                529     7297 54371992+ 83       Linux

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/tracks, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0358c989


Here are the contents of fstab:
Code:

/dev/hda1     /boot               ext2     noauto,noatime      1 2
/dev/hda3     /                      ext3     noatime                0 1
/dev/hda2     none                swap     sw                       0 0
/dev/cdrom   /mnt/cdrom      auto      noauto,ro             0 0
/dev/fd0        /mnt/floppy      auto      noauto                 0 0
/dev/hdb1     /media/data      ext3      noauto                 0 0

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


the others will be on my next post in a few minutes
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Fri Mar 19, 2010 10:13 pm    Post subject: Reply with quote

also post the output of lspci -n please.

If you are having difficulties posting, because you can't copy/paste, then use wgeetpaste.
If you are chrooted into your installation, then run these:
Code:
emerge wgetpaste
lspci -n | wgetpaste
wgetpaste /boot/grub/grub.conf
and so on...

And paste the URLs here.

If you aren't chrooted in then redo all the mount and chroot steps from the Handbook:
Code:
livecd / # mount -t proc proc /mnt/gentoo/proc
livecd / # mount -o bind /dev /mnt/gentoo/dev
livecd / # cp -L /etc/resolv.conf /mnt/gentoo/etc/
livecd / # chroot /mnt/gentoo /bin/bash
livecd / # env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache...
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 19, 2010 10:20 pm    Post subject: Reply with quote

here is the output of "mount"

Code:

rootfs on / type rootfs (rw)
tmpfs on / type tmpfs (rw,relatime)
/dev/hdc on /mnt/cdrom type iso9660 (ro,relatime)
/dev/loop0 on /mnt/livecd type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5.mode=620)
tmpfs on /mnt/livecd/lib/firmware type tmpfs (rw,relatime)
tmpfs on /mnt/livecd/usr/portage type tmpfs (rw,relatime)
usbfs on /proc/bus/usb type usbfs (rw,nosuid,noexec,relatime,devgid=85,devmode=664)
/dev/hda3 on / type ext3 (rw,relatime,errors=continue,date=writeback)
/dev/hda1 on /boot type ext3 (rw,relatime,errors=continue,data=writeback)
none on /proc type proc (rw,relatime)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)


here is the output of cat /boot/grub/grub.conf

Code:

default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.31-r10
root (hd0,0)
kernel /boot/kernel-2.6.31-r10 root=/dev/sda3 init=/bin/bb


quick note: I edited fstab because I hadn't set it prior to this. I don't know if that may have been one of my problems, but I figured you guys should know either way.
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Fri Mar 19, 2010 10:28 pm    Post subject: Reply with quote

Here is the problem. Your kernel line in grub.conf should read:
Code:
kernel /boot/kernel-2.6.31-r10 root=/dev/hda3

If kernel-2.6.31-r10 is the exact same as the name of your kernel in the /boot folder.

It would also be nice to see the output of lspci -n
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 19, 2010 10:36 pm    Post subject: Reply with quote

Typing it out is slightly annoying but I have done all the other four commands so I will continue on this last one.

Code:

00:00.0 0600: 8086:2560 (rev 01)
00:01.0 0604: 8086:2561 (rev 01)
00:1d.0 0c03: 8086:24c2 (rev 01)
00:1d.1 0c03: 8086:24c4 (rev 01)
00:1d.2 0c03: 8086:24c7 (rev 01)
00:1d.7 0c03: 8086:24cd (rev 01)
00:1e.0 0604: 8086:244e (rev 81)
00:1f.0 0601: 8086:24c0 (rev 01)
00:1f.1 0101: 8086:24cb (rev 01)
00:1f.3 0c05: 8086:24c3 (rev 01)
00:1f.5 0401: 8086:24c5 (rev 01)
01:00.0 0300: 10de:0221 (rev a1)
02:01.0 0780: 14f1:2016 (rev 01)
02:08.0 0200: 8086:1039 (rev 81)


*whew* that was tiring.
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Fri Mar 19, 2010 11:06 pm    Post subject: Reply with quote

I guess you missed my post about wgetpaste about 4 posts up.
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 19, 2010 11:13 pm    Post subject: Reply with quote

Quote:
I guess you missed my post about wgetpaste about 4 posts up.


I didn't miss it. I just decided type it out instead.

Oh yeah, it turns out that is should have been "-r6" not "-r10"

Are there any other important places where I could have put that incorrect kernel name?
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Fri Mar 19, 2010 11:22 pm    Post subject: Reply with quote

Well, it would be a better idea to copy/paste or use wgetpaste on output like that, because typos can easily creep in unnoticed.

Otherwise, now that your grub.conf is fixed, does your installation boot successfully?
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 19, 2010 11:24 pm    Post subject: Reply with quote

Yeah, I guess you're right. I guess I shall try the reboot. I do need to umount dev, proc, gentoo, and boot, right?
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Fri Mar 19, 2010 11:27 pm    Post subject: Reply with quote

goldfish777 wrote:
Yeah, I guess you're right. I guess I shall try the reboot. I do need to umount dev, proc, gentoo, and boot, right?


Well it does improve the typing skills, but no worries, you'll get plenty of practice with Gentoo.

Yes, exit the chroot and unmount everything, then reboot. Something like:
Code:
livecd / # exit
livecd / # umount /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo/boot /mnt/gentoo
livecd / # reboot
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 19, 2010 11:50 pm    Post subject: Reply with quote

ok, I rebooted. It booted the kernel but it looked like the kernel didn't boot completely. Also, I have no prompt and the keyboard doesn't work. Any thoughts?
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sat Mar 20, 2010 1:21 pm    Post subject: Reply with quote

Was there any error output when you booted?

A camera could be helpful.
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Sun Mar 21, 2010 2:15 am    Post subject: Reply with quote

Here is a link to a picture of my screen(I edited it and made it easier to read). I suspect that I may have compiled the kernel incorrectly but I don't know.

http://img227.imageshack.us/i/errorbx.png/
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Raistlin Majere
n00b
n00b


Joined: 04 Feb 2010
Posts: 61

PostPosted: Sun Mar 21, 2010 2:46 am    Post subject: Reply with quote

try this
when the boot menu comes up , press e to edit , move the "cursor" to the kernel line , press e to edit , make it say :
Code:
kernel /boot/kernel-2.6.31-r6 root=/dev/sda3

press the "esc" key when your done editing that line , then press b to boot
(instructions are at bottom of screen )

I think you installation is naming things different than your live cd , hence the change back to "sda3"
If all goes okay , you still need to edit /boot/grub/grub.conf as editing from the menu isn't permanent .
good luck
Back to top
View user's profile Send private message
Raistlin Majere
n00b
n00b


Joined: 04 Feb 2010
Posts: 61

PostPosted: Sun Mar 21, 2010 2:51 am    Post subject: Reply with quote

Or
Code:
kernel /boot/kernel-2.6.31-r10 root=/dev/sda3

from your previous posts , not sure which kernel you have
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
Goto page 1, 2  Next
Page 1 of 2

 
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