Skip to content

SSD + HDD disk partitioning

I have a 256GB SSD and 1TB HDD - what is the best way to partition it? I don't know if it's possible but I'd like to have some steam games on an ssd and others on hdd.

Also, I've seen people mounting hdd on /data but I'm not sure how it works. Like if I wanna store my music in ~/music I need to link it somehow to /data?

10 points16 comments
Open on Reddit
About this post
Posted
Archived
Score
10 · 100% up
Kind
Text
ID
erenwi

Author

5
posts
2
comments
0
media
View profile

19 comments

It is fully possible to make multiple libraries within Steam - the default one with the rest of the client is in ~/.local/share/Steam/steam (and games themselves are in steamapps in there), and more can be added in settings. Make sure you as a user can read/write to the folder you want to create your new library in.

9 points

You could mount your HDD to /home.

3 points

I wouldn't do this personally, lots of stuff is stored in home that I would prefer to be on the SSD.

My suggestion would be mount the HDD elsewhere, /media for example, or wherever you want. Then you can create a second steam library on the HDD for games that don't need to be on the SSD. From there you can symlink other subdirectories on the HDD to your home directory if you want.

Edit: to expand on this, I prefer not to partition the drives beyond / and /boot for home desktop use. It just becomes a pain in the ass if you run low on space and need to change things up, and really offers no benefits that I've seen.

11 points

I have only 128 GB SSD and 1TB HDD in my laptop and have a dual boot with Windows. So I have windows, root and swap on my SSD (and an EFI and boot partition ofcourse) and /home (100 GB) and a data partition on HDD. I can use the datapartition from both windows and linux, while Windows can't read the contents of home etc. That's why I need a separate data partition.

So in this case messing with the partitions was necessary :)

3 points

ok seems like that's just what I want. Thank you.

Btw, I'll need to make a /media directory or whatever and then change ownership to my user so that I can use it, right?

1 points

On my system with a similar setup, I've got /boot on the HDD, and a swap partition, then the rest of the drive with one last partition for files as required. Then my root is on the SSD.

For the ~/Music issue, some DE will create ~/Music automatically. Just rmdir it, then create a symbolic link pointing ~/Music to /data/music (or wherever your music ends up). I forget the syntax, something like ln -s /data/music ~/Music

1 points

I've got /boot on the HDD, and a swap partition

I'd argue that is not optimal, especially swap. Boot partition is usually small, so there is no reason to put it anywhere but SSD - you are not really saving any space.

But swap benefits tremendously from fast random IO - this is SSD's sweet spot. SSDs are the best for swap files that read and write random memory pages to it.

TL;DR: Make boot, swap and root on SSD. Everything else is your choice.

3 points

I wanted to separate my root partition from my boot so I can install other distros without relying on having my SSD installed.

And regarding swap, I didn't want it tearing through my SSD write cycles. My current reasoning is I now have 16GB RAM so I don't care where my swap is, it's only there for peace of mind, I doubt I'll use it.

2 points
unknown author

Deleted before we saved it.

1 points

I have the same setup and I usually use the SSD as my home drive while using the HDD as a storage drive that I don't typically read/write from unless adding new content.

1 points

Someone mentioned BTRFS, and I'm gonna throw out another option: LVM. You can set it up so that the HDD is the main storage, and split it into whatever logical volumes you like. Then add the SSD as a cache drive, and it'll do it's best to hold onto hot files so that anything you use frequently gets cached. Instead of only having whatever you happen to have out on the SSD. This will likely degrade the SSD faster, however. Constant adjustment to the cache info, instead of periodic adjustments to system programs if you were to mount it on / for instance. Backups and ease of reinstall are another point of concern, and I'm not super sure how to do all that with LVM. It can be done, but it's added complexity you may not want to deal with.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.