Partitioning with SSD, and HDD?
Looking to see what the best way to partition these two would be, looking to keep all of my media and games and personal files on HDD while keeping a fast bootup and runtimes with SSD
Edited 31 Jan 2015. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 6 · 100% up
- Kind
- Text
- ID
- 2ubib2
22 comments
How large is your SSD?
I’d put / and /home on SSD and huge amounts of data (games, movies, etc.) on the HDD because HDD space is still cheaper per gigabyte.
If it’s a small SSD put / there and keep /home on HDD.
120gb ssd
With 120 GB I’d use 20 GB for / and the rest for /home. To me 20 GB are enough for /. Currently I use 7.9 GB. 2 GB from that are used for a complete 32 bit chroot with nearly the whole KDE.
Deleted before we saved it.
I'm not sure why it's so common to have all of /home on a HDD. It seems to me that having application configuration files, caches and so on on the SSD would be very helpful, performance wise.
I have everything on the SSD by default, with e.g. ~/Music being a symlink to the data on a HDD. Other hard disks are mounted as usual, with symlinks if appropriate (e.g. you could symlink ~/Videos to a HDD folder).
So in short, I have / (including /usr, /var) on the SSD, along with /home, and store large media (especially music, pictures, video, some games) on HDDs.
I have my /home and /var ("write-often" stuff) on HDD, and the rest of / ("write-seldom, read-often" stuff) on SSD, to save writes on the SSD.
I still find that highly overrated.
Samsung guarantees the 850 EVO SSD up to 75 TB written. I have a 840, but that should give a reasonable hint, since both use TLC storage.
I've had mine since December 2012, so a bit over two years, and written 1.17 terabytes in that time. It feels like a safe bet to say it will die for some reason other than write/erase cycle exhaustion, since I could keep going for another 120 years at this rate.
FWIW I always put swap files, /var, temp folders (except when in RAM, as in Linux with /tmp) etc. on the SSD.
I suggest keeping all of your media and games and personal files on HDD, while keeping fast bootup and runtimes with SSD, not HDD. Hope this helps.
my bad that was a typo, meant fastbootup and runtimes on SSD
Well, I suppose you answered your own question then.
For something a bit more exotic, you could setup the SSD as a Bcache. Or at the very least a partition on the SSD as a bcache.
+1 this.
I have a SSD + HDD setup on my laptop as well. The SSD is partitioned into 500MiB for UEFI, 40GiB for
/and the rest of the space are used together with the HDD as a bcache device for/home. The result is super fast boot time, super fast random access on/homeas well if the data is in cache, and zero maintenance (no need to worry about manually moving/symlink-ing stuffs everywhere).The downside is only some wasted space and you will need to format your partition as a bcache device. (In-place conversion is possible with
blocksif you are using a shrinkable filesystem and there are free space before the partition.)I have a Samsung 840 Pro which i use for Linux (Crunchbang) and a second HDD (It's an old Seagate 2TB for all my files and other random stuff i collected over the time) Personally i partition the following way:
SSD: /boot, /, /usr
On the SSD itself i try to reduce the writes to a minimum. /boot, /, /usr are not changing that much. At least that is the case for the Debian stable base of Crunchbang, with Archlinux that is a little different since there are more frequent application updates. But still i think this is sane :P
HDD: /tmp, /var , /home, swap
I partition the 2TB mostly in half, so i have roughly 1TB for /home, /var, swap space and /tmp (/home is of course the largest). 1TB, which is left, i use for my personal data (mostly mounted as /mnt/data).
Is there much benefit to partitioning the SSD? Locality doesn't really matter and I imagine you're not using exotic file systems for every partition for performance.
I use different filesystems for my partitions, ext2 for /tmp and btrfs for my /home partition, the rest is mostly ext4 (sometimes ext3). Indeed it is not that important, but on the HDD (2TB) i tend to keep the most accessed partitions on the outer tracks for performance... but in general i dont think there is so much performance gain at all. The partition layout i use is what i've been using for years, it served its purpose always well ;) (In the end it is a matter of choice and taste)
One thing that comes to my mind is that a program could only feel the log partition and not the complete SSD. Also it is easier to keep your homefolder if you decide to switch to another distro.
Interesting thread.
I see no mention of LVM in all this, which I hope means you all are not just using vanilla partitions.
Clarify anyone?
Indeed. Run everything through LVM! If you later change your mind on which data should go where you can transparently rearrange it between physical drives without even thinking, as long as you don't fill them up completely that is.
If you have room I'd recommend having your games on the SSD as well, for bigger games a decrease in load times is nice
I have two partitions on my SSD (for / and /home) and two on my HDD's (for /mydata and swap space). My /mydata directory is exactly as you describe (media and personal files). Also, for my multi-boot system, /mydata and the swap partition are shared between all systems, while each system has its own / and /home.
I have a 60gb ssd and a 500gb hdd in my laptop i have 30gb for /boot, swap, and /. 30gb for caching the hdd. and the entire hdd is /home on DM-LUKS. the ssd is encrypted via it's built-in method using a drive password.