LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 01-04-2003, 02:39 PM   #1
dumdog
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Rep: Reputation: 0
Thumbs up mandrake install w/multiboot (98/xp)


ok, i`ve never tried linux but am hoping to start the learning process. so..i downloaded mandrake 9.0 and have made the 3 cd`s. my 80 gig hd is already set-up with 4 partitions. #1 has win 98 on it. #2 has win xp on it. #3 is blank..#4 has misc. files. my intent is to install mandrake on partition #3 and have the ability to boot into my o/s of choice...does this sound do-able? currently am duel-booting with 98 and xp. really thought i should ask before i start the install. i have searched the forum and found some reference to this, but..i would feel a little more comfortable if i had a response to my specific question. thx in advance...dog

Last edited by dumdog; 01-04-2003 at 02:41 PM.
 
Old 01-04-2003, 02:45 PM   #2
Mety
LQ Newbie
 
Registered: Jan 2003
Distribution: Mandrake 9.2
Posts: 8

Rep: Reputation: 0
Very.

Lilo (I think that's what it's called) will give you the choice of which parition to use automatically.

For instance, I have XP in NT. It allows me to select XP when I first start my machine thru that.

Hope That Helps.
 
Old 01-04-2003, 10:32 PM   #3
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Great idea researching this first.

Big picture, is you can set up a system that boots the three operating systems--I just finished doing it myself. Mine is Win 98SE, Win2k and Mandrake 9.0 I do have some concerns about how you have outlined your plan, though.

Partitions 3 & 4. Swap them. For Linux to install, you will need to have some logical partitions and they belong at the end. Move everything from Partition 4 to Partition 3 and then delete Partition 4. Linux installs best when it encounters unused space, although Mandrake is pretty good at accommodating what is there.

Laying out partitions: There are tons of theories that you can spend time learning about later. For now, let's keep this simple and just let Mandrake set up what it wants.

First, validate your ISOs. You've already made the CDs, but let's still verify them. When you dowloaded the files, there were two other ones with them: Readme and md5sums.90. Go to this site and download fsum.zip:

www.slavasoft.com/fsum/

Unzip it and put fsum.exe in the same direcotry that has your downloaded files. Type this command:

fsum -c md5sums.90

fsum will compare the files against what the md5sums.90 file says they should be. All three should pass. If one doesn't, download it again, check it and burn a new CD.

So, now you have three good CDs. Set your computer to boot from CD-ROM and boot from the first disk. This should bring up the Mandrake install program--it will look very different from its Windows counterpart.

When you come to the partitioning, it will take you to a screen that shows your current hard drive (it should show three primary partitions and some empty space at the end of the disk). Unlike Red Hats which offers you a plan right off the bat, Mandrake wants you to click your way through it. With your mouse, left click the empty space of the hard drive layout. This will bring up the add-partition window, which will offer to add a "/" partition and it should suggest a size.

Mandrake is not overly aggressive about taking up all of your hard drive, so its recommendation will be the minimum it needs. You can make this as large as you want, since you will only need a swap partition (about 500 MB) after this. I would suggest giving it at least 5 GB--more if you can spare it. (80GB hard drive, think about giving it 10-15 GB)

When you've finished with the add-paartition window, select OK. Next, add the swap partition--same as above. Mandrake will then step you through formatting the partitions. Make sure that only the partitions you added are formatted--do not format your Windows partitions (when I did this, Mandrake started with just the partitions that I'd added and did not select the Windows partitions).

Before you leave this part, look at what Mandrake is calling your very first partition--the one you have Win98 in. In Windows this is your C:\ drive. Note the name--you will need it later. For me, Mandrake called it win_c.

Your next hurdle will be configuring the boot loader. You have three options--the Windows boot loader or one of the two Linux ones (LILO and Grub). To make sure you don't have problems, I'm going to recommend you use the Windows ones. There is nothing wrong with the Linux ones--they are actually better. The problem is you are using an NT system--XP (along with Win2K) is an NT program. NT sometimes will check the MBR (Master Boot Record) to make sure a virus hasn't gotten into it. It expects to find its boot loader there. If it encounters Grub or LILO, it will refuse to start. Setting its boot loader up is a very easy two step process that I'll walk you through at the end of this.

For now, tell Mandrake to put its boot loader at the beginning of your first Linux partition. If you followed my instructions, that will be hda5. Linux numbers partitions this way: Primary partitions are 1-4 and logical ones are 5-15. Your first logical (where you put the "/" partition) should be 5. If you altered what I said above, you'll need to adjust this count.

That should get you to making a boot disk. You must do this. You will have to reboot Mandrake to do the first step in configuring the Windows boot loader and the only way to do this will be with a boot disk.

Hopefully, you are soon looking at Mandrake telling you that it is all installed and will exit its install program (shut down your computer). Let it do this and change the BIOS setup to now boot first from a floppy. Put the boot disk in and boot up Mandrake.

When you get to the log in screen, log in as root this time. Normally you do not want to do this, but you are only going to do one thing and you have to be root to do it.

When KDE has started you will notice several icons down on the left side of the menu bar. One looks like a monitor. If you move the mouse over it, it should describe it as a terminal. Click on this and it will open up something that looks like a DOS window in Windows. In Linux it is called a Shell or Terminal. You are going to create an image file with a Linux command. The basic command looks like this:

dd if=/dev/hda5 of=/bootsect.lnx bs=512 count=1

This looks complicated, but it isn't. dd is the command to make an image from the disk. if is for the input file (source), which is your hda5 partition. of is the output file. The rest just tells dd how much of the disk to grab.

