LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-16-2003, 01:08 AM   #1
skitxoz
LQ Newbie
 
Registered: Jun 2003
Posts: 15

Rep: Reputation: 0
modifying grub bootloader w/ gui (rh8)


When my bootloader comes up I can choose Linux (master hd - hda1) and it will boot fine..but i try and choose the Windows hd (slave hd -- hdb1) it says disc not found..I tried running through the rescue options on the rh8 installation but I didn't have any luck installing a new bootloader..is there anyway within the gui of rh8 to modify what hd and where it accesses the files so I can get my windows back up and working (the hd has win already installed and works properly)
 
Old 06-16-2003, 02:38 AM   #2
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: a few...
Posts: 654

Rep: Reputation: 32
if linux automounts the windows hard drive, run
df
whilst at the console, that will give you the actual mount point
So, if you find the actual HDD then you can edit the grub boot menu
/boot/grub/some file ... real obvious when you look, but i haven't got it here :P

alternatively, /etc/fstab contains a list of all mount points

IF however you don't have a mount point configured, then you need to work out where the HDD is actually connected
primary master is /dev/hda
primary slave is /dev/hdb
seconday master is /dev/hdc
and secondary slave is /dev/hdd

so where ever it is. then you need to know what partition on it, but that's easy enough really coz odds are it's the first one
so just try mounting the different /dev/hdb1 etc to some directory (that's empty)

for instance mkdir ~/temp
mount /dev/hdb1 ~/temp

~ is your home directory /home/YOU

when you find what HDD contains all the windows directories, just point grub to it.

Now be reasonable run df first, to see if it's mounted,
then mount the drives in sequence so mount the first, then umount it, then the second until you're done
you might need to be root, i forget, you will need to be root to edit the grub menu.

Unfortunately all of this happens in the console, except for editing grub.

One last thing, don't change the lines in grub that relate to linux, coz if you do, you might break the bootloader (so if you ain't sure, BACK UP)

best of luck
 
Old 06-16-2003, 01:33 PM   #3
skitxoz
LQ Newbie
 
Registered: Jun 2003
Posts: 15

Original Poster
Rep: Reputation: 0
thanks for all the info..ill try that and see how it goes
 
Old 06-17-2003, 11:33 PM   #4
skitxoz
LQ Newbie
 
Registered: Jun 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Here is my grub.conf file:

****

default=0
timeout=0
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/
initrd /initrd-2.4.18-14.img
title Windows
rootnoverify (hd1,0)
chainloader +1

****

in my df list i have the primary slave mounted as:

/dev/hdb1 /mnt/win

My question is, what/how do I edit the grub file to point to this other HD so in my GRUB menu I can boot to either win or lin?
 
  


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
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
Modifying GRUB selections gizza23 Linux - Software 3 07-13-2005 07:19 AM
Modifying GUI screen resolution thru text jenson Red Hat 1 03-18-2005 03:33 PM
Is there a way to change which kernel/os boots without modifying grub.conf? niverson Linux - Software 2 01-05-2005 04:14 PM
RH8 Modifying Default Apache / PHP config p4ck37p1mp Linux - General 4 02-10-2003 10:09 PM

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

All times are GMT -5. The time now is 09:22 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