LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 04-05-2008, 11:42 PM   #1
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Rep: Reputation: 15
Question WIll this GRUB config work with adding a new HDD and OS?... If not what will?


Hi,
I am currently in the proccess of downloading Kubuntu and am planning on installing it on a new HDD I just purchased but have not installed yet. (Still waitin' on the download to finish.)

I currently have Winblowz XP and Fedora 8 installed on my HDD and my menu.lst file looks like this
Quote:
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=30
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora 8
root (hd0,2)
kernel /vmlinuz-2.6.24.3-50.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.24.3-50.fc8.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
The desired effect is to install Kubuntu (and later others) on my new HDD and have them all be selectable from GRUB which is installed on hd0.

Is it possible to do something like this...

Quote:

title Kubuntu 7.10
root (hd1,0)
kernel /vmlinuz (what the heck am I supposed to put here?)
will I need anything else after those lines?
title Fedora 8
root (hd0,2)
kernel /vmlinuz-2.6.24.3-50.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.24.3-50.fc8.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
I've thought about disconnecting my current HDD from my system, puting the new drive in, installing Kubuntu, and seeing what it comes up with for grub settings, then just pasting those into the existing menu.lst on hd0 (changing the Kubuntu stuff to hd1 of course). But, Kubuntu isn't even going to install GRUB without any other operating systems on the new HDD will it? Will I still get a menu.lst file?

Help me out guys, I'd like to get this set up, the other posts don't really seem to cover it very well, unless you want to swap your hard drive out any time you want to boot something different. blah.

Let me know,
E
 
Old 04-06-2008, 12:50 AM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
lets explain your current working system.

xp is on first partition (hd0,0)

fedora /boot is a separate partition (hd0,2)

fedora / is on a lvm...I assume that is what you really wanted at the time?

2) we are assuming new hdd is an internal ide?

3) kubuntu should have an option for grub...if it does just select
to root partition

meaning to (hd1,0)

where you have put kubuntu /boot as a separate partition or /

read my signature if you are struggling but I think you have done well so far...

4) edit your fedora any time to add a new chainloader

title Kubuntu
root (hd1,0)
chainloader +1

5) kubuntu can install without any other system...not sure you mislead you there....its an operating system so cos its wants to install.

6) because you will have 2 drives you have 2 mbrs so if your bios allows bios boot order detection from drive 0 to drive1 you could choose to have kubuntu in mbr of drive 1 and edit its menu to chainload xp and fed....but if the bios boot order changes you edit the hd numbers

well lets see how far you get with my signature and above eh?
 
Old 04-06-2008, 01:06 AM   #3
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Original Poster
Rep: Reputation: 15
aus9,
Thanks for your reply. Good info here.

The LVM is not currenty my first choice, it was default and I didn't know any better! Probably wouldn't do it again.

Yes, sorry, the new HDD is internal.

Just have a few clarifying questions...

Quote:
4) edit your fedora any time to add a new chainloader

title Kubuntu
root (hd1,0)
chainloader +1
I'm not really sure how chainloaders work or even what the basic concept of them is. Can you explain?

So, would puting that quote in my current menu.lst boot Kubuntu from hd1,0?

Quote:
6) because you will have 2 drives you have 2 mbrs so if your bios allows bios boot order detection from drive 0 to drive1 you could choose to have kubuntu in mbr of drive 1 and edit its menu to chainload xp and fed....but if the bios boot order changes you edit the hd numbers
Are you saying that I could boot from hd1 and use grub there to boot the desired os? How is this different than just booting hd0 and doing the same thing and directing it to hd1 if needed?

I haven't yet installed it yet. The download has about another 35 min.
I'd like to try all of this when it's done.
Thanks for your help!
E
 
Old 04-06-2008, 12:08 PM   #4
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Original Poster
Rep: Reputation: 15
I actually had a thought last night to just clone my current disk to my new one. Leaving me with 3 160gb sections, (instead of 2 previously) 1 for each os. Perfect. I'll just use my now old 320gb for extra storage between them all. Haven't decided how to partition it yet.

The clone went fine using easeus's free tool. It took about 2.5 hours to clone 290gb of data with an nForce chipset. I'm running from it now.

Thanks for your previous help. I may still refer to it if I decide to get even crazier and install yet another os!

E
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble adding IDE HDD through USB ayuh Linux - Hardware 6 11-06-2007 01:05 AM
Grub fails after adding new hdd vicky_me Red Hat 2 03-01-2007 06:27 AM
raid 0 concern --adding new hdd micro_xii Linux - Newbie 1 01-16-2007 05:52 AM
[RAID1, GRUB] Secondary HDD can't boot up when primary HDD fails Akhran Linux - Newbie 2 05-04-2006 04:17 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM


All times are GMT -5. The time now is 11:52 PM.

Main Menu
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