Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I edit grub.conf
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
somas1
n00b
n00b


Joined: 14 Jul 2004
Posts: 64

PostPosted: Fri Dec 24, 2004 3:07 am    Post subject: How do I edit grub.conf Reply with quote

I think I made a minor error in my grub.conf I'd like to edit this file but I can't boot into gentoo and I can't for the life of me figure out how to edit this file when I boot from a live cd. Please help a noob
Back to top
View user's profile Send private message
landon
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 159

PostPosted: Fri Dec 24, 2004 3:10 am    Post subject: Reply with quote

Refer to the handbook. Make sure you understand at least a few steps this time.

Mount the /boot/ partition as /mnt/gentoo (to avoid creating another mount point.)

Go into the mountpoint, and edit grub/grub.conf
Back to top
View user's profile Send private message
somas1
n00b
n00b


Joined: 14 Jul 2004
Posts: 64

PostPosted: Fri Dec 24, 2004 3:20 am    Post subject: Reply with quote

landon wrote:
Refer to the handbook. Make sure you understand at least a few steps this time.

Mount the /boot/ partition as /mnt/gentoo (to avoid creating another mount point.)

Go into the mountpoint, and edit grub/grub.conf


Ok I typed mount /dev/hda1 /mnt/gentoo

then cd /mnt/gentoo

there are no grub files here
Back to top
View user's profile Send private message
landon
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 159

PostPosted: Fri Dec 24, 2004 3:22 am    Post subject: Reply with quote

Which files are there?
Back to top
View user's profile Send private message
somas1
n00b
n00b


Joined: 14 Jul 2004
Posts: 64

PostPosted: Fri Dec 24, 2004 3:24 am    Post subject: Reply with quote

landon wrote:
Which files are there?


just lost+found
Back to top
View user's profile Send private message
landon
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 159

PostPosted: Fri Dec 24, 2004 3:34 am    Post subject: Reply with quote

What's your partition layout look like?

If /dev/hda1 is indeed your /boot partition, then it's quite possible that you missed a step or two during the installation.

It's possible that you failed to mount the /boot partition as the guide suggested, which would render any kernel installation pointless.

Please post your partition scheme so that we may proceed.
Back to top
View user's profile Send private message
somas1
n00b
n00b


Joined: 14 Jul 2004
Posts: 64

PostPosted: Fri Dec 24, 2004 3:37 am    Post subject: Reply with quote

landon wrote:
What's your partition layout look like?

If /dev/hda1 is indeed your /boot partition, then it's quite possible that you missed a step or two during the installation.

It's possible that you failed to mount the /boot partition as the guide suggested, which would render any kernel installation pointless.

Please post your partition scheme so that we may proceed.


I guess I may have done that. I could have sworn that I mounted it though
Back to top
View user's profile Send private message
somas1
n00b
n00b


Joined: 14 Jul 2004
Posts: 64

PostPosted: Fri Dec 24, 2004 4:01 am    Post subject: partition scheme Reply with quote

dev/hda1 boot
dev/hda2 swap
dev/hda3 root
Back to top
View user's profile Send private message
landon
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 159

PostPosted: Fri Dec 24, 2004 4:11 am    Post subject: Reply with quote

That took a while :?

Boot up your livecd, and

mount /dev/hda3 /mnt/gentoo

mkdir /mnt/bootreal && mount /dev/hda1 /mnt/bootreal

ls -al /mnt/gentoo/boot

(there should be a grub dir, and your kernel images. Post if that's not the case)

cp -Rp /mnt/gentoo/boot/* /mnt/bootreal/

ls -al /mnt/bootreal

(to verify that your boot files are now in the correct location, i.e /dev/hda1)
Back to top
View user's profile Send private message
somas1
n00b
n00b


Joined: 14 Jul 2004
Posts: 64

PostPosted: Fri Dec 24, 2004 4:24 am    Post subject: Reply with quote

landon wrote:
That took a while :?

Boot up your livecd, and

mount /dev/hda3 /mnt/gentoo

mkdir /mnt/bootreal && mount /dev/hda1 /mnt/bootreal

ls -al /mnt/gentoo/boot

(there should be a grub dir, and your kernel images. Post if that's not the case)

cp -Rp /mnt/gentoo/boot/* /mnt/bootreal/

ls -al /mnt/bootreal

(to verify that your boot files are now in the correct location, i.e /dev/hda1)


thanks for your help.

When I type ls -al /mnt/gentoo/boot get

Code:
 total 8
drwxr-xr-x 2 root root 4096 dec 23 21:49
drwxr-xr-x 4 root root  4096 dec 23 21:49
Back to top
View user's profile Send private message
shade266
Guru
Guru


Joined: 29 Oct 2003
Posts: 593
Location: Internal

PostPosted: Fri Dec 24, 2004 5:02 am    Post subject: Reply with quote

Code:
mount /dev/hda3 /mnt/gentoo

Code:
mount -t proc none /mnt/gentoo/proc

Code:
mount /dev/hda1 /mnt/gentoo/boot

Code:
chroot /mnt/gentoo /bin/bash

Code:
env-update && source /etc/profile

Code:
nano /etc/make.conf


I added the mount of /proc just in case you were going to continue on with an install.
_________________
I've been away for a long time, bear with me.
Back to top
View user's profile Send private message
landon
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 159

PostPosted: Fri Dec 24, 2004 5:06 am    Post subject: Reply with quote

You do realise that you should re-read the handbook, right?

No offense or anything, but it seems like you're giving me less to work with each time you reply :x

It's almost as if you skipped over a few of the details in the handbook. Had you mounted your /dev/hda1 to /mnt/gentoo/boot, you wouldn't be in this particular situation.

Start here, set the date according to the beginning of the next page and skip the rest.

Then:

mount -t proc none /mnt/gentoo/proc

chroot /mnt/gentoo /bin/bash && env-update && source /etc/profile

Resume here to reinstall your kernel sources, and complete the rest of the instructions on that page.

Skip over to here, and install grub, and make sure you get it right this time. Complete the rest of the instructions.


The Installation Handbook is straightforward, and doesn't just contain useless information. Read everything. Don't report back until you do.
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