LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-07-2007, 01:25 PM   #1
junglistno1
Member
 
Registered: Apr 2007
Posts: 36

Rep: Reputation: 15
Exclamation GRUB problems


hi people, im totally new to linux so im having a few problems getting it going. ive managed to install SuSE 10.2 x86-64 onto a 200gb IDE hard drive.

i also have windows installed on a 250gb sata hard drive

the linux install went well but im having problems setting up a dual boot with GRUB im not sure what the problem is coz i should have been set up with SuSE install.

my IDE hard disk is set to master on IDE primary with noting else connected to it

i can run SuSE but have to run the install disk, go on install and then boot install, otherwise my system boots to windows as it normally would

any one got any ideas??? cheers
 
Old 04-07-2007, 02:15 PM   #2
eypros
Member
 
Registered: Jun 2005
Location: Salonica
Distribution: Xubuntu
Posts: 40

Rep: Reputation: 15
Ok let me understand this: You have installed Suse but you cannot boot to SUse without your Suse-CD? And then you should choose install from the options it is giving you?

Is there an option with windows besides the install suse? You see menu when you log normally without SUse-CD?

From what you are saying maybe you have a live-cd (which runs as normal stand alone operational system) with install option? I am not familiar with suse live cds but your case sounds peculiar enough!

You can use another live cd like Knoppix to understand whether you ave installed Suse or not. You can alternatively downlod a windows tool to look through windows for linux partions and files like
http://http://www.diskinternals.com/linux-reader/

Of course if you don't find any linux partition you didn't install anything.
 
Old 04-07-2007, 03:07 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
If grub is placed on the MBR on the Linux drive, you have to go into your BIOS and change to this drive. Really do not need put grub on the MBR on the Windows because it will create future problems. Leave Windows MBR alone and just fool around with the Linux drive.

Please post your /boot/grub/menu.lst.

There are many ways to boot to a Windows disk using grub. The following is the way I use for Windows 2000.

Code:
title Windows 2000
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1,0)+1
The first map command takes hd0, my Linux drive, and places as hd1, the Windows drive. The next map command takes hd1, the Windows drive, and places it as hd0. The chainloader command helps loading different boot loaders like from DOS or Windows.
 
Old 04-07-2007, 05:11 PM   #4
junglistno1
Member
 
Registered: Apr 2007
Posts: 36

Original Poster
Rep: Reputation: 15
its definality not a live cd coz it installed on my hard drive, when i altered my bios to boot from my IDE hard drive and not my sata hard drive it didnt do anything and the sata disappered out of my bios. i can boot SUSE but have to do it from the install dvd, once its running it works fine and i can see both hard disks in my computer in SUSE.
 
Old 04-08-2007, 01:59 AM   #5
dugas
Member
 
Registered: Jul 2004
Location: louisiana
Distribution: fedora 4/kubuntu
Posts: 116

Rep: Reputation: 15
Bootloader

Sounds as though you may want to use the Windows Boot Loader to boot Linux.
Boot with the Suse CD, and find your first Linux partition's name.

Code:
df
Look for mounted on /boot or if /boot does not exist, / in right column, and filesystem in left.
Your drive label will be in left column, example (/dev/sdb*), where * is some number. Your first partition is the lowest number, for example /dev/sdb1.
This is probably where your bootloader is installed. Now, use some filesystem you can write to, such as a USB flash drive. Mount the USB flash drive, and issue (using example /dev/sdb1 as partition where grub is installed)
Code:
dd if=/dev/sdb1 of=/mnt/USBDRIVE/suse.bin bs=512 count=1
This will copy the first 512 bytes on your boot partition. Now boot into windows, and place the file suse.bin that you created on the USB drive on your C: drive in windows. Show your hidden files in windows, and located in C: there will be a file named boot.ini. Add the following line to the end of the file on a line by itself:
Code:
c:\suse.bin="Suse"
 
Old 04-08-2007, 04:11 AM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I think Electro's advice is a little more accurate, but incomplete. Boot back into Suse and have a look at the menu.lst, it should be in /boot/grub/menu.lst, make sure the entry for Windows has the map sections Electro mentioned, also ad "makeactive" before the "chainloader +1", you don't need the (hd1,0) in the chainload entry, only in the rootnoverify entry. For example:

Code:
title Windows XP
      root    (hd1,0)
      map (hd0) (hd1)
      map (hd1) (hd0)
      makeactive
      chainloader +1
