LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-28-2015, 10:19 PM   #1
Harshit_24
Member
 
Registered: Jul 2014
Location: India
Distribution: CentOS
Posts: 75

Rep: Reputation: 5
install Linux over windows


Currently I have windows installed on my system which contains 4 drives where OS is installed on C: drive & other 3 drives i.e. D:, E: & F: contains the data.

I am thinking to only format the C: drive & install Linux on C: drive while keeping other drives with their data as it is. My hard disk is of 120 GB with every partition is of 30 GB. I would like to know what would be the structure of the Linux installation.

I would have separated / & /home partition into two partition if removing all the drives, but as I am keeping all the other drives, so is /home partition needed or do I create two more partitions in C: drive partition i.e. one for / & one for /home ?

What structure should I follow ?
 
Old 10-28-2015, 10:56 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
The usual minimum partitions are '/' and swap.
You can split '/' down further, but I wouldn't bother in this case.
NB: obviously I'm just talking about your 'C: drive' as MSWindows calls it.

Definitely backup anything you can think of on there.
You'll need to ask the installer to do a custom partitioning, to ensure it asks you which partitions to use.
Assuming your data 'drives' are NTFS structured, you'll have to make sure you install the ntfs-3g pkg so Linux can r/w to them.

HTH
 
1 members found this post helpful.
Old 10-28-2015, 11:38 PM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

You could make a 1 GB swap partition and than allocate the rest of the drive to the EXT4 journaling file system '/'.

That way Linux would take over the whole drive if that's still what you want.-

That's what I did with my Slackware box.

Code:
  Disk /dev/sda: 500.1 GB, 500107862016 bytes

 Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63     4000184     2000061   82  Linux swap
Partition 1 does not start on physical sector boundary.
/dev/sda2   *     4000185   976773167   486386491+  83  Linux
Partition 2 does not start on physical sector boundary.
bash-4.2#
 
1 members found this post helpful.
Old 10-29-2015, 12:39 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
@Ztcoracat,

you do know what is the penalty for having misaligned partitions?
 
Old 10-29-2015, 08:31 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,541

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
When you refer to "drives" in your post, you are actually referring to partitions on one drive. You might take a look at the brief article in the link below for some info on drive/partition naming conventions in Linux for future reference. You refer to C, D and other drives which you won't see in Linux but rather sda, sdb, etc. Ignore the part about hda, hdb as newer systems no longer use that.

http://www.cyberciti.biz/faq/linux-p...rive-mappings/

Last edited by yancek; 10-29-2015 at 08:33 AM.
 
1 members found this post helpful.
Old 10-29-2015, 10:04 AM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Looking at initial post there is one single hard drive with four partitions. If all these partitions are primary then there is not much choice. Linux can use only one partition sda1, no /boot, no /home, no swap. Swap file is an option.
 
1 members found this post helpful.
Old 10-29-2015, 10:24 AM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
As Emerson mentioned - you have one drive with four partitions. As the partition table only allows four primary partitions, the question is whether your four partitions are all primary, or if you have an extended partition and one or more of them are logical.

It would be a good idea to boot up a live linux ISO and post the output of "fdisk -l" and/or a screenshot of gparted so we can get a better picture of your current partition layout.
 
1 members found this post helpful.
Old 10-29-2015, 01:51 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Emerson View Post
@Ztcoracat,

you do know what is the penalty for having misaligned partitions?
Enlighten me.
 
Old 10-29-2015, 01:54 PM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Why misaligned partitions are the problem for hard disk drives.
 
1 members found this post helpful.
Old 10-29-2015, 04:28 PM   #10
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I would however suggest you use a separate /boot partition, mounting it only as needed so that you limit access to your kernel. If you use a system with UEFI, make sure your EF00 partition is never automounted or it could be problematic if you ever have the system crash or lock up.
 
1 members found this post helpful.
  


Reply



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
Buy a per-install Linux computer or post-install on a Windows machine jtso8 Linux - Laptop and Netbook 5 10-05-2011 07:12 PM
Windows with Linux..can't boot windows or install imari1027 Mandriva 4 11-13-2004 01:00 PM
Linux/Windows dual boot with Windows re-install dhowell1129 Linux - Newbie 6 04-25-2004 04:21 AM
On Windows and LInux dual boot - why install Windows first? yanar99 Linux - Newbie 13 12-18-2003 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:28 AM.

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
Open Source Consulting | Domain Registration