You are not logged in.

#1 2007-07-22 22:54:11

hvgotcodes
Member
Registered: 2007-07-17
Posts: 42

cannot install grub

ive setup my partitions like this

sda2 = /boot
sda5 = swap
sda6 = /root
sda7 = /home

im trying to install grub, its presenting this config file

root (hd0, 1)
kernel /vmlinuz26 root=/dev/sda6 r0
initrd

i tried changing hd0 to sd0 and sd5, both without success.  Im saying no at the raid question (which might be the problem; is sata raid?), and both /dev/sda and dev/sda2 as the MBR. what should i do?

Thanx

edit -- its compaining "Cannot mount selected partition"   I notice in the grub output its setting root to (hd0, 1), which is not what I specified in the file....

Last edited by hvgotcodes (2007-07-22 22:59:24)

Offline

#2 2007-07-22 23:39:17

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: cannot install grub

SATA is not raid.

Does it really say "r0" instead of "ro" or is that a typo in your post?

Where's the rest of the "initrd" line?

Offline

#3 2007-07-23 00:54:36

hvgotcodes
Member
Registered: 2007-07-17
Posts: 42

Re: cannot install grub

kernel /vmlinuz26 root=/dev/sda6 ro
initrd /kernel26.img

I didnt include the lines I felt were not relevant; I shouldn't have made any assumptions...

Offline

#4 2007-07-23 01:30:12

nikron
Member
Registered: 2007-05-15
Posts: 130

Re: cannot install grub

hvgotcodes wrote:

root (hd0, 1)

I notice in the grub output its setting root to (hd0, 1), which is not what I specified in the file....

Whaaa?  Also, grub has a different system than the rest of the world for (hdx,y)  x is the drive number (IDE, SATA, doesn't matter), and y is the partition number.  (they both start from 0)

Offline

#5 2007-07-23 13:20:12

hvgotcodes
Member
Registered: 2007-07-17
Posts: 42

Re: cannot install grub

I solved this problem with the help of IRC.  Basically, in the fdisk step, I had set the partition type for one of the partitions I created, and grub could not install.  When I went thru the entire process again (without specifying partition type with cfdisk) it worked without issue.

Only takes 20 minute or so to do an ftp install.

Offline

Board footer

Powered by FluxBB