If your distribution appears to use "rootnoverify" rather than just "root", than use rootnoverify. There may be a problem with having the drives on two channels with this example, should dig into that part. Because Windows may be in the primary position on the other channel, not sure if the bios will compensate.

Then to install grub to the hda (primary IDE drive), issue command as root:

Code:
grub-install /dev/hda

Last edited by Junior Hacker; 04-08-2007 at 04:18 AM.
 
Old 04-08-2007, 05:04 AM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Here's a good Suse howto grub:

http://en.opensuse.org/SDB:The_Boot_Manager_Grub
Apparently you should edit /etc/grub.conf.
At the bottom of the page is a link for "Booting Windows from a second drive".

Last edited by Junior Hacker; 04-08-2007 at 05:07 AM.
 
Old 04-08-2007, 05:14 AM   #8
junglistno1
Member
 
Registered: Apr 2007
Posts: 36

Original Poster
Rep: Reputation: 15
ive been playing around with the install cd coz what i need to do is to install grub over the windows boot loader, when i go on the booting option on the install screen i can install the boot loader in a custom boot partion it gives me options of /dev/hda1 to /dev/hda7 but also /dev/sda/2 which is my sata hard drive is this where the windows boot loader is located?

im probablly gonna sound really really stupid now but im gonna ask any way but where excitally are u ment to type commands like

grub-install /dev/hda this as an example
 
Old 04-08-2007, 06:57 AM   #9
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Boot into SUSE and open a terminal or console, which is like a dos window. And type:
Code:
su
To switch from a user to root, enter the root password. Now type:
Code:
fdisk -l
This will list information regarding the drives and the partitions, similar to mine as follows:
Code:
Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        7268        8541    10233405   83  Linux
/dev/sda2            7013        7267     2048287+  82  Linux swap / Solaris
/dev/sda3           16372       30394   112639747+   7  HPFS/NTFS
According to my fdisk -l results, /dev/sda3 is my Windows partition, actually, it is a NTFS data partition, my Windows installations and other Linux installations are hidden from this Debian Etch. But you should see an NTFS partition on possibly /dev/sda1.
If you can post the results of "fdisk -l", will help us figure this out so you don't render your installations un-bootable. But first, set the bios to boot from the SATA drive, after the CD drive of course so you can work off the CD. By rights if you do that you should be able to boot Windows and not SUSE when the CD is not in the drive. It is best to show this info before installing grub which should be installed in a MBR, which should be "/dev/hda" for the IDE drive and "/dev/sda" for the SATA drive. If you choose to boot the SATA drive first, grub would need to be installed to /dev/sda, which will in turn over write the Windows boot information. The ones your CD suggests are partition boot records "PBR" not master boot record "MBR". The MBR is the first sector of a drive before a partition's start point. The computer looks to the MBR first for booting information, then the boot loader that's in the MBR boots the OS you choose via the OS's PBR. Any device with a number is a partition on the drive, not the drive, such as /dev/hda5 or /dev/sda2, putting grub in one of them puts it in a PBR, not the MBR.
I'm also going to hit the hay, hopefully someone will help for now.
 
Old 04-08-2007, 07:36 AM   #10
junglistno1
Member
 
Registered: Apr 2007
Posts: 36

Original Poster
Rep: Reputation: 15
thats great your help is gretly helping my understanding of whats going on!thanx

i done this didnt but didnt get the result u expected:-

open console
junglistno1@linux-iuwy:~>su
password:**********
linux-iuwy:/home/junglistno1 # fdisk -1
fdisk: invalid option -- 1

but when i use command "df" i get this

file system mounted on
/dev/hda2 /
udev /dev
/dev/hda3 /home
/dev/sda1 /windows/c
/dev/sda5 /windows/d
/dev/hdc /media/SU1020.001
 
Old 04-08-2007, 10:30 AM   #11
dugas
Member
 
Registered: Jul 2004
Location: louisiana
Distribution: fedora 4/kubuntu
Posts: 116

Rep: Reputation: 15
Sorry, I misread the post, thought it was the same drive. Should not have posted so late in the night .

Last edited by dugas; 04-08-2007 at 10:42 AM.
 
  


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
Gentoo... grub problems... "/boot/grub/stage1" exists... no halo14 Gentoo 5 02-06-2011 04:50 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
Problems with GRUB, not using whats in grub.conf **FIXED silentpetey Linux - General 1 11-06-2006 09:24 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM
GRUB problems !! stmifx Linux - Newbie 1 04-02-2003 06:03 AM


All times are GMT -5. The time now is 12:12 AM.

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