LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-04-2005, 03:55 PM   #1
Liquid_T<NL>
LQ Newbie
 
Registered: Aug 2005
Distribution: SuSe
Posts: 24

Rep: Reputation: 15
[GRUB]how to install grub onto another partition


Now I know that this works, because I got it working before, but I forgot how to get this working (stupid me )... I tried all sorts of stuff, and I been searching like an idiot, but I can't get my Grub installed on another partition.
I'll try to explain:

My partitions are like this:
1. hda1 -> Primary partition for win98 (FAT32)
2. hda2 -> Primary partition for Windows XP (NTFS)
3. hda3 -> Primary partition (extended) which contains partition #5 and #6
4. hda4 -> Primary partition for shared data between the different OS'es
5. hda5 -> Logical partition for Suse 9.3
6. hda6 -> Logical partition for Swap (suse 9.3)

Now my problem is that GRUB got installed on partition #5, in the directory /boot/grub/ as usual, but I want it to be installed on partition #4, but I really can't get it working...

The reason why I want this is because I don't want Windows XP/98 to see any weird partitions (like my Linux partition), and that is possible by hiding these partitions when I boot Windows XP.
My menu.lst hasn't changed since I re-installed Suse (and also Grub), so the problem isn't my Grub. When grub loads, all my partitions are made unhidden, and then When I select a partition, Grub hides the other partitions (except the partition I boot from and the shared data partition).
Now the problem is that when I boot into Windows XP/98, Grub hides partition #5 and #6. This isn't a problem, but when I reboot, Grub won't load because the MBR points to a partition that is hidden and thus can't be found (partition #5)...
Now can anyone explain me how I can get my computer to boot from the MBR, and then let the MBR point to the boot files on partition #4, and not the one on my hidden suse 9.3 partition?
 
Old 09-05-2005, 09:46 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
I am not sure I agree with your assertion but humour me.
You have not posted your /boot/grub/menu.lst file and I suspect you have an error if you think something can be hidden from grub. The below stuff is only for my curiousity for you to try.....its better you post your menu file but linux offers choice.

1) GRUB can hide any partition....agreed
2) MS likes to see only Ms stuff....agreed
3) what is the point of putting grub's booting files onto a primary partiton that I don't know its format?

so if you have a backup floppy that works.....and you have written down you menu.lst file
copy all of the /boot/ and sub-folders and files to target partition then when grub in mbr starts press escape to stop timer and press C for commands and after reading my signature help files you know to try

root (hd0,3)
setup (hd0)
boot......and cross your fingers.....if it fails change the top line to root (hd0,4) etc to reset

this may not work......if grub does not know what to do with your format.
 
  


Reply



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
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM
grub install unknown partition table signature imranakbar Linux - Hardware 1 10-31-2004 01:30 AM
Install Grub/Lilo at the First Sector of the Boot Partition?? ckamheng Linux - General 2 08-21-2004 09:35 AM
How to grub install to a partition on an image file via a loopback Owen LaGarde Linux - Software 2 12-26-2003 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:07 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
Open Source Consulting | Domain Registration