LinuxQuestions.org
Help answer threads with 0 replies.
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
 
Search this Thread
Old 04-10-2002, 08:54 AM   #1
tb-guru
LQ Newbie
 
Registered: Apr 2002
Posts: 1

Rep: Reputation: 0
Question install 2 linux on the same hard disk?


I want to install red hat linux and chinese version linux on the same hard disk, can this be done? Please teach me how to do it.
Thanks a lot to all of you "linux experts"!!!
 
Old 04-10-2002, 10:09 AM   #2
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
Yes it can be done:
install english version, during install create:

/ a root partition probably hda1
<swap> probably hda5

When it asks you if you want to format these write down the drive designation ie: hda1 and hda5, you will need this later. continue on with install

leave enough room(freespace) for the chinese install say 2gig. I use lilo so I will be using lilo to boot these systems in these instructions. When done installing, boot the system and make sure everything is good to go.

shutdown and start the chinese install:
Start the chinese install, when you partition the drive select the freespace you left, and label that as:
/ a root directory, probably going to be hda2

the swap drive can be shared
DONT FORMAT THE / "ROOT" PARTITON FROM YOUR FIRST INSTALL!! You can select it to be mounted but dont format it.

When it asks you if you want to format these write down the drive designation ie: hda2, you will need this later. continue on with install. DONT INSTALL LILO OR GRUB TO DISK. Create a boot disk at end of install.

When done you will boot up into the english version.
mount your chinese versions root directory:

mount -t ext2 or ext3 /dev/hda2 /mnt

cp /mnt/boot/vmlinux-2.4.7-10 /boot/vmlinux-2.4.7-10-chin

mv /boot/vmlinux-2.4.7-10 /boot/vmlinux-2.4.7-10-eng

so now you have 2 kernels in /boot on your english version:
vmlinux-2.4.7-10-eng
vmlinux-2.4.7-10-chin


Your going to edit /etc/lilo.conf (yours may not be exactlly the same)

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
linear
default=linux

Image = /boot/vmlinuz-2.4.7-10-eng #your english kernel
Label = linux
Root = /dev/hda1 #whatever partition eng / is on
Read-Only

#ADD:
Image = /boot/vmlinuz-2.4.7-10-chin #your chinese kernel
Label = chinese
Root = /dev/hda2 #whatever partition chin / is on
Read-Only

After you are done editing lilo.conf run /sbin/lilo -v to make the changes to the boot loader.

Now when your computer boots up you will have the choice to select:
linux
chinese

I took the liberty to guess you are using redhat7.2. The partition identifiers may be different make sure to write them down during the install. Any probs, dont be afraid to post.

If someone sees somthing wrong with what I said plz correct me.

Last edited by hanzerik; 04-10-2002 at 10:13 AM.
 
Old 04-10-2002, 10:11 AM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
Of course it is doable, install first OS install lilo, then install second OS and don't install lilo, just boot to first OS, and edit /etc/lilo.conf
to have an entry for the second OS; you'll need mount your second OS partitions though (at least /), and edit /etc/fstab accordingly. Need more help, just come back here and ask.
Regards, Neo.

Last edited by neo77777; 04-10-2002 at 10:12 AM.
 
Old 04-10-2002, 10:33 AM   #4
TeRG
Member
 
Registered: Apr 2002
Posts: 48

Rep: Reputation: 15
Quote:
Originally posted by neo77777
Of course it is doable, install first OS install lilo, then install second OS and don't install lilo, just boot to first OS, and edit /etc/lilo.conf
to have an entry for the second OS; you'll need mount your second OS partitions though (at least /), and edit /etc/fstab accordingly. Need more help, just come back here and ask.
Regards, Neo.
i did it the other way around when i was running drake and slack...first i installed mandrake on hda2 (hda1 being windows), and i skipped the boot managers step. swap for that was hda3 i belive. and then i installed slack on hda4 and did not skip the lilo step. i gave it a seperate swap file from drake's but i dont think it is required.
 
  


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
how to install linux from hard disk? mukeshj Linux - General 4 07-11-2005 12:43 PM
How to Install Linux on a USB Hard Disk poda Linux - Laptop and Netbook 1 05-17-2005 01:48 AM
SATA Hard disk - Cannot install Linux Beavis Linux - Hardware 5 08-20-2004 04:35 AM
How do I install Linux on one hard disk and XP on other? andyri Linux - Newbie 1 07-28-2004 06:36 PM
I want to install linux from hard disk srinuallada Linux - Software 7 04-02-2002 11:00 PM


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