LinuxQuestions.org
Register a domain and help support LQ
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 10-31-2005, 06:00 AM   #1
bmccorm2
Member
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 67

Rep: Reputation: 15
Problems dual booting FC4 and Slack 10.2


Hey guys I am having a problem with dual booting. I am quite new at this, but this is what I have tried to do thus far. Here is a picture of my hard drive:

hdc1 = 19 GB linux
hdc2 = 1 GB linux swap #both for FC4
hdc3 = 19 GB linux
hdc4 = 1 GB linux swap #both for Slack

The bootable partition is hdc1, which is where i installed grub for FC4. I installed Slack just fine, but I did not install the boot loader. Then, in FC4, I mounted /dev/hdc3 and copied the contents of /boot into the the /boot file on hdc1, so I could boot both operating systems. I then changed my grub.conf file to look like this: (this is what I do not understand)

Code:
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.13-1.1532_FC4)
      root (hd0,0)
      kernel /boot/vmlinuz-2.6.13-1.1532_FC4 root=LABEL=/
      initrd /boot/initrd-2.6.13-1.1532_FC4.img
title Fedora Core (2.6.11-1.1369_FC4)
      root (hd0,0)
      kernel /boot/vmlinuz-2.6.11-1.1369_FC4 root=LABEL=/
      initrd /boot/initrd-2.6.11-1.1369_FC4.img
title Slackware
      root(hd0,0)
      kernel /boot/isolinux/vmlinuz root=/dev/hd3
      initrd /boot/isolinux/diag1.img
When I try to boot Slack, it says it is unable to mount the root partition.

Under the slackware title, I don't understand how grub is configured, i.e. what numbers to put in where, specifically for the "root(hd0,0)" and "kerenl ........." lines. Could anyone tell me how the file is configured or what values I should put in there to be able to choose which system to boot?
 
Old 11-01-2005, 02:47 AM   #2
whipermr5
Member
 
Registered: Dec 2004
Location: Singapore
Distribution: Fedora Core 5 Linux
Posts: 202

Rep: Reputation: 30
Grub numbers harddrives and partitions differently than linux. In linux, the first partition of the first harddrive is /dev/hda1, while in grub it is (hd0,0). If root (hd0,0), then kernel /example would be /mountpointofhda1/example.
 
Old 11-01-2005, 11:59 AM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
There is an error in the 3rd line for Slackware

kernel /boot/isolinux/vmlinuz root=/dev/hd3

change hd3 to hdc3

Also I assume you have setup

Slackware's isolinux/diag1.img correctly in hdc1.

------------------------------------------------

You could have saved a lot of bother to chainload Slackware with it hdc3 partition.

Steps are

(1) Boot FC4, log in as root, drop to terminal mode, make a temporary directory /mnt/hdc3, mount device hdc3 on it

mkdir /mnt/hdc3
mount /dev/hdc3 /mnt/hdc3

(2) Replicate Slackware boot loader Lilo in root partition hdc3, then exit back to FC4

lilo -b /dev/hdc3
exit

(3) Amend /boot/grub/menu.lst to change

title Slackware
root(hd0,0)
kernel /boot/isolinux/vmlinuz root=/dev/hd3
initrd /boot/isolinux/diag1.img

to

title Slackware @ hdc3 by chainloading
root(hd0,2)
chainloader +1

By chainloading you use Grub to boot Slackwar's Lilo. The 3 lines of Grub commands are universal with which you can boot any DOS, Windows, XP, Linux, BSD and Solaris. The only change you need in the partition number.

Grub counts from 0 and so (hd0,2) = hdc3

I am assuming your hda and hdb are either a CD drive or unattached casuing Linux to register its first hdd as hdc. There is nothing wrong with it.
 
Old 11-01-2005, 12:13 PM   #4
bmccorm2
Member
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 67

Original Poster
Rep: Reputation: 15
Thank you so much for your very helpful posts. I have everything working in order
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
dual booting with FC4 Digital Surgeon Fedora - Installation 1 10-12-2005 11:06 PM
Dual-Booting FC4 and WinXP 3t3rnal Linux - Newbie 8 08-05-2005 09:31 PM
No luck dual-booting FC4 and XP nicomachean Linux - Newbie 6 07-19-2005 09:08 AM
so close to dual booting xp and FC4! richardg Linux - Newbie 3 07-01-2005 10:55 AM
Dual Booting Problems with Slack 8.0 and WinME Ontrose Linux - Software 7 07-29-2001 08:18 AM


All times are GMT -5. The time now is 01:34 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration