Sponsored Content
Operating Systems Linux Fedora Partitioning harddrive for installing Linux alongside win 7. Post 303037541 by bakunin on Monday 5th of August 2019 08:07:42 AM
Old 08-05-2019
There are a few restrictions in place you may want to know about:

Using the DOS partitioning schema allows only for 4 (primary) partitions. It is possible to create extended partitions but i suggest you avoid that as long as possible as it makes the setup more complex.

Windows usually uses only one partition. If you have Windows already installed there is probably one partition on the disk. Get a disk managing tool able to move and resize partitions (see below why).

For newer versions of Windows you need an "EFI" partition as first partition, which is part of the "UEFI" boot process. Originally it was intended to keep Linux out of PCs because it needs signed files and accepted signatures were only available for Microsoft. Today, though, Linux is able to create, manage and boot from UEFI-BIOSes too, so this poses no problem any more. Notice that you probably find a very small 16-bit DOS FAT (no VFAT!) partition at the beginning of your hard drive. This is the EFI partition.

Probably immediately after that is the Windows partition, nowadays probably of type NTFS. Typically it occupies the whole disk. Make room in front of it (approx. 512MB to 1GB is sufficient), then reduce it to the size you want Windows to occupy. The small room in front of the Windows partition will become the /boot filesystem and it will be shared by all Linux installations you want to have. The reason is that Linux has a LVM (logical volume manager) but cannot boot from a volume managed by it right now. You need a separate boot volume and this is it. Since only a few small files need to reside there it can be very small. Making it bigger is possible but a waste of space. I always put it at the beginning of the disk because once it was necessary for the boot process to have its physical location before cylinder 1024. I am not sure if this restriction is still in place or not (probably not, but i have never bothered to test), but just to be sure i always put the /boot partition at the beginning of the disk and be done. If it doesn't help it sure doesn't interfere anyways.

Next you create one LVM partition for each Linux you want to host. Note that they all share the same /boot partition and (located there) the same GRUB configuration. In case you intend to use another boot loader: don't. GRUB (grand unified boot loader) is at the moment to most reliable, despite all its quirks.

About file systems: you create them in logical volumes inside the LVM partition. Notice that the "modern way" in Linux is to have very few file systems and lots of "virtual" filesystems which will be emulated in RAM - i.e. /tmp. This is not a good idea at all and i suggest you create the following (real!) filesystems by hand if your installation process doesn't create them itself:

Code:
/             root
/usr          installed software
/tmp          temporary files
/home         user files
/var          logs, work files, queues, ...
/opt          additional software

Having all these separate file systems makes the system more stable because a full / or /var actually threatens a system. It is therefore wise to isolate such possible culprits as much as possible. Linux systems usually emulate /tmp in RAM if there is no such FS. I think this is a waste of RAM and i rather waste some disk space then valuable main memory.

I hope this helps.

bakunin
These 2 Users Gave Thanks to bakunin For This Post:
 

8 More Discussions You Might Find Interesting

1. IP Networking

linux and win nt working together

I was wondering if anybody knew how to make linux and win nt and a novell server integrated there will be no workstations we are trying to get the servers together now we are currently working on Novel and NT and then we want to integrate the linux server into that. We know that we need Samba but... (3 Replies)
Discussion started by: linuxnewbie
3 Replies

2. UNIX for Dummies Questions & Answers

How do you defragment you harddrive in unix (Madrake Linux 9.0)?

Subject says it all... (3 Replies)
Discussion started by: pudad
3 Replies

3. UNIX for Dummies Questions & Answers

win and linux

Hello everyone I have two disks one with win2000 and the other I´m going to install mandrake10 . There is some way when Im finished to install mandrake when Im boot the machine I can make a selection or windows or linux. When I do this in a single disk I have no problem. but In this case... (2 Replies)
Discussion started by: lo-lp-kl
2 Replies

4. Linux

Mount a harddrive in linux.

Hey people i'm very new to linux. I just put a extra 200 gig maxtor HD in my computer. Linux can tell it's there...but it says it cant mount it. How do i mount it manually? thanks, John (2 Replies)
Discussion started by: RKJV
2 Replies

5. Solaris

installing second harddrive

This is my first post i am a solaris newbie. I just purchased my first sun system. It is a sunblade 1000. It had a fcal 36gb hdd in it already so i purchased a secondary 36gb fcal harddrive to increase my harddrive space however, how do i get it to detect the second harddrive? I have tried boot -r... (2 Replies)
Discussion started by: crzywut
2 Replies

6. UNIX for Dummies Questions & Answers

How to copy MBR from old harddrive to new harddrive?

How do I copy the master boot record from one harddrive to another or how to install just the MBR? (7 Replies)
Discussion started by: shorty
7 Replies

7. IP Networking

snmp linux win

I use snmp protocol on linux, now I have to use snmp on win, i use pc linux. I have activated the service snmp on win but I can not question him on my linux pc, you have any suggestions? (1 Reply)
Discussion started by: fege
1 Replies

8. Programming

Trying to write a program to fill up my harddrive (Linux/C)

Hi guys, I'm trying to write a little program that will fill up my harddrive and will log the process during this. Now I've come up with this: #include <stdio.h> void main(void) { char cmd1; char cmd2; int i=1; sprintf(cmd2, "df -h"); while (i<=5) { system("dd... (3 Replies)
Discussion started by: Tiglet
3 Replies
All times are GMT -4. The time now is 08:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy