LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-24-2003, 10:58 PM   #1
impulse
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Rep: Reputation: 0
Dual booting XP and mandrake once again...


Just require a little help in relation to dual booting and partitioning with xp and mandrake 9.1...

Mandrake in currently booting up without any problems and I removed the windows partition having no need for it until now. I have a copy of windows xp on a cd but it doesn't seem to be bootable (it may have been burnt ). That is, it won't boot from my CD-ROM (whereas the mandrake installation CD1 does).

Anyway, the content of the linux partition has been backed up and I want to remove all the partitions (with mandrake and the swap partition) and make a clean install of windows xp and linux again. I had previously used partition magic which I still have a copy of. How am I to do this? (please don't spare any detail).

Cheers
 
Old 06-24-2003, 11:22 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Cue Ominous Music...

I'd prefer to use fdisk to create the partitions. You do not need PM, and since you have a working copy of linux, you will probably be better off with that. HOWEVER, and that's a big fat however, Mandrake comes with Diskdrake that makes partiitioning EVEN EASIER. I'd suggest to use that above and before all, and if all else fails, move onto fdisk, and finally, as a last stab... PM.

Here we go with fdisk instructions (since diskdrake is self explanatory):
As root:
fdisk /dev/hdx
where /dev/hdx is your device that will be partitioned (if you have 1 harddrive, it's /dev/hda)
Now:
d
Do this to each partition, if you don't know what partiitions you have you can:
fdisk -l /dev/hda
OR, once we have:
fdisk /dev/hda
You can:
p
to show you the info.
Delete all your partitions, we will start from scratch...

Now, it's up to you, but I suggest making only 2 or 3 partitions MAX for windoze, 1 as NTFS for your base system, relatively small unless you are going to be using a lot of apps (I have mine at 4GB and that's plenty) the other as fat32 for ease of writing from linux, this one for sharing data between OS's and I'd make it fairly large.

How to make partitions?
With the "n" command in fdisk. Use sizes you are familiar with, I prefer the MB:
n
1024M
Should create you about a Gig partition, use that as your example.
After you've created the partitions you desire (which for me would be the 2 for windoze, and 2 for linux, 1 for / and 1 for swap, these will all be defined later) head back to the main menu in fdisk:
Code:
Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help):
Make sure you are absolutely sure you are happy with what you've done (if not simply 'q' and nothing will change) then:
w
And fdisk will save the changes and quit.

fdisk -l /dev/hda
Make note of where everything is (/dev/hda1 /dev/hda2 and so on, BTW, max of 4 primary paritiitions, but if you are going to have more than 4 partitiions, max of 3 primary since one will be extended for the logicals) and then reboot.

During your XP install, which should be first, choose the correct partition, it's fairly straight forward assuming you have a specific filesize you are looking for, XP will find all your partitions, display their sizes, and then you can choose the one you've created and format it NTFS. Choose the other you've created and format it Fat32, leave the other 2 alone for now.

Finish up your install, then move onto Mandrake.

During the Mandrake install, be sure to set it up to recognize your NTFS/FAt32 partitions, but do not format them. This will be done with diskdrake during the install. You will also specify the 2 other partitions as your / and swap partition (choose advanced mode assuming you know a wee bit of what you are doing at this point). Be sure to choose the filesystem you want on them (I prefer ext3, and swap) and then also choose to format them, BUT NOT THE NTFS/FAT32..

Continue the install, everything should go honky dory, install LILO into the MBR when you get there, finish up the install, reboot and have fun.

Sizes suggestions (assuming a 40GB HD since you didn't specify, use percentages of this if you have different sizes):
Your windoze "C" drive: 4-6GB
windoze "D" drive: 20GB
/ on linux : remaining minus swap (~14-16GB)
swap on linux: Assuming 256 or more RAM, 256-512MB swap

Cool
 
Old 06-24-2003, 11:33 PM   #3
impulse
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks mate, its clear now what I have to do.

However, just out of interest, shouldn't the windows xp installation disc boot when I put it in the CD-ROM drive (having set the BIOS so it boots from that drive first)?

It just seems odd to me that I can begin the installation process of linux from its installtion discs but not with this windows xp disc (unless I am booting from another windows machine).
 
Old 06-25-2003, 12:11 AM   #4
ghalen
LQ Newbie
 
Registered: Jun 2003
Posts: 9

Rep: Reputation: 0
AEFDISK

You can download a program called AEFDISK. It can be put onto a floppy just like FDISK. The big difference is that AEFDISK can delete any type of partition, unlike FDISK.
 
Old 06-25-2003, 04:48 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Is that right? I've never had problems deleting anything with linux's fdisk?

As for the boot CD problem, it's beyond me. Too many variables, especially if it's an "acquired" version Also, it might just be because it's not meant to be booted, sometimes there are versions meant to run from a boot floppy first, then grab info from the CDrom.

Cool
 
Old 06-25-2003, 08:49 AM   #6
Sno
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Rep: Reputation: 0
its a burned disk right? I had the same exact problem. Go to bootdisk.com and get the win xp boot disk that will fix your problem
 
Old 06-26-2003, 07:41 AM   #7
impulse
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Ah ok, I've cleaned the partitions away using fdisk, no problems there, thanks guys. I'll have a look at bootdisk.com and see whether I can fix this disc problem. Its beyond me why xp won't boot from the disc whereas mandrake will when they are both acquired copies.
 
Old 06-26-2003, 07:55 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Mandrake is made to "be acquired" and the booting is therefore easier to emulate. However since XP's manufacterer is of course looking to stop copy of their product any way they can, well then emulation is not so easy.

Cool
 
Old 06-26-2003, 09:15 AM   #9
impulse
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Ack, I can access the contents on the cd-rom drive now, but for some reason it still won't install. I made the 4 primary partitions as you specified, and now when attempting to install windows via the boot disk I get the error:

"Could not find a place for the swap file."

(occurs when running winnt.exe on the xp disc)

I tried creating a primary DOS partition and proceeding, and copying the contents of the i386 folder to it. Not surprisingly that didn't work.
 
Old 06-26-2003, 08:18 PM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
The swap file in windoze is just that, a swap file. There shouldn't be any problems since it's sticks it right on C: ... I'm not sure how the boot disk works, so that might be an issue with it?

Good Luck

Cool
 
  


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
dual booting fedora core 2 and mandrake: can't boot mandrake any more mgyamada Fedora 1 10-04-2004 08:39 AM
Help!! Dual booting xp and Mandrake 8.2 Rexof345 Linux - Newbie 3 05-14-2004 09:11 PM
Mandrake 8.2, dual booting MAGOVIA Linux - Newbie 1 03-28-2004 03:28 AM
Dual booting XP and Mandrake 8.2 Sfpiano Linux - Newbie 22 12-14-2002 12:34 AM
Dual booting using XP and mandrake 8.1 (need help!!) rdiggidy Linux - Software 4 04-07-2002 06:33 PM


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