Comments on: How do you partition your drive? http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/ I will not fix your computer. Tue, 04 Aug 2020 22:34:33 +0000 hourly 1 https://wordpress.org/?v=4.7.26 By: Chris Wellons http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-11992 Mon, 13 Apr 2009 02:56:03 +0000 http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-11992

For Debian, I have always done it fairly simply:

/
swap
/home

Having /home separate is handy for reinstalling the OS in place, should I have the need.

For OpenBSD, I like break it down more:

/
swap
/usr
/var
/tmp
/home

This way I can better take advantage of some of the security features, which is desirable as OpenBSD is more likely to take on a server function.

Luke mentioned the fragmentation issue already, but there is another reason too. If something were to go wrong with the logs they wouldn’t fill my entire hard drive, just the /var partition. And /tmp can’t be flooded to fill the hard drive either.

Separating partitions allows more flexibility for different mounting policies. For example, / can be mounted read-only without causing any problems. If it contained /tmp, this wouldn’t be possible (it could still effectively be done with BSD file flags, though).

On one of my systems I have a 650GB external drive (compared to the 80GB internal one) mounted as /ex (“external”). It’s just one giant partition. If a user is in the ex group, it gets to access it. This is where I dump most of my large, long-term data, like the MP3 collection, movies, tv shows, ISOs, and various other videos and data. It also has a copy of the small amount of non-replacable stuff.

And to answer that last question, I use the system installation partition editor when making the install, and use GParted if I need to make adjustments later on.

Reply  |  Quote
]]>
By: Matt` http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4792 Fri, 15 Jun 2007 16:33:48 +0000 http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4792

I have a Ubuntu live CD kicking around so I use GParted from that (been meaning to install + use Ubuntu for a while but there’s been various things delaying, maybe preventing me

and the fact that I’m kinda lazy is just one of those things :wink:

Reply  |  Quote
]]>
By: vacri http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4789 Fri, 15 Jun 2007 07:30:11 +0000 http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4789

On windows I like to have three partitions for some inane reason. Smallish C: drive for Windows & ‘OS’ apps like word processors and tools, medium D: for programs (mostly games) and ‘risky’ software that might hose something, and a bulk data e: drive. That way I can screw up the programs drive and not affect the windows or bulk data, and my bulk data is never going to fill up my C: to the point of wiping out the swapfile. Screwing up D: will screw up games but not ‘productivity’ software which is kept on C:.

On linux, I am essentially a newbie, and a sysadmin friend advised for home systems, the ‘one big partition’ theory is enough. For a production system, perhaps something else, but for home use it seems to be fine. I just have to be careful when I’m using disk management tools :)

Interestingly, the system I used at home with Debian 3.1 wouldn’t install properly with XFS, so I had to make a 200MB ext3 /boot to get it booting properly. I wanted to reinstall anyway when Debian 4.0 became stable, and it didn’t have the same problem – it’s all XFS.

Reply  |  Quote
]]>
By: Luke http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4788 Fri, 15 Jun 2007 06:35:14 +0000 http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4788

[quote comment=”4786″]The real reason for having the Linux install span across multiple partitions was for the simple reason that hard drivers were, at one time, not large enough to host an entire system. Not that we have disks that are several hundred gigabytes, we really don’t need to anyway.[/quote]

Actually there are many benefits to this. For example, if you ever decide to reinstall the system, you don’t need to worry about loosing data if your /home is on separate partition.

Also consider fragmentation. If you put the directories that are bound to change a lot (ie. /home, /var, /tmp and etc) on separate partitions then the system partition that is mostly static doesn’t get fragmented which in turn improves performance.

Reply  |  Quote
]]>
By: timothyb89 http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4786 Fri, 15 Jun 2007 06:21:53 +0000 http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4786

I just have my entire Linux system(s) on one large partition.

The real reason for having the Linux install span across multiple partitions was for the simple reason that hard drivers were, at one time, not large enough to host an entire system. Not that we have disks that are several hundred gigabytes, we really don’t need to anyway.

In any case, having everything on a single partition makes management much easier. I would rather resize only one partition if you were running low on space than /home /var etc. separately.

For the best partitioner, I would quickly count out MS’s disk management console. Almost every operation invloves reformatting :P
I normally use the GParted live cd but there’s a bunch of other versions out there: http://gparted.sourceforge.net/

Reply  |  Quote
]]>
By: Nick http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4784 Thu, 14 Jun 2007 17:18:56 +0000 http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4784

I have always kept two physical drives, one for /home and one for /, so I could upgrade my system without touching user data. With my latest machine I split /home up a bit more:

Filesystem Size Used Avail Use% Mounted on
/dev/hda1 36G 3.2G 31G 10% /
tmpfs 251M 0 251M 0% /dev/shm
/dev/hdb3 48G 9.7G 36G 22% /home
/dev/hdb1 95G 2.3G 88G 3% /home/movies
/dev/hdb5 37G 23G 12G 67% /home/music
/dev/hdb2 48G 4.4G 41G 10% /home/pictures

Seems to be working well so far. No Windows partition to worry about, either :-)

Reply  |  Quote
]]>
By: Luke http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4782 Thu, 14 Jun 2007 15:43:10 +0000 http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4782

Follow up question: what do you usually use for partitioning your drive?

Do you use the built-in tools in your OS?

Do you use some 3rd party tools to do it? And if yes, which one is your favorite?

Reply  |  Quote
]]>
By: Matt` http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4781 Thu, 14 Jun 2007 14:51:43 +0000 http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4781

320GB hard drive, 50GB is for the Windows install + installed programs (started out as 10, then 20 but I kept hitting the limit so I gave it more than enough, its now about 50% full

The rest of the drive contains all my data, everything in Documents and Settings has moved to there, and yes I did the registry editing by hand, repeatedly. Damn thing kept screwing up in some other way and having to be reinstalled (OK, didn’t have to be reinstalled, but it was easier that way). So I can now find the relevant keys from memory, which I will now do to show off
Current User > Software > Microsoft > Windows > Current Version > Explorer > User Shell Folders

Reply  |  Quote
]]>
By: Wikke http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4780 Thu, 14 Jun 2007 13:20:10 +0000 http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4780

I have:
-a 40Gb drive for my Windows, which is way too small because my downloads folder is on this one too, I need to change this sometime…

-a 80Gb drive for ‘my documents’ (pictures and downloads I’d like to keep)

-plus all my other shit on separate drives (e.g. music and movies)

All the drives have 1 partition

Reply  |  Quote
]]>
By: Freduardo http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4779 Thu, 14 Jun 2007 11:51:35 +0000 http://www.terminally-incoherent.com/blog/2007/06/14/how-do-you-partition-your-drive/#comment-4779

My old laptop only has a 10 gb hard drive, so I just put a / and a swap on it.

On my desktop I have:
/dev/sda1 /boot 100 mb
/dev/sda2 / 5 gb
/dev/sda3 /home the rest of the 80 gb drive
/dev/sda5 swap 1 gb

/dev/sdb1 /mnt/data 120 gb

On virtual machines, I don’t really bother with complicated partitioning, as they are mostly just for testing, so a / and a swap is sufficient there as well.

Reply  |  Quote
]]>