LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-29-2007, 10:23 PM   #1
cole07
LQ Newbie
 
Registered: Jun 2007
Distribution: Fedora 7
Posts: 11

Rep: Reputation: 0
Dual Boot Fedora and PCLOS7


I got a new laptop (dv9000) and it came with Windows Vista. I just set that a side and installed PCLinuxOS 2007 and it installed it's own boot loader... everything went well I could use both Operating Systems.

Then I installed Fedora 7, it too install it's own boot loader (Grub)... BUT I can only access Windows Vista and Fedora 7... NOT PCLinuxOX 2007

How can I make PCLinux 2007 work with the Grub boot loader???

sda = hard drive
sda1 = vista
sda2 = boot loader
sda3 = extended
inside sda3 is sda5 = Fedora 7
inside sda3 is sda6 = Linux swap (which I don't think works)
inside sda3 is sda7 = /home
inside sda3 is sda8 = PCLinuxOS 2007
sda4 = HP Recovery

under: System > Administration > Bootloader I can pick between OS, but can't change them. It does list Fedora 7, PCLinuxOS 2007, and Windows Vista.

When I try to load PCLOS it does give me an error... I'll go see what it is, brb.
back... error is:

booting 'PCLinuxOS 2007'
rootnoverity (hd0,7)
chainloader +1
Error 13 Invalid or unsupported executable format

I opened /boot/grub/menu.lst

title Fedora (2.6.21-1.3228.fc7)
root (hd0,4)
kernel /boot/vmlinuz-2.6.21-1.3228.fc7 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.21-1.3228.fc7.img
title Fedora (2.6.21-1.3194.fc7)
root (hd0,4)
kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.21-1.3194.fc7.img
title PCLinuxOS 2007
rootnoverify (hd0,7)
chainloader +1
title Windows Vista
rootnoverify (hd0,0)
chainloader +1

that makes it look like PCLinuxOS is setup like Vista... which isn't right. So I replace it with something?

Last edited by cole07; 06-29-2007 at 10:41 PM.
 
Old 06-30-2007, 04:45 AM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Yes you need to change your PC Linux entry. The best way I have found is to open your /boot/grub/menu.lst in (sd8) and copy the top entry and then paste it in the /boot/grub/menu.lst of (sd5). Remove your entry for chainloading PC Linux.
 
Old 07-01-2007, 04:09 PM   #3
cole07
LQ Newbie
 
Registered: Jun 2007
Distribution: Fedora 7
Posts: 11

Original Poster
Rep: Reputation: 0
root (hd0,4)
kernel /boot/vmlinuz-2.6.21-1.3228.fc7 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.21-1.3228.fc7.img

what should I put for the Kernal and initrd??? because that has fc7 in it!
 
Old 07-01-2007, 04:26 PM   #4
cole07
LQ Newbie
 
Registered: Jun 2007
Distribution: Fedora 7
Posts: 11

Original Poster
Rep: Reputation: 0
I tried the following and got an "Error 15"

title PCLinuxOS 2007
root (hd0,7)
kernel (hd0,7)/boot/vmlinuz-2.6.12-oci4.mdk root=/dev/hda3 vga=0x317
initrd (hd0,7)/boot/initrd-2.6.12-oci4.mdk.img
 
Old 07-01-2007, 04:43 PM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
root=/dev/hda3
That doesn't match your other entry
Quote:
root (hd0,7)
What partition is pclinux on?

What is the output from: fdisk -l
 
Old 07-01-2007, 05:23 PM   #6
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
If the top thread is correct root should be at sda8. cole07 give us a "fdisk -ls"
 
Old 07-01-2007, 06:03 PM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
The most elegant way to do it is stick with the menu.lst in Post #1.

Your PCLinuxOS will boot if you are activate a Grub shell or Grub prompt and issue these commands
Code:
root (hd0,7)
setup (hd0,7)
Remember you can only chainload a Linux if you have installed a boot loader in its root partition. You have only been putting Grub in the MBR for both Fedora and PCLinuxOS. The "root" + "setup" statements above put it right for you.

As a minor refinement in Linux no need to use "rootnoverify" which is for a partition without a kernel. "root" is adequate for every Linux but the use of "rootnoverify" does not affect the booting materially.
 
Old 07-01-2007, 08:30 PM   #8
cole07
LQ Newbie
 
Registered: Jun 2007
Distribution: Fedora 7
Posts: 11

Original Poster
Rep: Reputation: 0
umm... I can't fdisk -l or fdisk -ls
here is the terminal:

[dcole@localhost ~]$ su
Password:
[root@localhost dcole]# fdisk -l
bash: fdisk: command not found
[root@localhost dcole]# fdisk -ls
bash: fdisk: command not found
[root@localhost dcole]#


what am I doing wrong here?
--- ----
rootnoverify was the default thing after I installed PCLinuxOS... No input on my part.
 
Old 07-01-2007, 08:46 PM   #9
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Don't forget to use the dash ( - ) like this...
Code:
su -
 
Old 07-01-2007, 09:09 PM   #10
cole07
LQ Newbie
 
Registered: Jun 2007
Distribution: Fedora 7
Posts: 11

Original Poster
Rep: Reputation: 0
Here you go:

[root@localhost ~]# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 5542 44514738+ 7 HPFS/NTFS
/dev/sda2 5543 5555 104422+ 83 Linux
/dev/sda3 5556 12997 59777865 5 Extended
/dev/sda4 18597 19457 6915982+ 7 HPFS/NTFS
/dev/sda5 5556 6599 8385898+ 83 Linux
/dev/sda6 6600 7121 4192933+ 82 Linux swap / Solaris
/dev/sda7 7122 12343 41945683+ 83 Linux
/dev/sda8 12344 12997 5253223+ 83 Linux
[root@localhost ~]# fdisk -ls

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 5542 44514738+ 7 HPFS/NTFS
/dev/sda2 5543 5555 104422+ 83 Linux
/dev/sda3 5556 12997 59777865 5 Extended
/dev/sda4 18597 19457 6915982+ 7 HPFS/NTFS
/dev/sda5 5556 6599 8385898+ 83 Linux
/dev/sda6 6600 7121 4192933+ 82 Linux swap / Solaris
/dev/sda7 7122 12343 41945683+ 83 Linux
/dev/sda8 12344 12997 5253223+ 83 Linux
[root@localhost ~]#

so basically, what should the whole PCLinuxOS look like in menu.lst? I'm dumber than I appear!

Last edited by cole07; 07-01-2007 at 09:14 PM.
 
Old 07-01-2007, 09:33 PM   #11
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
If you have a SATA ( sda ) drive, it will probably look like this...
Code:
title PCLinux
   kernel (hd0,7)/boot/vmlinuz root=/dev/sda8  splash=silent vga=788
   initrd (hd0,7)/boot/initrd.img
and thanks to a curve ball from FC7 , grub entries for other linuxes which are on an
IDE drive ( hda ) would look like this...
Code:
title PCLinux
   kernel (hd0,7)/boot/vmlinuz root=/dev/hda8  splash=silent vga=788
   initrd (hd0,7)/boot/initrd.img
 
Old 07-02-2007, 02:13 AM   #12
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
If you insert the lines, as suggested in Post #11 into the Fedora's menu.lst or grub.conf that constitutes direct method of booting and you need to be precise with the kernel and initrd names.

The suggestion in post #7 is indirect method of booting requiring nothing except the partition number with PCLinuxOS's /boot.

Both methods works perfectly.
 
Old 07-02-2007, 02:17 AM   #13
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
If you insert the lines, as suggested in Post #11 into the Fedora's menu.lst or grub.conf that constitutes direct method of booting and you need to be precise with the kernel and initrd names.

The suggestion in post #7 is indirect method of booting requiring nothing except the partition number with PCLinuxOS's /boot.

Both methods works perfectly. You can have them both because they can co-exist together.

You can fire up PCLinux in Fedora's Grub right now by pressing the "c" key to drop into a Grub prompt with command
Code:
root (hd0,7)
setup (hd0,7)
chainloader +1
boot
The above put Grub inside root partition of PCLInuxOS and then boot it up.

Alternative you can fire up PCLinuxOS without restoring Grub just by this command
Code:
configfile (hd0,7)/boot/grub/menu.lst
There are so many ways to skin this cat.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Attempted Dual Boot of XP and Fedora. Now MBR will boot straight to Linux.How to fix? mdorries Fedora 7 05-27-2007 06:22 AM
Dual Boot XP-Fedora 6 crashes/reboots only when running Fedora BigVig Fedora 5 05-08-2007 06:49 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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