If you were to type that command, it would create the file you need. Your setup, though allows us to save a few steps. Remember I told you earlier to note what Mnadrake called your C:\ drive? Probably, like mine, it called it win_c. That is what I will use for my example. If yours is something else, replace win_c with the correct name.

Most references for dual-booting with NT assume that your C:\ drive is in the NT format (NTFS), which Linux doesn't write to. So, they give you a process of writing it to a floppy and letting Windows copy it to C:\ drive. You don't have this problem. Win98 uses FAT32 at best, which Linux writes to just fine. So, we're going to modify the above command to write directly to your C:\ drive, which to Linux is /mnt/win_c. The command now looks like:

dd if=/dev/hda5 of=/mnt/win_c/bootsect.lnx bs=512 count=1

If this gives you problems (doesn't work too well or at all), use the first command and then move like this:

mv /bootsect.lnx /mnt/win_c

Anyway, reboot your computer (click on the 'K' in the lower left corner and select log out), removing the disk. Boot into Windows (either one will do) and start up Notepad. Open this file: C:\boot.ini

At the bottom of the file, add this line:

C:\bootsect.lnx="Mandrake 9.0 Linux"

Save and close the file. Reboot the computer and boot into Mandrake just to make sure all of the pieces are correct. Also, before you start, read this:

http://www.tldp.org/HOWTO/mini/Linux+NT-Loader.html

Report here if there was any problem. Good luck
 
Old 01-05-2003, 01:00 AM   #4
dumdog
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Original Poster
Rep: Reputation: 0
wow, great tutorial deadbug! i`ll print it for the install.now, if i delete partition 4( leaves me 1-3 ), wont the mandrake be hda4?? i DO appreciate the time you spent helping me, and also thx to mety as well dog

Last edited by dumdog; 01-05-2003 at 01:22 AM.
 
Old 01-05-2003, 09:09 AM   #5
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Another good question. No, it won't. Because Mandrake will need two partitions, it will not set up a fourth primary partitions. In order to have logical partitions, you have to give up a primary partition. The most common is what I've laid out for you--give up #4. Like I said, #4 can only be a primary partition to Linux. If there isn't a fourth primary partition, as on my system and would be on yours, Linux will skip the number. From a terminal window, you can type this to get a directory listing/disk usage:

df -h

df is the disk free command and the 'h' switch has been dubbed the human option. Normally df would list all of your partitions with their size in bytes. Very accurate, but useless. The 'h' switch tells it to round things to more manageable MB and GB sizes. Try both (with and without the switch) and it will become clear.

Anyway, that listing will show partitions 1-3 and 5-whatever. No 4. It could be called a quirk of Linux, but the only time you will see sequential numbers is if you have just four primary partitions.

Last edited by deadbug; 01-05-2003 at 06:58 PM.
 
Old 01-05-2003, 09:48 AM   #6
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
You need at least a swap and root partition.

Last edited by snocked; 01-05-2003 at 09:50 AM.
 
Old 01-06-2003, 12:24 PM   #7
dumdog
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Original Poster
Rep: Reputation: 0
good news..was able to chk my iso`s with fsum tool and they were all ok. so..i adjusted my partitions as you suggested and installed!! it all went ok but there were some minor(?) changes from your outline.i expect this happened because i chose the auto-install vs the expert mode. now i do have the linux boot loader installed so i have to chose linux or windows at boot-up( plus a few other options are listed too, like "fail safe, boot disk...").it works ok and i still have access to all 3 os`s.also i wasnt given the option of chosing my partition or swap file sizes...so i have no idea what they are..hehe. guess if i decide it was beneficial i could delete it all and re-install.noticed that in either windows system..the linux is partition is not recognized. anyways..i did print the tutorial you wrote for me deadbug...i intend to play with the linux for now and try to become more familiar with it. sound/video all worked great.at some point i may try to customize my boot-loader or if you have suggestions, of course i`m ALL EARS .....thanks again, dog
 
Old 01-06-2003, 12:43 PM   #8
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Fantastic!

My second post (where I explain df -h) will let you find out how big your partitions are.

Enjoy playing with it.
 
Old 01-06-2003, 04:51 PM   #9
yngwin
Member
 
Registered: Dec 2002
Location: China
Distribution: Arch
Posts: 359

Rep: Reputation: 33
There is no need to swap the partitions. You can make any primary partition into an extended one and have logical partitions inside it.

Also, why go to such lengths to use the nt-loader when lilo will do fine? In the end that's what dumdog ended up with, choosing the default install.

Windows cannot see the linux partitions because M$ thinks they make the only OS that matters. But linux happily works with FAT and can at least read NTFS. I believe there are some tools out there to read linux partitions from Windows, if you really want to. Have a search at Google!
 
Old 01-06-2003, 04:52 PM   #10
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Rep: Reputation: 31
Geez deadbug, where were you when I was setting up my multi-boot system?!?
Nicely said.
As snocked mentioned, you need at least two partitions for Linux: root (/) and swap. But don't worry: Mandrake (I believe) will take your unused space during installation, and turn it into an 'extended' partition, within which it will create more partitions for root, swap, and anything else you may need.
 
  


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 multiboot SuSe 9.1, XP & Mandrake 10.1 donk Linux - Distributions 2 10-31-2004 10:35 AM
multiboot with Mandrake & win Steel Shepherd SUSE / openSUSE 2 10-17-2004 03:24 AM
Mandrake LILO - Multiboot mailmarshall Linux - Newbie 3 02-17-2004 02:08 AM
Mandrake 9.1 multiboot nightmare mailmarshall Linux - Newbie 12 08-04-2003 05:21 AM
multiboot install smtoughill Linux - General 3 10-28-2002 08:16 AM


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