Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Numbers for Grub by installation
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
Führer
n00b
n00b


Joined: 26 Nov 2004
Posts: 65

PostPosted: Fri Nov 26, 2004 7:36 pm    Post subject: Numbers for Grub by installation Reply with quote

Dear Gentoo lovers,

I am whithin the installation of 2004.3, one point I do not know.

What should I fill in by:

Creating /boot/grub/grub.conf:

splashimage=(hd0,0)/grub/splash.xpm.gz
root (hd0,0)
kernel /kernel-2.6.5-gentoo root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3

when I have the following partitionsheme:

/dev/hdd1 ---> boot
/dev/hdd2 ---> swap
/dev/hdd3 ---> root

So, what are the correct numbers for /dev/hdd1, /dev/hdd2 en /dev/hdd3 in Grub?

Thanks in advance!
Back to top
View user's profile Send private message
bernath
n00b
n00b


Joined: 09 Jul 2004
Posts: 63
Location: germany

PostPosted: Fri Nov 26, 2004 7:51 pm    Post subject: Reply with quote

if you are using genkernel:

EDIT

Code:
default 0
timeout 10
splashimage=[color=red](hd1,0)[/color]/grub/splash.xpm.gz

title gentoo
  root [color=red](hd1,0)[/color]
  kernel [color=red](hd1,0)[/color]/kernel-2.6.5-gentoo root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hdd3
  initrd /initrd-2.6.5-gentoo

(hd1,0) means /dev/hdd1

the swap partition shoudn't be listed in grub.conf

greetings,
gabor bernath


Last edited by bernath on Fri Nov 26, 2004 8:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
Führer
n00b
n00b


Joined: 26 Nov 2004
Posts: 65

PostPosted: Fri Nov 26, 2004 8:04 pm    Post subject: Reply with quote

Thanks a lot gabor bernath. I was also the same thinking. But then I saw in het handbook:

Assuming you have a hard drive on /dev/hda, a cdrom player on /dev/hdb, a burner on /dev/hdc, a second hard drive on /dev/hdd and no SCSI hard drive, /dev/hdd7 gets translated to (hd1,6). It might sound tricky and tricky it is indeed, but as we will see, GRUB offers a tab completion mechanism that comes handy for those of you having a lot of hard drives and partitions and who are a little lost in the GRUB numbering scheme.

And that was cunfusing me. But I will try it out, thanks for the help!
Back to top
View user's profile Send private message
bernath
n00b
n00b


Joined: 09 Jul 2004
Posts: 63
Location: germany

PostPosted: Fri Nov 26, 2004 8:17 pm    Post subject: Reply with quote

sorry, but i was the one being confused right now :oops:

the grub auto completion mechanism was right. if you only have two hard drives /dev/hda and /dev/hdd, then /dev/hdd1 would be translated to (hd1,0). i edit my post. please correct the mistake.

have fun,
gabor
Back to top
View user's profile Send private message
Führer
n00b
n00b


Joined: 26 Nov 2004
Posts: 65

PostPosted: Fri Nov 26, 2004 8:27 pm    Post subject: Reply with quote

bernath wrote:
sorry, but i was the one being confused right now :oops:

the grub auto completion mechanism was right. if you only have two hard drives /dev/hda and /dev/hdd, then /dev/hdd1 would be translated to (hd1,0). i edit my post. please correct the mistake.

have fun,
gabor


Oke, I already made the (wrong) install complete. The system won't boot up now. But I will fix it.
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