Here's why and how it relates to your Arch Linux setup:
512 GB SSD: This is an excellent "sweet spot" for many users.
For your Arch Linux use case (OS + desktop apps + some user files, no large media): A 512 GB SSD would be more than ample. Your Arch installation, with a full desktop environment and typical applications, might only consume 30-50 GB max. That leaves over 450 GB for your user files, downloads, documents, small projects, browser caches, package caches, and plenty of breathing room for years.
Why it's common: It offers significantly more space than 256 GB, is much faster than traditional hard drives, and is priced very competitively.
1 TB SSD: This is increasingly popular due to falling prices and growing software sizes (especially games).
For your Arch Linux use case: It provides excessive space for your stated needs, which means you'll almost certainly never have to worry about disk space for the OS or your regular files. It offers a lot of future-proofing, allowing you to install games (even if you don't collect "media," games can be huge), run virtual machines, or store larger project files if your needs change.
Summary for your situation:
512 GB SSD: Perfectly adequate and likely the most cost-effective choice for your described Arch Linux usage. You'll have plenty of space.
1 TB SSD: Offers more peace of mind and future flexibility for a relatively small increase in price, but it's not strictly "needed" based on your current requirements.
Most people prioritize SSDs for the main operating system drive due to their vastly superior speed compared to traditional HDDs. Whether it's 512 GB or 1 TB often comes down to budget and how much "just in case" space they want.
User
if I'm partitioning a drive, and can choose any partition size I want for the OS, leaving the rest for data on a different partition on the same drive, how does 320 GB sound for the OS partition, leaving the rest for data and possibly a swap partition? (Or should I forget a swap partition and just use a swap file if I ever chose to enable hibernation, as this leaves more room for data?)
Assistant
That's a very generous and safe amount of space for your OS partition!
Let's break it down:
320 GB for the OS Partition (/)
Pros:
Absolute overkill in a good way: As discussed, your actual Arch installation with a full DE and typical applications will likely use 20-50 GB. Adding your "user files" (documents, small projects, downloads, config files) within your /home directory (which typically resides on the OS partition unless you create a separate /home partition) might push it to 50-100 GB over time. 320 GB gives you immense headroom.
Never worry about space: You won't have to think about / filling up due to package caches (/var/cache/pacman), logs (/var/log), AUR build directories, temporary files, or even if you decide to temporarily download a large file to your home directory.
Simpler partitioning: By having a large / partition that includes /home, you don't need a separate /home partition, simplifying your FSTAB and management. The "rest for data" then truly becomes for large media, games, or other non-OS/non-user-profile specific collections.
Cons:
Potentially "wasted" space for some: If you strictly want to maximize the "data" partition's size and you know you'll never use close to 320 GB for your OS and user files combined, then assigning, say, 100-150 GB for / would still be perfectly adequate and give you more space on your "data" partition. However, this is a minor con. On a 512 GB or 1 TB drive, dedicating 320 GB to the OS is fine.
Conclusion on 320 GB: It's more than enough and provides a very comfortable buffer. It's a perfectly valid choice if you're happy with the remaining space for your other "data" partition.
Swap Partition vs. Swap File
This is a great question and a common point of discussion.
Swap File (Generally Recommended for Modern Systems):
Flexibility: You can create, resize, or remove a swap file on the fly without repartitioning.
No dedicated partition: Saves a partition slot and allows you to use that space for your main filesystem until you need it for swap.
Performance: For typical desktop use, the performance difference between a swap file and a swap partition is negligible on modern SSDs.
User
what if it is a large drive, like a 2TB drive?
Assistant
You're moving into the realm of very generous disk space, which is great because it means you'll have a lot of flexibility!
On a 2TB drive, 320 GB for your OS partition (/, assuming it also includes /home) is still more than enough for your described use case (Arch OS + desktop apps + some user files, no large media). It leaves a colossal amount of space (around 1.6 TB, minus EFI and swap if applicable) for your "data" partition.
The choice on a 2TB drive really comes down to how you envision using that massive "data" partition and whether you're willing to dedicate a slightly larger chunk to your main OS/user files for maximum future-proofing and simplicity.
Here are a few ways to think about it for a 2TB drive:
Option 1: Stick with 320 GB for / (including /home)
OS/User Files: 320 GB for / (contains Arch, desktop apps, user files in /home).
Data Partition: The remaining ~1.6 TB for other data.
Pros:
Clear Separation: Very clearly separates your core OS/personal files from other large collections.
Still Massive OS Space: 320 GB is still vastly more than you'd ever need for the OS and typical personal files, giving you huge buffer for package caches, logs, AUR builds, etc.
Dedicated Large Data: The 1.6 TB partition is perfect if you might eventually store large non-media things like:
Extensive game libraries (even if you don't consider them "media")
Large project backups
Virtual machine images
Large development environments/containers
Dual-booting another OS that will use this partition for its own data.
Cons:
Potentially "Underutilized" OS Partition: If you never intend to put any of the "other large collections" listed above on this specific drive, then having 1.6 TB sitting in a separate "data" partition might feel a bit wasteful compared to just having one massive primary partition.
Option 2: A Larger Unified / Partition (including /home), no separate "data" partition
If you are certain you will not be storing large collections of games, VMs, or other truly separate large datasets on this specific 2TB drive, and you simply want one huge, easy-to-manage space for everything related to your Arch system and its files:
User
Yes I do see a need for large data on the data partition. For example local LLMs, photos, videos, movies, etc.
Assistant
Okay, that clarifies things perfectly! Knowing you intend to store local LLMs, photos, videos, and movies on the drive makes the partitioning strategy much clearer.
Given these needs, your proposed plan is excellent and makes perfect sense for a 2TB drive:
Partitioning Strategy for 2TB Drive with Large Data Needs
EFI System Partition (ESP):
Size: 300 MB - 500 MB
Purpose: Essential for UEFI booting. Mounted at /boot/efi.
Root (/) Partition (includes /home for standard user files):
Size: Your proposed 320 GB is ideal.
Purpose: This partition will hold:
Your Arch Linux operating system files.
All your installed desktop applications (Firefox, LibreOffice, IDEs, etc.).
Your /home directory, which will contain your standard user files: documents, smaller projects, configuration files, browser caches, downloads (that aren't massive media collections), etc.
Why 320 GB is good: It provides an extremely generous buffer for all OS-related growth, package caches, logs, AUR builds, and your regular, non-media user files without ever feeling cramped. It simplifies things by having /home reside within /, so you only have two main user-visible partitions to manage.
Large Data Partition (e.g., /mnt/data or /data):
Size: The remaining ~1.6 TB of the drive.
Purpose: This is where your explicitly large collections will go:
Local LLMs: These can be many GBs each.
Photos: Large collections can easily run into hundreds of GBs.
Videos & Movies: These are typically the biggest space consumers, often measured in TBs.
Mount Point: You'll mount this partition to a logical location, like /mnt/data, /data, or even /home/youruser/BigFiles if you prefer it within your home directory structure, but mounted from a different partition.
Swap File vs. Swap Partition (Still applies)
My recommendation still stands:
User
When specifying 320 in gparted, is gparted expecing GiB or bytes?
Assistant
This is an excellent and common point of confusion!
When you specify "320 GB" in GParted (or most Linux-based partitioning tools and even file managers), it is almost certainly expecting and using GiB (gibibytes), even though it labels the unit as "GB".
Here's why and what it means:
Gigabytes (GB) vs. Gibibytes (GiB):
GB (Gigabyte): Uses base 10 (decimal). 1 GB = 1,000,000,000 bytes. This is what hard drive manufacturers use for marketing, and what your internet speed is measured in.
GiB (Gibibyte): Uses base 2 (binary). 1 GiB = 1,024 x 1,024 x 1,024 bytes = 1,073,741,824 bytes. This is what operating systems and most software tools (like GParted) use internally for memory and disk space, because computers fundamentally work in binary.
The Discrepancy:
Because 1 GiB is larger than 1 GB (1.07374 GB to be precise), a drive advertised as "500 GB" (decimal) will typically show up in your operating system as around "465 GiB" (often displayed as "465 GB" in file managers, implicitly meaning GiB).
What GParted Does:
When you enter "320 GB" into GParted's size field, it will interpret that as 320 GiB. This means the partition will actually be:
320 GiB * 1,073,741,824 bytes/GiB = 343,597,383,680 bytes
Which is approximately 343.6 GB in decimal terms.
In summary:
You don't need to convert anything. When you type 320 and select GB (or if GB is the default unit) in GParted, you will get a partition that is 320 GiB in size.
This works in your favor, as you'll end up with slightly more space than if it were strictly 320 decimal GB, which just adds to your comfortable buffer for the OS partition!
Hibernation: Yes, you can absolutely use a swap file for hibernation. You need to ensure the swap file is sized at least equal to your RAM (plus a little extra, like RAM + 2GB, to be safe if you have less than 8GB RAM). You also need to correctly configure your kernel parameters (usually in GRUB or your bootloader) to tell it where the swap file is (device and offset). It's a bit more involved than just pointing to a swap partition's UUID, but well-documented.
Swap Partition:
Simplicity for Hibernation: For hibernation, a swap partition is arguably simpler to set up initially, as you just point to its UUID or path.
Fixed Size: Once created, it's a fixed size. If you never use hibernation or need less swap, that space is "locked." If you need more, you can't easily expand it without repartitioning or adding another swap file/partition.
Performance (Theoretical): In extremely rare, high-swap scenarios, a dedicated partition might offer a tiny performance edge due to not being fragmented, but this is largely irrelevant for a desktop user on an SSD.
Recommendation:
Go with a swap file.
It offers far greater flexibility. If you later decide you don't need hibernation, or if you upgrade your RAM and want to adjust swap size, it's trivial to modify a swap file.
Proposed Partitioning Scheme (Example for a 512 GB SSD):
EFI System Partition (ESP): 300-500 MB (essential for UEFI boot)
Root (/): 320 GB (as you proposed, this will contain your OS, applications, and your /home directory)
Data Partition (/mnt/data or similar): The remaining space (approx. 512 GB - 320 GB - 0.5 GB = ~191.5 GB). This is where you'd store truly separate large collections of files that aren't part of your everyday user profile (e.g., large game libraries if you dual-boot Windows, project archives, or anything you want separated from your main user files).
No dedicated swap partition. You'd create a swap file within your / partition (or even on your data partition, though / is more common) if and when you decide you need swap or hibernation.
This setup is robust, flexible, and gives you ample space where you need it!
OS/User Files/All Data: Allocate the vast majority of the drive to your / partition (e.g., 1.9 TB).
Pros:
Ultimate Simplicity: One large partition for everything. No need to manage space between a "root" and a "data" partition.
Maximum Flexibility: All space is available to the OS, applications, and all your user files (documents, downloads, any personal projects, etc.). You won't hit a wall on /home if you decide to keep a few larger items there.
No "Wasted" Separate Partition: If you're not explicitly using that 1.6 TB for separate purposes, it's just one big pool.
Cons:
Reinstallation Impact: If you ever need to completely reinstall Arch and want to wipe the OS but preserve some personal files, it's harder if /home isn't a separate partition. (Though with good backups, this is less of a concern.)
Less "Tidy" for Some: Some people just prefer the conceptual separation of OS vs. data.
Option 3: Separate /, Separate /home, Separate /data
This is the most granular, but offers maximum flexibility and separation.
EFI System Partition (ESP): 300-500 MB
Root (/): 50 GB - 100 GB (Plenty for the OS files and core applications)
Home (/home): 300 GB - 500 GB (More than enough for your user files, documents, downloads, config, smaller projects, etc.)
Data Partition (/mnt/data or similar): The rest of the drive (~1.4 TB - 1.6 TB). This is where you put your truly large collections (games, VMs, movies, big archives).
Pros:
Max Separation: OS, user files, and large data are all distinct.
Easy OS Reinstallation: You can format / and reinstall Arch without touching /home or /data.
Optimized Sizing: Each partition is sized for its specific purpose.
Cons:
Most Complex: Requires managing three main partitions (plus EFI).
Space Management: You have to monitor space across three different mount points.
Swap Partition vs. Swap File (Still applies)
My recommendation remains the same, especially on a large SSD like 2TB: use a swap file.
Flexibility: Easily create, resize, or remove it without repartitioning.
No dedicated partition: You save a partition slot, and that space is available for your main filesystem until needed for swap.
Hibernation: Yes, you can configure hibernation to use a swap file. You'll need the swap file to be at least the size of your RAM (plus a little extra). Configuration involves adding kernel parameters (e.g., resume=/dev/sdX resume_offset=YYYY) to your bootloader.
Conclusion for 2TB Drive:
320 GB for / (including /home) is perfectly fine and extremely generous, leaving you 1.6 TB for a dedicated "data" partition. This is a very solid, common approach for large drives.
If you genuinely don't foresee any large "other data" on this drive and want ultimate simplicity, consider just one huge / partition (e.g., 1.9 TB) that encompasses everything.
If you want the most organized separation with easy OS reinstallation, go with a smaller /, a dedicated /home, and a dedicated /data.
No matter which option you choose, you'll have plenty of space, and the swap file is the way to go for modern systems.
use a swap file.
Flexibility: You can create it, resize it, or remove it easily without touching your partition layout.
Space Efficiency: The space only gets used as swap when you create the file, otherwise, it's available for your / partition.
Hibernation: Yes, you can absolutely configure your system to hibernate to a swap file. You'll need the swap file to be at least the size of your RAM (plus a small buffer, e.g., 1-2 GB, for safety). The setup involves configuring your bootloader (e.g., GRUB, systemd-boot) with the resume and resume_offset kernel parameters pointing to your swap file's location and offset within the filesystem. This is well-documented in the Arch Wiki.
Summary for your 2TB Drive:
ESP: 300-500 MB
Root (/) with /home: 320 GB (Extremely generous for OS and typical user files)
Data Partition (/mnt/data): ~1.6 TB (Dedicated for LLMs, photos, videos, movies)
Swap: Use a swap file for maximum flexibility and to avoid dedicating a fixed partition.
This is a very robust and well-thought-out plan that perfectly addresses your current and future storage needs on a 2TB drive!