Skip to content

Partitioning advice

Hi all, I've bought a laptop due to arrive next week. I've done a good bit of research into what distro I want to run, and Arch is looking like "the one". The part I'm not sure about tho, is what way to partition my hard drives. What I'm getting:

240GB SSD 500GB HDD

My gut is telling me that /boot and / should go on the SSD, and /home, /var and swap should go on the HDD, but I am unsure of the sizes.

Any/all advice is greatly appreciated.

1 points18 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
54acct

Author

4
posts
10
comments
1
media
View profile

20 comments

Why not fit everything on the SSD? Then the HDD can be just storage.

9 points

Would it matter what the partition on the HDD would be called? Or could I just name it anything like /stuff

1 points

That would work, just don't forget to mount it when you make your fstab.

If I were doing it I would mount it in the home partition.

So during install under /mnt/home/data

4 points

Typically, you would want to put frequently used data on the SSD, and large, rarely used data on the HDD. In practice, it is almost always the case that around 1 % of the files use 95 % of the space, and in most cases these are media files like photos, or backup archives.

16 GB ist enough for the system, so I see no advantage for not putting / on the SSD. Also, your home folder is probably accessed often when programs are running, so I'd put /home on the SSD, too. I'd put /boot into a separate partition (the boot loader does not support all filesystems) .

And I think it is a good idea to put / into a brtfs system, because you can manage system updates with snapshots, if you are comfortable with that (and assuming you do not have especially high reliability requirements and actually make regular backups). Making a btrfs snapshot of / means that you have a copy of your whole system and can roll it back to this state if an update goes wrong. And this is much faster than a backup, so you can use this often.

There are two simple strategies I use for integrating HDDs:

a) I I am using larger data e.g. for programming projects, I mount that in /mnt .

b) If I want to archive media or files which are rarely used any more, I use /home/user/Archive or /home/user/Photos and so on.

In theory, you can put your browser cache into /home/user/tmp and mount das into a RAM disk, but I think this isn't really worth the effort.

So my summary suggestion would look like that:

SSD:

/boot         1 GB - ext3
/              32 GB - btrfs volume "root"
<swap>   16 GB 
/home    191 GB - ext3

HDD:

/home/Media - 300 GB - ext3
/mnt/backup - - 200 GB - ext3

Another layer could be encryption, but maybe this is complex enough for now. And this can of course made far simpler, if you like it simple :)

1 points

I really like your setup here. I like what you did with the '/home' directory. What would you consider ideal if you were also dual booting windows?

1 points

I think this really depends on your usage pattern and considerations like space, ease of recovery, and data confidentiality.

Generally, when I used dual booting, I tried to leave the Windows partition at its place, and added another NTFS partition for data exchange and backup. I removed the recovery partition for space reasons though this is probably less important today. I made backups of the windows partition using dd, which would have allowed to roll back any mess-up.

I've been using dual booting for three years or so, mostly for the odd word document and occasional demands in my workplace. After a while, I noticed that I use Windows very rarely, and moved that to a swappable hard disk for space reasons. I almost never used that. The last laptop I bought, an X220, hat a small HDD with Windows 7, I simply exchanged that with an SSD and when I needed Windows, I swapped the disks - that was once or twice, for tax stuff.

I think nowadays the easiest solution would be to simply use another, not necessarily expensive, small PC (NUC or whatever, you get refurbished office boxes running Win 7 for 120 € on amazon) which is used with remote desktop software (VNC or similar). That would be practical because of the long update times which pile up dramatically if you don't use the box in a while.

I can understand folks that still want to play the games they bought,. But for myself, I strictly avoid Windows now, I think the age to trust Windows with private data such as email is over. If I still needed to use such a box, it would treat it like a loved one which caught yersinia pestis.

1 points

This is all great stuff, thanks for that. Just one question, I've read that putting swap on your SSD can greatly reduce its lifespan, would you know if there's much truth behind that?

0 points

I've read that putting swap on your SSD can greatly reduce its lifespan,

In theory, yes. SSDs use memory cells which wear out after a number of write cycles, therefore the SSD firmware takes care that cells are refreshed in an even manner. In the early times of SSDs this meant that it was not advisable to put caches and swap partitions on a consumer SSD.

However, in the last years, the specified life expectancy has increased greatly, and the actual life time of consumer SSDs has been tested in rigorous long-term tests (see Toms Hardware and similar sites). It turned out that one can write several petabytes of data to a modern SSD without degrading it. That translates to a normal use time of decades.

Three more thing respective to SSDs:

  1. They have a distinct failure mode from HDDs. HDDs usually degrade before failing, that means they will show some read errors and often you can do an emergency backup before they fail. SSDs tend to fail suddenly, so have backups.

  2. SSDs are much safer to mechanical shock and vibration which is a great thing for a laptop you carry around. A running HDD does not typically survive being dropped from the chair to the floor.

  3. I am not sure if this is still explicitly required, but most file systems have a few options relevant to SSDs which (a) activate trimming of unused blocks and (b) switch off recorring updates of inode timestamps if a file is only read. For the ext3 file systems, this would be the "discard" and "noatime" options to the mount program.

2 points

It will largely depend on the filesystem you want to use. If you go for btrfs, don't bother partitionning the SSD, use the whole disc (there are some specific things to know about this though regarding the boot procedure). You can just create subvolumes in place of partitions.

On my PC here, I have my boot partition on a USB key (in FAT32), my SSD is a btrfs device, and my HDDs are ext4 single partitionned and mounted in /mnt/<nameyouwant>.

1 points

you go for btrfs, don't bother partitionning the SSD, use the whole disc

That would exclude a swap partition/file. Kind of a no go if you ever want to hibernate the laptop.

2 points

SSD:

  • everything

HDD:

  • data (with symlinks to your /home dirs)

That way you can reinstall or change distro or whatever you want to do without losing your data. If you make your HDD NTFS you can also dual-boot easily like this.

1 points

HDD NTFS

what's the advantage of making the HDD NTFS? Wouldn't Fat32 be better for access?

1 points

NTFS is standard for partitions on Windows. Fat32 is an option, but has it's limits (max file size 4GB, max partition size 8TB).

1 points
unknown author

Deleted before we saved it.

1 points

That's not how I would do it. I would put / and /home on the SSD, the swap partition on the HDD, and a user data partition on the HDD.

My Arch / is 32 GB, /home is 16 GB, swap is 8 GB, and my data partition is 30 GB.

1 points

Might as well check this out: https://wiki.archlinux.org/index.php/Partitioning#Partition_scheme

Your idea of home and var on the hdd is fine, using ext4. Pretty much just follow the examples in the Guide. My advice is to move forward to get your install done quickly.

Your first install will not be your last. You will learn a lot, and soon develop preferences for how you want to partition. There is a subjective and personal element to how one partitions, so get on with it and have fun!

Oh, in a few months, learn about LVM, which makes many aspects of disk and partition management much easier. At least it did for me.

1 points
unknown author

Deleted before we saved it.

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.