View previous topic :: View next topic |
Author |
Message |
pb0711 n00b
Joined: 22 Aug 2007 Posts: 7 Location: La Jolla, CA
|
Posted: Wed Aug 22, 2007 11:34 pm Post subject: GRUB: 2 HD sda & sdb ---- SOLVED |
|
|
Hello,
First post, first Gentoo install.
Wow wasn't that a world-wind! Ok so I got all the way through my installation including moving my kernel memory point from 0x10000 to 0x20000 due to 2Mb placement or something like that. I got all the way to the end with GRUB and did
Code: | grub-install --no-floppy /dev/sdb |
but after umounting and rebooting that nasty M$ logo came up for Vista
So 2 Questions:
1) I installed Gentoo on sdb using the normall sdb1 -> boot, sdb2 --> swap, and sdb3 -> / (root)
so that's why I did Code: | grub-install --no-floppy /dev/sdb | should I have done Code: | grub-install --no-floppy /dev/sda |
2) if it is sda then can I just reload the CD, remount the filesystems and do the command ? please say yes :p
Cheers and thanks,
Paul
Last edited by pb0711 on Fri Aug 24, 2007 7:59 pm; edited 1 time in total |
|
Back to top |
|
|
Telexen Apprentice
Joined: 09 Oct 2005 Posts: 189
|
Posted: Wed Aug 22, 2007 11:38 pm Post subject: |
|
|
1) if you have Gentoo setup on sdb, and you installed grub to it - the easy fix is to adjust your BIOS boot options to boot to that HD first. You don't want to risk taking out the windows MBR (even though it's a pretty easy fix)
2) yes...with just about anything you can just boot a livecd and remount your partitions then chroot to adjust your system if you can't boot it |
|
Back to top |
|
|
pb0711 n00b
Joined: 22 Aug 2007 Posts: 7 Location: La Jolla, CA
|
Posted: Thu Aug 23, 2007 12:48 am Post subject: |
|
|
So my bios suck and I cannot change the boot order of my hard drives. I'm on a HP laptop dv9500t. Anyway I went and did
Code: | mount /dev/sdb3 /mnt/gentoo
mount /dev/sdb1 /mnt/gentoo/boot
swapon /dev/sdb2
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
grub-install --no-floppy /dev/sda
|
I restarted and I got error 23 error parsing the number
then it says pres any key to continue. I press a key and the screen goes really odd with lines down the screen.
Any ideas would be great thanks.
Paul |
|
Back to top |
|
|
Pseudonimo Guru
Joined: 10 Mar 2007 Posts: 393
|
Posted: Thu Aug 23, 2007 1:41 am Post subject: |
|
|
Please post your grub conf, must be that.
Anyway I hope you know how to fix the boot record, if I'm not mistaken, run the windows xp install cd, and on console recovery run fixmbr or something, it's on the help page of the console. _________________ Please search *well* before posting, look for bugs (check all status), use google syntax and *please* read the man pages and think. All obvious steps, frequently ignored. Add [solved] when finished. |
|
Back to top |
|
|
pb0711 n00b
Joined: 22 Aug 2007 Posts: 7 Location: La Jolla, CA
|
Posted: Thu Aug 23, 2007 5:44 pm Post subject: |
|
|
Ok total noob question. How do I get the grub.conf onto the forum? I tried googleing for links help didn't get much and gentoo search for links.
I guess I couuld transcribe it over to the web. lol |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Thu Aug 23, 2007 7:00 pm Post subject: |
|
|
pb0711 wrote: | I restarted and I got error 23 error parsing the number
then it says pres any key to continue. I press a key and the screen goes really odd with lines down the screen. |
Without seeing your grub.conf, I would guess you did something like this.
Code: | splashimage (sd1,0)... |
"sd" is not a valid device name for GRUB. All harddrives are called "hd".
I am just guessing because this mistake is fairly common. |
|
Back to top |
|
|
Pseudonimo Guru
Joined: 10 Mar 2007 Posts: 393
|
Posted: Thu Aug 23, 2007 8:30 pm Post subject: |
|
|
What? Just copy paste it. Use multiple terminals if using installcd with Alt+F<Number> _________________ Please search *well* before posting, look for bugs (check all status), use google syntax and *please* read the man pages and think. All obvious steps, frequently ignored. Add [solved] when finished. |
|
Back to top |
|
|
Pseudonimo Guru
Joined: 10 Mar 2007 Posts: 393
|
Posted: Thu Aug 23, 2007 8:33 pm Post subject: |
|
|
Oh, preferably use this: http://www.rafb.net/paste/ _________________ Please search *well* before posting, look for bugs (check all status), use google syntax and *please* read the man pages and think. All obvious steps, frequently ignored. Add [solved] when finished. |
|
Back to top |
|
|
der.gecko Tux's lil' helper
Joined: 13 Jul 2007 Posts: 127 Location: de
|
Posted: Thu Aug 23, 2007 9:00 pm Post subject: |
|
|
if you can't change the boot order of your hard drives, you can at least try and switch the cables of your hard drives... i'm not sure if this works with sata, but give it a try... then /dev/sdb should be /dev/sda. if this don't work, unplug all harddrives except the one with gentoo and boot your pc... if seen a bios once, that stores the first harddrive as the one to boot.
good luck |
|
Back to top |
|
|
pb0711 n00b
Joined: 22 Aug 2007 Posts: 7 Location: La Jolla, CA
|
Posted: Fri Aug 24, 2007 12:28 am Post subject: |
|
|
I'll look into the sd instead of hd. I think I did do that
On the copying and pasting I meant that links doesn't give you the ability to copy and paste stuff in (does it?), just reading right? |
|
Back to top |
|
|
pb0711 n00b
Joined: 22 Aug 2007 Posts: 7 Location: La Jolla, CA
|
Posted: Fri Aug 24, 2007 3:37 am Post subject: |
|
|
ok I'm getting embarrised now but I got the nice looking grub boot loader by changing the sd -> hd (thanks for that)
however now I have Quote: |
>> Determining root device....
!! BLOCK device /dev/sdb3 is not a valid root device....
!! The root block device is upspecified or not detected
Please specify a device to boot, or "shell" for a shell
|
So I tried /dev/sd1 and hd1,2 and hd1,0 but nothing worked. But Vista loads which I guess is good (lol). I'll edit in the grub.conf in a moment.
Did I do something stupid like not give myself SATA support?
Code: | #Timeout Automatically after 30 secs.
timeout 30
# By default, boot the first entry.
default 0
# Fallback to the second entry.
fallback 1
# Splash image to show behind grub.
splashimage=(hd1,0)/grub/splash.xpm.gz
#Gentoo Linux
title=Gentoo Linux 2.6.22 r2
root (hd1,0)
kernel /boot/kernel-genkernel-x86_64-2.6.22-gentoo-r2 root=/dev/ram0 init=linuxrc ramdisk=8192 real_root=/dev/sdb3 udev
initrd /boot/initramfs-genkernel-x86_64-2.6.22-gentoo-r2
#Dual Boot Windows Vista
title=Windows Vista
rootnoverify (hd0,0)
makeactive
chainloader +1
#Change the colors.
title Change the colors
color light-green/brown blink-red/blue
|
|
|
Back to top |
|
|
Telexen Apprentice
Joined: 09 Oct 2005 Posts: 189
|
Posted: Fri Aug 24, 2007 4:09 am Post subject: |
|
|
pb0711 wrote: | ok I'm getting embarrised now but I got the nice looking grub boot loader by changing the sd -> hd (thanks for that)
however now I have Quote: |
>> Determining root device....
!! BLOCK device /dev/sdb3 is not a valid root device....
!! The root block device is upspecified or not detected
Please specify a device to boot, or "shell" for a shell
|
So I tried /dev/sd1 and hd1,2 and hd1,0 but nothing worked. But Vista loads which I guess is good (lol). I'll edit in the grub.conf in a moment.
Did I do something stupid like not give myself SATA support? |
Possibly, but from memory it would produce a kernel panic if you did that.
...before posting this I took a look at the manual for your notebook. It does have options to select boot order - but the manual doesn't go into detail on if it allows for specific HDD - but I know my much older HP ze5300 does...not sure why yours wouldn't |
|
Back to top |
|
|
pb0711 n00b
Joined: 22 Aug 2007 Posts: 7 Location: La Jolla, CA
|
Posted: Fri Aug 24, 2007 4:19 am Post subject: |
|
|
yea, really odd their phoenix bios and I would have thought too, but when into bios and saw "boot order" got all happy click on it and it only had DVD USB Hard Drive Network
I was looking at another thread and yea seem I would have got kernel panic if I didn't load support for SATA. Also I did "genkernel --menuconfig all" since I need to change the memory location thing. Shouldn't genkernel have taken care of the SATA since it was loaded by the CD?
https://forums.gentoo.org/viewtopic-t-576443-highlight-block+device.html
If I did want to double check thou can I just mount -> chroot -> emerge pciutils -> genkernel -menuconfig all
do I need to redo grub after that ?? or can I just exit umount and reboot ? |
|
Back to top |
|
|
pb0711 n00b
Joined: 22 Aug 2007 Posts: 7 Location: La Jolla, CA
|
Posted: Fri Aug 24, 2007 7:12 am Post subject: |
|
|
Ok I think it's booting
yes
YES
I looked at this
http://www.linuxquestions.org/questions/showthread.php?t=334469
and saw that I had been stupid and didn't load SATA support opps.
dam filesystem is broken , guess I'll post new thread for that if more problems. I hope HD isn't bad :'(
Cheers everyone for the help |
|
Back to top |
|
|
|