You are not logged in.

#1 2005-11-14 13:56:11

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Can't install grub for some unknown reason!

I just tried to install Arch using a bootstrap on a desktop with two HDs.  I put Arch on the second part of the second HD.  That all went fine till it came to installing grub!  What an infuriating nightmare.  I've wasted about 2 1/2 hours on it and I am so angry I'm positively raging.

I still have no idea what went wrong.  Chrooting into the install was out because the devs aren't mounted so I used a livecd to boot into the part - running grub-install /dev/hda or /dev/hdb resulted in the same errors about "the second sector of stage 2 is unknown"

I only actually discovered there was an error cos I ran sh -x grub-install - without that this little gem:

grep 'Error [0-9]*: ' /temp/grub-install.img.865

It would have totally passed me by and I never would have know grub was stuck in an infinite loop!

So, any suggestions please?

Basically the set up is:

/dev/hda1 - WinXp
/dev/hdb1 - swp
/dev/hdb2 - /

That's it, nothing complex

Offline

#2 2005-11-14 16:07:28

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Can't install grub for some unknown reason!

Only thing I can think of is that I had problems when I didn't remount /proc into a chroot environment - so make sure you're remounting proc and dev before you chroot.

Offline

#3 2005-11-14 16:17:58

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Can't install grub for some unknown reason!

Err - how?  I have not yet done it with chroot method - do you think that would help?

Offline

#4 2005-11-14 17:56:33

jerem
Member
From: France
Registered: 2005-01-15
Posts: 310

Re: Can't install grub for some unknown reason!

mount -o bind /dev /directory_to_be_chrooted/dev
mount -o bind /proc /directory_to_be_chrooted/proc

That's what I forgot to do when I first chrooted my installation to reinstall grub.

Offline

#5 2005-11-14 18:21:44

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Can't install grub for some unknown reason!

dibblethewrecker wrote:

Err - how?  I have not yet done it with chroot method - do you think that would help?

Well, seeing as grub specifically reads its files from /boot, you pretty much have to chroot.  I think there's a way to specify the file directly, but chroot-ing is much cleaner

Offline

#6 2005-11-14 21:07:59

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Can't install grub for some unknown reason!

mount -t proc none /mnt/arch/proc

chroot

cp /proc/mounts /etc/mtab

Offline

#7 2005-11-28 16:08:18

metromini
Member
From: Jakarta, Indonesia
Registered: 2005-08-02
Posts: 39

Re: Can't install grub for some unknown reason!

I had this same situation for my home PC.
So, what is the solution? i don't want it show GRUB menu everytime my sister booting the PC. I just want to boot Linux (on second hardisk) by BIOS selection. And should i flag root partition to "bootable" when i use cfdisk?

Offline

#8 2005-12-03 07:50:54

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Can't install grub for some unknown reason!

That didn't seem to help...

Now it is telling me no BIOS drives correspond with the disk containing the root partition of my install.

I am running a livecd that uses devfs, could there be some /dev mismatch with my install running udev with regard to creating the /devs?

Offline

#9 2005-12-03 15:30:45

rayjgu3
Member
From: Chicago IL usa
Registered: 2004-07-04
Posts: 695

Re: Can't install grub for some unknown reason!

i havent had to do this but what if you booted from install cd as if to install but go directly to
edit config files type in the info you nedd then run install grub ?  just a far fetched thought
or boot from install cd to the root  ie vmlinuz root=/dev/discs/discX/partY  then mount /boot if its on seperate partition and any other
partitions you may have made /tmp /usr /sbin whatever if you installed lilo run it then boot up machine then run grub-install ,but before you run lilo though check lilo.conf that it installs to /dev/hdb
when booting up hopefully you can hit F8 or in my case hit esc then hit Ctrl  to pull up boot menu
to tell machine where to boot to tell it whatever is /dev/hdb if you want to leave whatever boot loader is on /dev/hda alone
chrooting can be a pain /dev/null no permissions or cant chroot no /bin/bash or whatever
chroot is a neat tool but can be a pain at times

also check /boot/grub/device.map heres mine

(fd0)    /dev/fd0
(hd0)    /dev/hda
(hd1)    /dev/sda
(hd2)    /dev/sdb
(hd3)    /dev/sdc

you may be  missing something there i have had this problem of drives missing in this file

Offline

#10 2005-12-03 16:13:39

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: Can't install grub for some unknown reason!

You might be interested in this thread on the maillist.
Check the links inside. They should point you to grub's "find" command description.

Offline

Board footer

Powered by FluxBB