Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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.
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#
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.