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 03-14-2004, 07:56 PM   #1
GoBoy
LQ Newbie
 
Registered: Mar 2004
Location: London
Posts: 21

Rep: Reputation: 15
Booting with Windows Xp and Linux RH9


Hi All,

Don't get me wrong, I am an IT Technician at a school and a BSc. A.I. student, so I am almost too familiar with computers in general and especially Windows. My course requires that I learn to use linux (which is good and bad). Good because I get to learn it and I am already doing well, and bad because it takes a lot of getting used to. Ok - I'll cut to the chase...

I have Xp installed on HDD1 (obviously my primary OS) and RH 9 on HDD2, I also have Bootmagic installed on Windows. Up until now I have been using a floppy disk to boot into Linux but obviously it isn't the icing on the cake and I would like to have both OS set up correctly in BootMagic, but I don't know how to do it.

I go to Kickstart on the menu and I save the file but the changes don't seem to have any impact. I am pretty scared of changing from GRUB to LILO as I have had bad experiences with LILO in the past. I would appreciate it if somebody could talk me through it step by step as if I am a complete novice as I think it would better my understanding. I wanted to be able to do it myself but I didn't want to take the chance and lose all my data. If somebody could take me through bootmagic as well to suit the changes in Linux I would appreciate it very much,

cheers,

Johnny Go-Boy
 
Old 03-14-2004, 09:16 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
In fact you don't need bootmagic, can you describe which IDE/SCSI channels are your disks connected and how are they partitioned?
 
Old 03-14-2004, 11:29 PM   #3
vdogvictor
Member
 
Registered: Feb 2004
Distribution: Arch
Posts: 498

Rep: Reputation: 31
i have a dual boot with Red Hat 9 and XP and i use LILO...no problems take the plunge...or wait for better advice lol
 
Old 03-15-2004, 05:32 AM   #4
GoBoy
LQ Newbie
 
Registered: Mar 2004
Location: London
Posts: 21

Original Poster
Rep: Reputation: 15
Okay, I have /dev/hdb1 which is my boot partition and /dev/hdb2 which is ext3. I thought I had a swap partition but I don't :-S does this help?
 
Old 03-15-2004, 09:24 AM   #5
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Boot into Linux with your floppy disk, login as root, invoke 'grub' to get into grub shell, then enter these commands
Code:
GRUB> root (hd1,0)
GRUB> setup (hd1,0)
that will install GRUB into your /boot with is hdb1
then boot back into winxp and add it in bootmagic, it should be able to pick up the partition.
 
Old 03-15-2004, 11:46 AM   #6
GoBoy
LQ Newbie
 
Registered: Mar 2004
Location: London
Posts: 21

Original Poster
Rep: Reputation: 15
Errr, I got this:


grub> root (hd1,0)
Filesystem type is ext2fs, partition type 0x83

grub> setup (hd1,0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no

Error 15: File not found

what is wrong?
 
Old 03-15-2004, 12:02 PM   #7
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
that means either your /boot is not in hdb1, or grub isnt installed properly(though it should otherwise you wouldn't have the executable)..
check if you have a /boot/grub directry
and can you do "/sbin/fdisk -l" and post the output?
 
Old 03-15-2004, 12:38 PM   #8
GoBoy
LQ Newbie
 
Registered: Mar 2004
Location: London
Posts: 21

Original Poster
Rep: Reputation: 15
yes grub is installed. here is the output

Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 2550 20482843+ 17 Hidden HPFS/NTFS
/dev/hda2 2551 4998 19663560 f Win95 Ext'd (LBA)
/dev/hda5 2551 4360 14538793+ b Win95 FAT32
/dev/hda6 4361 4998 5124703+ b Win95 FAT32

Disk /dev/hdb: 13.0 GB, 13030907904 bytes
255 heads, 63 sectors/track, 1584 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 1527 12161205 83 Linux
/dev/hdb3 1528 1584 457852+ 82 Linux swap
 
Old 03-15-2004, 08:33 PM   #9
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Check if there are various stage files in /boot/grub
Get into grub prompt, set the root nad enter "kernel / <hit tab>" , it should show you a list of files in /boot, include a grub folder, if it shows directories in your root partition instead try (hd1,1).
 
Old 03-17-2004, 04:20 PM   #10
GoBoy
LQ Newbie
 
Registered: Mar 2004
Location: London
Posts: 21

Original Poster
Rep: Reputation: 15
I went into grub and typed in "kernel / <hit tab>" and it did not work. sorry for being such a nuisance. i have a boot disk, can I not copy those files into the /boot directory instead??
 
Old 03-17-2004, 04:22 PM   #11
GoBoy
LQ Newbie
 
Registered: Mar 2004
Location: London
Posts: 21

Original Poster
Rep: Reputation: 15
it says invalid device requested. there is only one file in /boot/grub and that is splash.xpm.gz - mean anything??
 
Old 03-18-2004, 02:01 AM   #12
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
I meant pressing the tab key literally, you didn't actually type it in did you ? :-)
anyway you're suppose to have various stage files in /boot/grub, but apparently you don't
copy verything from
/usr/share/grub/i386-redhat
into /boot/grub
(all *stage* files)
and creat a /boot/grub/grub.conf file which looks something like this:
Code:
default=0
timeout=10
splashimage=(hd1,0)/boot/grub/splash.xpm.gz

title Red Hat Linux 2.4.20-8
root (hd1,0)
kernel /vmlinuz-2.4.20-8 ro root=/dev/hdb2
initrd /initrd-2.4.20-8
Change vmlinuz(the kernel image) and initrd(initial ram drive) to the ones you're using, you should be able to find them in your /boot.
 
Old 03-18-2004, 12:12 PM   #13
GoBoy
LQ Newbie
 
Registered: Mar 2004
Location: London
Posts: 21

Original Poster
Rep: Reputation: 15
Okay, I have done what you have said. and no I didn't type in "kernel / <hit tab>" literally even so, it still doesn't work even now. one thing that is quite bizarre is that I have quite a few kernel's and initrd's. for some reason though, it insists on using the same version which is "-2.4.20-8", however my latest version is "-2.4.20-30.9". i restarted linux using the disk again, is it possible that I would have change something on the floppy disk as well? or if I set up bootmagic correctly will it boot using the newest kernel anyway? what do I do next?

cheers for your help so far,

John
 
Old 03-18-2004, 12:59 PM   #14
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
if you use the bootdisk then it uses the kernel image on it, therefore you cant change , after you copy various stage files to /boot/grub does it complain when you do setup (hd1,0)?
For grub.conf put in the latest kernel and initrd combo
 
Old 03-18-2004, 02:52 PM   #15
GoBoy
LQ Newbie
 
Registered: Mar 2004
Location: London
Posts: 21

Original Poster
Rep: Reputation: 15
it says this:

Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd1,0)"... failed (this is not fatal)
Running "embed /grub/e2fs_stage1_5 (hd1,0)"... failed (this is not fatal)
Running "install /grub/stage1 (hd1,0) /grub/stage2 p /grub/grub.conf "... succ
eeded
Done.
 
  


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
linux booting windows kilgor Linux - General 8 08-27-2005 06:15 PM
Booting Linux from within windows ccates Linux - Software 5 01-22-2005 05:59 PM
Dual Booting Linux and Windows Mandarb Linux - Software 3 05-05-2004 10:41 AM
Dual booting Windows XP and RH9 roguecoolman Linux - Newbie 14 02-22-2004 01:38 AM
dual booting linux and windows kevincadogan Linux - Software 3 02-01-2004 01:42 PM


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