LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-05-2007, 06:22 PM   #1
zanad00
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Rep: Reputation: 0
Problem installing GRUB with Sabayonlinuxos


Hi This is my 1st install of linux and my setup is :-

1X 8GB IDE HDD (E
1X 250GB SATA HDD (C:WinXP)
1X 250GB SATA HDD (2 partitions) 200GB(D and 50GB(linux )

When I installed Sabayonlinux I had the option of GRUB or LILO and it was installed on hda (the IDE drive)
I changed the boot sequence from C: to E: and after POST it lists the devices then......

GRUB_

with a flashing cursor.

I cannot enter or do anything

Has anyone any ideas please
 
Old 02-05-2007, 07:36 PM   #2
wildar
Member
 
Registered: Jan 2007
Distribution: Mandriva 2008, Mandrake 2005, Ubuntu 8.04.1
Posts: 239

Rep: Reputation: 30
Quote:
Originally Posted by zanad00
I changed the boot sequence from C: to E: and after POST it lists
Not sure what you mean by this. Did you change the boot order in BIOS?
 
Old 02-05-2007, 08:30 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
If you change the boot order after installing GRUB, I think that may cause problems. GRUB gets "hard coded" to point to the dirve where its config files are. the behavior you are seeing is consistent with grub not being able to find its config file.

What's the point of having that 8GB drive in there? ( the size means it is old--and could be prone to failure) I would send it to "Hard-Drive Heaven".

I would reset the bios to boot from "C" (A Windowsism, BTW---we say sda1), and then get GRUB installed on that drive.
Is your install disk a live CD? if not, see if you can get to a Linux terminal by booting from your install disk and typing ctrl-alt-F1. If this doesn't work, then you will need to find a live CD (eg Knoppix) or maybe just re-install.

If you can get to a linux terminal, then we can give you the commands to get GRUB set up.
 
Old 02-06-2007, 02:18 PM   #4
zanad00
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Original Poster
Rep: Reputation: 0
Hi
wildar , I changed the boot priority because to where GRUB was installed as it only loaded windows otherwise .

You got me thinking Pixellany.......it is stupid keeping an 8GB drive when I have 500GB as well , so , I disconnected it , and tried using a PCLinux livecd , there is a SGR GRUB repair item on the start menu and using it I can boot my Sabayonlinuxos.....so all i need now is instructions howto repair or install GRUB..
Thanks
 
Old 02-06-2007, 02:39 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
OK!!

Assume that Windows is on drive 1, partition 1--aka /dev/sda1
Linux on /dev/sdbX X=the partition where /boot is (if you only have one Linux partition, then that's it)

From a linux terminal, running as root:
Code:
grub    starts the grub shell
root (hd1,Y)    This points grub to the location of /boot  because GRUB counts from zero, take X above and subtract 1
setup (hd0)   puts grub on the mbr of drive 1
Now you have to edit /boot/grub/menu.lst to show the correct info. It will wind up looking something like this:
Code:
title   linux
root (hd1,Y)   again, points to the partition where /boot is
kernel /boot/vmlinuz...... root=/dev/sdaX
initrd /boot/initrd......

<<replace the "    ....." with the actual filenames as they appear in /boot
OR
make softlinks in /boot, so that you can just use "vmlinuz" and "initrd"

X and Y are as previously defined>>

title windows
root (hd0,0)
makeactive
chainloader +1

Last edited by pixellany; 02-06-2007 at 02:40 PM.
 
Old 02-06-2007, 03:02 PM   #6
zanad00
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Original Poster
Rep: Reputation: 0
I opened a terminal and it said

Malcolm@localhost ...so I clicked session-new root shell and the word Password appears but I cannot write anything
 
Old 02-06-2007, 03:06 PM   #7
zanad00
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Original Poster
Rep: Reputation: 0
Okay I have The terminal running now , will try the above , Cheers
 
Old 02-06-2007, 06:24 PM   #8
zanad00
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Original Poster
Rep: Reputation: 0
I'm making progress :-)
I typed in root (hd0,1)
this is the result


root (hd0,1)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd1)
setup (hd1)
checking if "/boot/grub/stage1" exists...yes
checking if "/boot/grub/stage2" exists...yes
checking if "/boot/grub/e2fs_stage_5" exists...yes
Running "embed /boot/grub/e2fs_stage_5 (hd1)"...16 sectors are embedded.
succeeded
Running "install /boot/grub/grub/stage1 d (hd1) (hd1)1+16p(hd0,1) /boot/grub/stage2 /boot/grub/menu.lst.succeeded
Done
grub>


I do not understand how to edit the menu

Where is the menu and how do I access it for editing ?
I typed in "title linux" but it says "error 27 unrecognised command"
could you please explain very simply, also , about softlinks.

Thanks

Last edited by zanad00; 02-06-2007 at 06:28 PM.
 
Old 02-06-2007, 06:38 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Well, you are not following my instructions....so I'm not quite sure where we are headed.
EDIT--it looks like maybe the Windows drive is not set to be #1
To edit menu.lst (or any file), you would type the name of the editor followed by the file name. Editors that may or may not be one your system include kedit, gedit, kate, nano.
Example:
in a terminal, as root:
nano /boot/grub/menu.lst

Last edited by pixellany; 02-06-2007 at 06:43 PM.
 
Old 02-06-2007, 06:41 PM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Oops, sorry---softlinks

These are like pointers or "shortcuts" in Windows parlance.

For example, in /boot, you can make a link to the kernel like so:

ln -s vmlinuz<otherstuff> vmlinuz

now you can specify that kernel in menu.lst by simply saying "vmlinuz"
 
Old 02-07-2007, 06:03 AM   #11
zanad00
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Original Poster
Rep: Reputation: 0
I did follow your instructions initially but it came back (i think) "partition not found" so I tried all combinations of the HDD's until (hd0,1) responded and seemed to do something...I think your right about windows not set on #1

Have the results I showed seem to have done the right thing so far ?
Does the rest of the procedure still apply with my setup /

If I boot now it says something like "installing GRUB starting stage1.5 "repeatedly down the screen.
 
Old 02-07-2007, 06:31 AM   #12
zanad00
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Original Poster
Rep: Reputation: 0
I open a terminal
click on "session" then "new root shell"
the window shows "password : " and a black square but I cannot enter anything


(Please bear with me ? I must be really stupid)
 
Old 02-07-2007, 08:17 AM   #13
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by zanad00
I open a terminal
click on "session" then "new root shell"
the window shows "password : " and a black square but I cannot enter anything


(Please bear with me ? I must be really stupid)
No, you are not stupid.....
Often, when entering passwords, there will be no feedback on the screen--just type in the (root) password and hit return. (You can also become root by just typing "su" after opeing the terminal.)

The steps I gave you assumed that the Windows drive would be set to #1--this would make the Linux partition be on drive 2---eg (hd1,2) for sda2, partition 3.

First, see if you can set the boot order in the BIOS to make the Windows drive be #1, then install GRUB per my original instructions.

Also, go here for the GRUB manual.
 
Old 02-07-2007, 12:18 PM   #14
zanad00
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Original Poster
Rep: Reputation: 0
I have GRUB working ....

It displays

SABAYONLINUX.....

OTHER............

I would like to learn how to change "OTHER" to "WinXP"

This is my screen using "nano /boot/grub/menu.lst"




# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,1)
# kernel /kernel-genkernelreal_root=/dev/VolGroup00/LogVol00
# initrd /initramfs-genkernel
#boot=/dev/hda
default=0
timeout=6
splashimage=(hd1,1)/grub/splash.xpm.gz
title Sabayon Linux x86-64 3.2
root (hd1,1)
kernel /kernel-genkernel-x86_64-2.6.18-gentoo-r4 dolvm2 root=/dev/ram0$
initrd /initramfs-genkernel-x86_64-2.6.18-gentoo-r4
title Other
rootnoverify (hd0,0)
chainloader +1


How do I edit it..
 
Old 02-07-2007, 12:25 PM   #15
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
as root, open the file with nano

make changes, save, and close

remember that nano is a command-line "quasi-graphical" tool. You have to navigate with arrow keys and use ctrl-xxx commands.


By the way, congratulations on progress so far....!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing SUSE10 error 21 grub loader bigalmiller Linux - Software 0 03-06-2006 05:10 AM
Boot problem: "GRUB Loading stage2read Error" after installing PCI Ethernet card nsyng Fedora - Installation 1 06-06-2005 07:53 AM
Problem installing grub Tinku Linux - General 2 01-17-2005 09:51 AM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 05:55 AM
Problem Installing GRUB to Floppy freemanx Linux - Newbie 5 10-16-2003 12:35 AM


All times are GMT -5. The time now is 09:45 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration