LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-27-2003, 11:19 PM   #16
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58

when you post here you are posting on the web. Google links to this forum all the time.
 
Old 08-09-2003, 12:04 PM   #17
ponkanMonster
LQ Newbie
 
Registered: Aug 2003
Location: Philippines
Distribution: mandrake 10
Posts: 16

Rep: Reputation: 0
grub my grub

howdy folks!

i am also a newbie. so please, please help me with this. here it goes.

i am trying to install red hat 7.3. i already had winXP. however, after installation i cannot anymore access XP. (yeah, i know most of you will be happy for me to remove my windows!hehehehe!)

when grub loads, it will let you choose between red hat and dos. upon selecting red hat it runs fine. however, when you choose dos, the screen will just put

rootnoverify(hd0,4)
chainloader+1

any solutions out there for me to load XP?
 
Old 08-09-2003, 09:06 PM   #18
ponkanMonster
LQ Newbie
 
Registered: Aug 2003
Location: Philippines
Distribution: mandrake 10
Posts: 16

Rep: Reputation: 0
hello everybody!

i have fixed the problem. through reading your replies of course. Linux is really great.

i solved by using the superuser. Then going to cd /boot/grub.
Then editing through pico grub.config. hope everyone will hear of this.

it is so nice to be part of the open source community!yahoo!
 
Old 08-10-2003, 05:14 AM   #19
lynch
Member
 
Registered: Nov 2000
Location: A Mid-Atlantic state
Distribution: SuSE 8.1,Knoppix 3.2,Mandrake 9.1
Posts: 388

Rep: Reputation: 30
The mods like ppl like you
lynch
 
Old 09-03-2003, 03:35 PM   #20
sammyd56
Member
 
Registered: Sep 2003
Posts: 36

Rep: Reputation: 15
hi i have the same problem but cant find grub.conf!?

its not in /boot/grub

is there another way to chane the options or am i looking in the wrong place?
 
Old 09-03-2003, 05:22 PM   #21
lynch
Member
 
Registered: Nov 2000
Location: A Mid-Atlantic state
Distribution: SuSE 8.1,Knoppix 3.2,Mandrake 9.1
Posts: 388

Rep: Reputation: 30
try/boot/grub/menu.lst or /etc/grub.conf.
 
Old 10-09-2003, 11:42 PM   #22
evan
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
similar problem with redhat 9.0. there's a typo to the grub solution: you cannot use "unhide(hd0,0)", you need a blank space between unhide and the left paren: "unhide (hd0,0)"
The grub command parser is primitive and will not report the syntax error. Without the blank space, your problem still remains and you will end up pursuing a different solution.
 
Old 12-01-2003, 03:41 PM   #23
cment
LQ Newbie
 
Registered: Dec 2003
Location: Jax Florida for the time being
Posts: 7

Rep: Reputation: 0
Ok, found this on a massive search and need some help. Same problem and below is my grub file, I just need to know how to put in the winxp part and where. Newbie at its finist

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/hda3
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-3)
root (hd0,2)
kernel /boot/vmlinuz-2.4.18-3 ro root=/dev/hda3 hdc=ide-scsi
initrd /boot/initrd-2.4.18-3.img


Thanks for any help.
 
Old 12-01-2003, 04:20 PM   #24
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
At the end of the file

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

hd0,0 is for the first partition on the primary master drive, adjust as necessary.
 
Old 12-01-2003, 05:38 PM   #25
cment
LQ Newbie
 
Registered: Dec 2003
Location: Jax Florida for the time being
Posts: 7

Rep: Reputation: 0
remember newbie here, what do you mean by adjust as necessary.
 
Old 12-01-2003, 08:51 PM   #26
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
With respect to the partition where windows is installed, you need to know the drive controller and partition.

hd0 = primary master
hd1 = primary slave
hd2 = secondary master
hd3 = secondary slave

The second number is the partitions position on the drive

Most windows installs use the first partition on the primary master. However on laptops and a few other machines there may be a hibernation, or diagnostic partition on the beginning of the drive. If this is the case then windows would usually install to the second partition on the primary master. (hd0,1)


For this to work you need to check the partitions with fdisk to be sure you have the right one. Guessing would also work in this case.

fdisk -l
Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 141 1132551 a0 IBM Thinkpad hibernation
/dev/hda2 * 142 3789 29302560 7 HPFS/NTFS
/dev/hda3 3790 3806 136552+ 83 Linux
/dev/hda4 3807 7296 28033425 5 Extended
/dev/hda5 3807 3931 1004031 82 Linux swap
/dev/hda6 3932 7296 27029331 83 Linux



When you look at this you need to convert the device name to the grub naming convention like this..

hda1 = hd0,0
hda2 = hd0,1

hdb1 = hd1,0
hdb2 = hd1,1


In the case of this one the grub line would read (hd0,1)


Last edited by DavidPhillips; 12-01-2003 at 08:53 PM.
 
Old 12-01-2003, 09:03 PM   #27
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
If it fails to boot then you can go back and add this..

unhide (hd0,1)

again adjusting the partition name as needed to point to the windows drive and partition.

If your ntfs partition is set to be the bootable partition you will see the * in the output of fdisk -l

/dev/hda2 * 142 3789 29302560 7 HPFS/NTFS
 
Old 12-02-2003, 07:57 AM   #28
cment
LQ Newbie
 
Registered: Dec 2003
Location: Jax Florida for the time being
Posts: 7

Rep: Reputation: 0
Quote:
Originally posted by DavidPhillips
At the end of the file

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

hd0,0 is for the first partition on the primary master drive, adjust as necessary.
ok, did that last night. Didn't see the other post till this morning will try them this afternoon. I put in the other in Grub with kedit at the end hope that was right. now it says operating system missing. I can boot with the xp cd and get to the partitions and the primary say os inactive. I am gonna learn this linux if it kills me and makes you all pull out your hair.

 
Old 12-02-2003, 03:46 PM   #29
cment
LQ Newbie
 
Registered: Dec 2003
Location: Jax Florida for the time being
Posts: 7

Rep: Reputation: 0
AS the Penguin spins is like the bits and bites of our minds at night

THis is my setup.

# equals the little square

#/dev/hda 1 4155 32593 NTFS
|
#hda2 4156 7442 25784 Extended
| |
| hda5 4156 7442 25784 NTFS
|
|--hda4 7443 7666 1757 linux-swap
|
|--hda5 7667 9732 16206 ext3


I tried adding the winxp to the grub loader.

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/hda3
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-3)
root (hd0,2)
kernel /boot/vmlinuz-2.4.18-3 ro root=/dev/hda3 hdc=ide-scsi
initrd /boot/initrd-2.4.18-3.img
title WindowsXP
root (hd0,0)
makeactive
chainloader +1

I am lost as you can get
 
Old 12-02-2003, 06:54 PM   #30
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Quote:
#/dev/hda 1 4155 32593 NTFS

This looks like a problem.

Is it a typo or does it not actually have /dev/hda1 1 4155 32593 NTFS


Have you tried adding this somewhere under "title WindowsXP" ?


unhide(hd0,0)
 
  


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
RedHat 9 and Windows XP thanko Linux - Distributions 9 04-22-2003 02:56 PM
redhat 8.0 and windows xp coolzero16 Linux - Networking 1 02-01-2003 09:55 AM
Windows Xp and Redhat 8.0 lasalsademuerte Linux - Software 5 01-29-2003 03:24 PM
Redhat and Windows XP sbauer Linux - Newbie 4 01-16-2003 06:46 PM
PLEASE! redhat 8 and windows XP HiGate Linux - Networking 1 01-10-2003 09:17 AM

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

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