LinuxQuestions.org
Help answer threads with 0 replies.
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 01-28-2017, 10:02 PM   #1
harrytwo
LQ Newbie
 
Registered: Sep 2016
Posts: 3
Blog Entries: 1

Rep: Reputation: Disabled
disk partition


I saw on internet I should create 20gb for root 972 GB/home 8gb/swap approx(1tb drive) I did this during install mint 18 my question. is this correct when I go to computer on desktop the /root is filling up but the /home part is empty does data have to be moved manualy
 
Old 01-28-2017, 10:49 PM   #2
agillator
Member
 
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419

Rep: Reputation: Disabled
First, partition recommendations from the internet are questionable. For yours, in my opinion your home directory is far too large unless you have something special in your usage. You have to decide what sizes you want. Look at a number of recommendations and at WHY they recommend what they do, then make up your own mind.

As to your specific question, I suspect one of two things. Either you did not actually mount the partitions where you think you did, or more likely the other partitions are simply not large enough and your home partition is not having as much put it as you think. I would change the partition sizes and see what happens. If you really don't have a good idea of what your usage will be, take one of two approaches. Either use one partition (/) and see what goes where or use multiple partitions of the same size and see what goes where. With a 1tb drive, assuming you are starting from scratch and don't have some special space needs, you could make a root partition of 250gb or even 500 gb, much larger than will be necessary, then after you begin to see what gets used, create new partitions in the unused space for home, usr or whatever.
 
Old 01-29-2017, 02:43 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,615
Blog Entries: 19

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
A lot of people recommend a huge home partition because they assume people will be storing their music or video collections there. You are the only person who actually knows what data you want to store in $HOME. Therefore it's up to you how big you should make it.

How much space you need on / depends on how much and what software you want to install. Some software creates big internal databases, which use a lot of space. I've never needed more that 20 GB for a source-based distro and 10 GB for a binary one, but then I'm a minimalist.

With a 1 TB disk, you've got plenty of leeway. Why not divide it 50:50?
 
Old 01-29-2017, 03:13 AM   #4
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
Quote:
Originally Posted by harrytwo View Post
I saw on internet I should create 20gb for root 972 GB/home 8gb/swap approx(1tb drive) I did this during install mint 18 my question. is this correct when I go to computer on desktop the /root is filling up but the /home part is empty does data have to be moved manualy
Hi,

As said above, you are the most appropriate person to decide how much space you want where.

Concerning the problem you are facing, let's do a tour of the Linux filesystem standard. / is at the base of your filesystem and on my system its content is
Code:
bin/  boot/  dev/  etc/  home/  lib/  lib64/  lost+found/  media/  mnt/  opt/  proc/  root/  run/  sbin/  srv/  sys/  tmp/  usr/  var/
Now, you can have one single big partition holding all these things (your home directory is in /home/${USER}). If you use the df command, you'll see what is mounted at / and any other mount points. How the system knows where to mount what: /etc/fstab. If you check out the fstab file, you'll see what is mounted when the system boots.

For many of the directories above, you can have them reside on a different partition and have them mounted separately at boot, and we do this by specifying what drive is mounted where in /etc/fstab. The following is an example fstab:
Code:
/dev/sda14       swap             swap        defaults         0   0
/dev/sda10       /                ext4        defaults         1   1
/dev/sda11       /home            ext4        defaults,bind    0   2
/dev/sda12       /opt             ext4        defaults,bind    0   2         
/dev/cdrom       /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
In your case, it might be that the partition corresponding to /home is not mounted at boot and you have been placing your data on the / partition itself.

Last edited by aragorn2101; 01-29-2017 at 03:15 AM.
 
Old 01-31-2017, 04:59 AM   #5
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
As other post's have suggested, there is no right and wrong answer to this question! It comes down to your own requirements;

like for example;

What are you using Linux for/to do?
Do you plan on hibernating your PC at any point?
How much software (apart from what's installed by default) do you intend on installing?
Do you have any big files to house (eg. Video's, music, etc)?

Once you have answered these questions, you should have a reasonable idea of how big your HDD partition's should be. Good luck!
 
Old 01-31-2017, 11:20 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by harrytwo View Post
I saw on internet I should create 20gb for root 972 GB/home 8gb/swap approx(1tb drive) I did this during install mint 18 my question. is this correct when I go to computer on desktop the /root is filling up but the /home part is empty does data have to be moved manualy
what are you installing?
how are you installing?
do you have a usable install atm?

fwiw, most "partitioning schemes" are outdated and pretty pointless nowadays.

BUT, i'd divide 1TB in partitions for sure.

maybe: 4 primary partitions.

3 are about equal size and fill most of the drive.
1 is for swap and 1:1 with physical RAM.
then install linux to the first partition (so that would be 300+GB)

later, some additional setup to use the other 2 as data storage (large files like media)
 
Old 01-31-2017, 11:41 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
Everyone is different, only you know what you need. Blindly following any advice from the internet will likely result in pain.

You have now seen that 20 GB is not enough for / and 972 GB for /home is too much for the way YOU use YOUR computer, so next time choose a ratio more appropriate for your usage. In the mean time, you can either re-size your partitions (dangerous, not always possible), or the far easier solution is to move some of your larger directories in / onto your /home partition instead and symlink them back in place.

Personally, I stopped splitting /home onto its own partition long ago. It's useful if you want/need to reinstall the OS without affecting your settings/data, but I only do that maybe once every 2-3 years anyway and I always keep full backups. Since with modern SSDs and USB 3.x it only takes a few minutes to back up and restore a few hundred GB, I find it far more convenient for me to just use one large partition for everything, and on the very rare occasion that I need to reinstall the OS, I just back up everything I need, wipe, reinstall, then load it back on. The additional ~10 minutes this adds onto the reinstall process once every 2-3 years is insignificant compared to the convenience of never having to worry about the size of my individual partitions, and having to periodically shuffle data around to meet arbitrary quotas that I placed on myself long before I had any idea what I was going to end up using the computer for.
 
Old 01-31-2017, 01:03 PM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
While I can't fault the reasoning of suicidaleggroll I would suggest that when a person is learning to use Linux they may want to install and reinstall a fair bit and having a consistent home can be useful. That said, with a 1TB drive I would give 50GB to / (the root partition) as it ought not to impinge too much on data storage and, for the moment at least, it seems "big enough"*. That way the /home partition could be wiped and made small and a separate data partition created as things progress.


*My / hasn't hit above 34GB yet...
 
Old 02-01-2017, 04:15 AM   #9
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
LVM (just before you click the "Install Now" button)
 
  


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
[SOLVED] How To Resize an Existing Hard Disk Partition Using the Boot Disk TracyTiger Slackware 6 10-13-2014 11:48 AM
USB flash disk partition disappeared as well as partition table openmind Linux - Newbie 3 02-17-2011 05:20 PM
Advice on whether to clone/re-partition/re-install OR wipe disk/re-partition/use VM linus72 Linux - Newbie 6 04-16-2009 02:41 AM
Copy files from partition to partition too slow, SATA hard disk.What should I do£¿ Ryanlee SUSE / openSUSE 20 10-31-2005 07:30 AM
Reclaim disk partition from hard disk installation EStester Linux - Enterprise 2 03-09-2005 11:46 AM

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

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