LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 09-03-2009, 06:12 AM   #1
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 9.04 , openSUSE
Posts: 329
Thanked: 4
Cool GRUB editing ?


[Log in to get rid of this advertisement]
I'm trying to install fresh Gentoo installation in /dev/sda6 , so what would be the argument for "root" in GRUB menulist
linuxubuntu vibinlakshman is offline  
Tag This Post ,
Reply With Quote
Old 09-03-2009, 08:56 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Gentoo
Posts: 1,672
Thanked: 16
There are two places where the word "root" is used.

root (hd0,5)
would mean /dev/hda6 or /dev/sda6
and is the place where the grub files are - this is the place of the /boot directory

Then there is the kernel line - which looks something like this:
kernel /vmlinuz-2.6.30-gentoo-r4 root=/dev/hda6 vga=792

/vmlinuz-xxx here is relative to the previously set root (hd0,5)

it means the path: /boot/vmlinuz-xxx

and
root=/dev/hda6 is the partition holding the filesystems /

If you have no separate partition for /boot then these are the same.

root (hd0,5) is the grub way of saying: /dev/hda6 - it starts to count from 0 for the 1-st partition

HTH
linuxgentoo jomen is offline     Reply With Quote
Thanked by:
Old 09-04-2009, 12:29 AM   #3
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 9.04 , openSUSE
Posts: 329
Thanked: 4

Original Poster
Quote:
Originally Posted by jomen View Post
There are two places where the word "root" is used.

root (hd0,5)
would mean /dev/hda6 or /dev/sda6
and is the place where the grub files are - this is the place of the /boot directory

Then there is the kernel line - which looks something like this:
kernel /vmlinuz-2.6.30-gentoo-r4 root=/dev/hda6 vga=792

/vmlinuz-xxx here is relative to the previously set root (hd0,5)

it means the path: /boot/vmlinuz-xxx

and
root=/dev/hda6 is the partition holding the filesystems /


HTH
Yes I understood ,but one thing to clarify

title Gentoo {Testing ..}
root (hd0,5)
kernel /boot/linux-2.6.30-gentoo-r5 root=/dev/sda6

This is my menulist content for Gentoo , but after that /boot I dont have that vmlinuz , instead this I'm having starting as (linux-2.6..) .
Is there any fault , coz I'm having Grub Error 15 while trying to execute Gentoo
linuxubuntu vibinlakshman is offline     Reply With Quote
Old 09-04-2009, 03:41 AM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Gentoo
Posts: 1,672
Thanked: 16
Did you use the handbook?
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml
It specifically suggests to have a separate /boot partition.

If you use the
make menuconfig,
make,
make install,
make install_modules
routine of building the kernel - then you will have a file "vmlinuz" as well as a file vmlinuz-2.6.30-gentoo-r5
if you install kernel 2.6.30-gentoo-r5
They are both the same.

and end up with something similar to this (my actual install - I have the previous kernel-version there also)
Code:
ls -lh /boot/
total 12M
-rw-r--r-- 1 root root 836K Sep  4 01:40 System.map
-rw-r--r-- 1 root root 826K Aug 13 21:13 System.map-2.6.30-gentoo-r4
-rw-r--r-- 1 root root 836K Sep  4 01:40 System.map-2.6.30-gentoo-r5
-rw-r--r-- 1 root root 839K Aug 22 20:00 System.map-2.6.30-gentoo-r5.old
-rw-r--r-- 1 root root 839K Aug 22 20:00 System.map.old
lrwxrwxrwx 1 root root    1 Aug 11 15:01 boot -> .
-rw-r--r-- 1 root root  69K Sep  4 01:40 config
-rw-r--r-- 1 root root  69K Aug 13 21:13 config-2.6.30-gentoo-r4
-rw-r--r-- 1 root root  69K Sep  4 01:40 config-2.6.30-gentoo-r5
-rw-r--r-- 1 root root  69K Aug 22 20:00 config-2.6.30-gentoo-r5.old
-rw-r--r-- 1 root root  69K Aug 22 20:00 config.old
drwxr-xr-x 2 root root 4.0K Aug 23 01:19 grub
-rw-r--r-- 1 root root 1.4M Sep  4 01:40 vmlinuz
-rw-r--r-- 1 root root 1.6M Aug 13 21:13 vmlinuz-2.6.30-gentoo-r4
-rw-r--r-- 1 root root 1.4M Sep  4 01:40 vmlinuz-2.6.30-gentoo-r5
-rw-r--r-- 1 root root 1.5M Aug 22 20:00 vmlinuz-2.6.30-gentoo-r5.old
-rw-r--r-- 1 root root 1.5M Aug 22 20:00 vmlinuz.old
If /boot is empty then you made an error.
Know if you use a separate partition for /boot - which has to be mounted - or if you don't.

If there is a problem, verify the steps into chroot are correct.
1.) mount your / partition
2.) create a /boot directory there (just once)
3.) mount the other partition - the small one which will hold grub and kernel - onto the /boot directory of the first partition.
http://www.gentoo.org/doc/en/handboo...ap=4#doc_chap5
Skip 2.) and 3.) if you just use one partition.

This might help too:
http://www.gentoo.org/doc/en/grub-er....xml#doc_chap4

Last edited by jomen; 09-04-2009 at 03:44 AM..
linuxgentoo jomen is offline     Reply With Quote
Old 09-13-2009, 12:37 PM   #5
sploot
Member
 
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 91
Thanked: 15
Quote:
Originally Posted by jomen View Post
root (hd0,5)
would mean /dev/hda6 or /dev/sda6
and is the place where the grub files are - this is the place of the /boot directory
Could it also be the case that if both /dev/hda and /dev/sda are present, the boot partition is actually located on root(hd1,5)?

Just a thought.

--Sploot

Last edited by sploot; 09-13-2009 at 12:38 PM..
linuxgentoo sploot is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
editing in GRUB deretsigernu Linux - General 2 09-04-2007 08:12 AM
DualBooting with GRUB ; Need Help Editing GRUB blooperspree Linux - Software 2 11-04-2006 12:23 PM
Grub Editing hoe Linux - General 2 11-07-2004 07:45 PM
Editing Grub onelung02 Suse/Novell 3 10-27-2004 04:45 AM
need help editing grub orionpc84 Linux - Newbie 5 09-12-2004 12:50 AM


All times are GMT -5. The time now is 12:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration