LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   help creating partitions for a duel boot system (https://www.linuxquestions.org/questions/slackware-14/help-creating-partitions-for-a-duel-boot-system-487823/)

HouseC 09-28-2006 06:31 PM

help creating partitions for a duel boot system
 
This is going to be my first atempt at a slackware install so what I want to do is have a duel boot system with windowsXP ( as much as I want to just have a slack ware system, I have to share my computer with someone who does not want to learn slackware)and I don’t know how to setup my partitions for both windows xp and slackware. I have a 80GB hard drive and I would like to have windows xp take up half of the hard drive and the rest to slackware. I am concerned that I will screw something up because I have never had to create any partitions before.

pljvaldez 09-28-2006 06:44 PM

Typically, I use the GParted Live CD to create/resize partitions.

If you don't already have XP installed, I would do the following
Code:

/dev/hda1  /boot  100MB
/dev/hda2  NTFS  20GB
/dev/hda3  Fat32  20GB <-- for shared files between linux and windows
/dev/hda4  swap  512MB
/dev/hda5  ext3  rest of drive  <-- for linux

I make a separate boot partition so that if I ever delete linux, I can still boot windows using the linux bootloader (I use grub). Note that you can only have 4 primary partitions, so really the swap and ext3 partition will be on a logical partition.

If windows is installed already and you don't want to reload it, boot into safe mode, disable virtual memory and defrag the drive. Then GParted can just resize it. Then you can put boot as the third drive and keep your windows drives together.

HouseC 09-28-2006 08:02 PM

Quote:

Originally Posted by pljvaldez
Typically, I use the GParted Live CD to create/resize partitions.

If you don't already have XP installed, I would do the following
Code:

/dev/hda1  /boot  100MB
/dev/hda2  NTFS  20GB
/dev/hda3  Fat32  20GB <-- for shared files between linux and windows
/dev/hda4  swap  512MB
/dev/hda5  ext3  rest of drive  <-- for linux

I make a separate boot partition so that if I ever delete linux, I can still boot windows using the linux bootloader (I use grub). Note that you can only have 4 primary partitions, so really the swap and ext3 partition will be on a logical partition.

If windows is installed already and you don't want to reload it, boot into safe mode, disable virtual memory and defrag the drive. Then GParted can just resize it. Then you can put boot as the third drive and keep your windows drives together.



Ok now which partition is windows installed into and which slackware, also will I have any security problems with slackware because windows is installed on the same hard drive?

pljvaldez 09-28-2006 08:11 PM

Windows goes on the NTFS partition (in my example /dev/hda2). Slackware's /boot partition would go on /dev/hda1, and the / partition would go on /dev/hda5. The installer should find the swap partition and use it.

You shouldn't have any security issues with Windows being installed on the same drive. However, if you store a virus infected file, say a piece of shareware on the fat32 partition, you could email that file to someone and they could be infected. But in general, windows security vulnerabilities don't affect linux since Windows isn't running at the same time as linux.

HouseC 09-28-2006 08:27 PM

what partitions should I create when I install windows and which ones should I create when I intall slackware? I have also read somewhere that swap should be the size of the amount of ram you have is that true

Geist3 09-28-2006 09:33 PM

Clarification: The last primary partition,/dev/hda4, would be consumed in making the logical partitions. So swap would actually be /dev/hda5 and the rest of the drive would be /dev/hda6.

Your scheme will show up as:
/dev/hda1 /boot 100MB
/dev/hda2 NTFS 20GB
/dev/hda3 Fat32 20GB <-- for shared files between linux and windows
/dev/hda5 swap 512MB
/dev/hda6 ext3 rest of drive <-- for linux

pljvaldez 09-29-2006 11:12 AM

Quote:

Originally Posted by HouseC
what partitions should I create when I install windows and which ones should I create when I intall slackware? I have also read somewhere that swap should be the size of the amount of ram you have is that true

I recommend creating them all ahead of time using GParted. Then just point the XP installer to /dev/hda2 (I forget what the second drive is called in the windows installer -- it's been a long time since I installed windows). Similarly, you just have to point slack at the other partitions it needs. Each will probably reformat the partitions, but at least they're already sized...


All times are GMT -5. The time now is 07:56 PM.