Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Advice on partitioning
New Posts  All Forums:Forum Nav:

Advice on partitioning

post #1 of 28
Thread Starter 
How would it be best to partition my system if I have a 180GB SSD and 1TB HDD.

I want to use my HDD for less intensive/complicated games, games that now are considered old, and as location for movies, music and pictures and other files.
For the ssd I plan on installing major games and other applications like browser and video player.
Is there a special way to partition these two drives to give more performance or is basic partitioning guidelines sufficient? For instance I thought to install SSD on OS while I place swap space (8GB sys mem) and home directory on the HDD.

No hibernation for me.
Edited by vodkapl - 9/25/16 at 4:52am
post #2 of 28
Your idea of putting swap and Home on the HDD sounds good to me.
Boinc Desktop
(14 items)
 
CrunchAholic
(8 items)
 
 
CPUMotherboardGraphicsRAM
AMD Ryzen 7 1700X ASRock X370 Taichi Gigabyte GTX 970 G1 HyperX Predator 
Hard DriveCoolingCoolingCooling
Hyper Predator M.2 Watercool Heatkiller IV PRO AM4 CPU Block EKWB GTX 970 GPU Block EKWB Coolstream XE 240 Radiator 
CoolingCoolingOSPower
EKWB Coolstream PE 360 Radiator Watercool Heatkiller 150mm Tube Res Gentoo Linux EVGA 850 G2 
CaseMouse
Thermaltake View 31 Tempered Glass RGB Edition Roccat Kone EMP 
CPUCPUMotherboardGraphics
Intel Xeon E5-2670 Intel Xeon E5-2670 Asrock Rack EP2C602 XFX RX 480 RS 
RAMHard DriveOSPower
64 GBs Samsung M939B1K70CHD-CH9 PC3-10600R Samsung HD322HJ Arch Linux Corsair AX1200 
  hide details  
Reply
Boinc Desktop
(14 items)
 
CrunchAholic
(8 items)
 
 
CPUMotherboardGraphicsRAM
AMD Ryzen 7 1700X ASRock X370 Taichi Gigabyte GTX 970 G1 HyperX Predator 
Hard DriveCoolingCoolingCooling
Hyper Predator M.2 Watercool Heatkiller IV PRO AM4 CPU Block EKWB GTX 970 GPU Block EKWB Coolstream XE 240 Radiator 
CoolingCoolingOSPower
EKWB Coolstream PE 360 Radiator Watercool Heatkiller 150mm Tube Res Gentoo Linux EVGA 850 G2 
CaseMouse
Thermaltake View 31 Tempered Glass RGB Edition Roccat Kone EMP 
CPUCPUMotherboardGraphics
Intel Xeon E5-2670 Intel Xeon E5-2670 Asrock Rack EP2C602 XFX RX 480 RS 
RAMHard DriveOSPower
64 GBs Samsung M939B1K70CHD-CH9 PC3-10600R Samsung HD322HJ Arch Linux Corsair AX1200 
  hide details  
Reply
post #3 of 28
Depends on how much RAM you have, if you don't have a lot put the swap on the faster ssd, if you have sufficient, dump everything besides the OS on the HDD.
X
(15 items)
 
  
CPUMotherboardGraphicsRAM
Ryzen 1700 @ 3.9Ghz Gigabyte Aorus X-370 R9 Fury Strix. Corsair Vengence LPX 2x8Gb 
Hard DriveCoolingCoolingCooling
Crucial MX100 XSPC Raystorm XSPC EX 360 US Solar TDC 
OSMonitorKeyboardPower
Dual Boot (Win 7, Kali Linux) LG Ultrawide 29UM67 Gskill KM780 XFX XTR 650 
CaseMouse
Cooler Master HAF XB Evo Razer Naga Hex 
  hide details  
Reply
X
(15 items)
 
  
CPUMotherboardGraphicsRAM
Ryzen 1700 @ 3.9Ghz Gigabyte Aorus X-370 R9 Fury Strix. Corsair Vengence LPX 2x8Gb 
Hard DriveCoolingCoolingCooling
Crucial MX100 XSPC Raystorm XSPC EX 360 US Solar TDC 
OSMonitorKeyboardPower
Dual Boot (Win 7, Kali Linux) LG Ultrawide 29UM67 Gskill KM780 XFX XTR 650 
CaseMouse
Cooler Master HAF XB Evo Razer Naga Hex 
  hide details  
Reply
post #4 of 28
Thread Starter 
Thank you kindly for responses smile.gif
One last question, rephrased, can I partition in a way that will yield more performance will it be same performance regardless if I make several partitions and tie different directories to each?
post #5 of 28
I'd just put things on the SSD and mount the HDD as it's own and put stuff you want on it. Also I don't run swap. With your last question it ready depends, with what you have there is not much you can do.
Edited by cones - 9/25/16 at 9:35am
My System
(21 items)
 
Server/HTPC
(11 items)
 
 
CPUMotherboardGraphicsRAM
AMD 8320 Asus m5a99fx pro EVGA 660ti  Gskill 8GB F3-1600C9-8GXM x2 
RAMHard DriveHard DriveHard Drive
4GB x2 OCZ Agility 3 Sasmsung 840 EVO Western Digital Caviar Blue 
Hard DriveOptical DriveOptical DriveCooling
Seagate 500gb Asus DRW-24B1ST Asus BC-12B1ST cool master hyper 212 evo 
OSOSMonitorMonitor
Windows 10 Pro x64 Arch  Asus 23" VH238 Asus 23" VH238H 
PowerCase
Corsair CX600M Fractal Design Define R5  
CPUMotherboardRAMHard Drive
i3 6100 Asus Z170M-Plus something 16gb DDR4 Western Digital 500GB 
Hard DriveHard DriveHard DriveOS
Samsung 2TB Western Digital Red 3TB HGST Deskter 4TB Unraid 6.x 
OSPowerCase
Ubuntu Server - VM Corsair CX430  Cooler Master HAF 912 
  hide details  
Reply
My System
(21 items)
 
Server/HTPC
(11 items)
 
 
CPUMotherboardGraphicsRAM
AMD 8320 Asus m5a99fx pro EVGA 660ti  Gskill 8GB F3-1600C9-8GXM x2 
RAMHard DriveHard DriveHard Drive
4GB x2 OCZ Agility 3 Sasmsung 840 EVO Western Digital Caviar Blue 
Hard DriveOptical DriveOptical DriveCooling
Seagate 500gb Asus DRW-24B1ST Asus BC-12B1ST cool master hyper 212 evo 
OSOSMonitorMonitor
Windows 10 Pro x64 Arch  Asus 23" VH238 Asus 23" VH238H 
PowerCase
Corsair CX600M Fractal Design Define R5  
CPUMotherboardRAMHard Drive
i3 6100 Asus Z170M-Plus something 16gb DDR4 Western Digital 500GB 
Hard DriveHard DriveHard DriveOS
Samsung 2TB Western Digital Red 3TB HGST Deskter 4TB Unraid 6.x 
OSPowerCase
Ubuntu Server - VM Corsair CX430  Cooler Master HAF 912 
  hide details  
Reply
post #6 of 28
In terms of performance, I haven't seen any real difference when partitioning differently. Then again I'm just a regular user, if you are too, I wouldn't worry about it. OS on the SSD and any other partitions you want to have that speed advantage such as /home on there as well. All the other slow stuff like the older games, dump it on the HDD.
X
(15 items)
 
  
CPUMotherboardGraphicsRAM
Ryzen 1700 @ 3.9Ghz Gigabyte Aorus X-370 R9 Fury Strix. Corsair Vengence LPX 2x8Gb 
Hard DriveCoolingCoolingCooling
Crucial MX100 XSPC Raystorm XSPC EX 360 US Solar TDC 
OSMonitorKeyboardPower
Dual Boot (Win 7, Kali Linux) LG Ultrawide 29UM67 Gskill KM780 XFX XTR 650 
CaseMouse
Cooler Master HAF XB Evo Razer Naga Hex 
  hide details  
Reply
X
(15 items)
 
  
CPUMotherboardGraphicsRAM
Ryzen 1700 @ 3.9Ghz Gigabyte Aorus X-370 R9 Fury Strix. Corsair Vengence LPX 2x8Gb 
Hard DriveCoolingCoolingCooling
Crucial MX100 XSPC Raystorm XSPC EX 360 US Solar TDC 
OSMonitorKeyboardPower
Dual Boot (Win 7, Kali Linux) LG Ultrawide 29UM67 Gskill KM780 XFX XTR 650 
CaseMouse
Cooler Master HAF XB Evo Razer Naga Hex 
  hide details  
Reply
post #7 of 28
/ and /home on the ssd

all other stuff like /media /var/log /tmp and any other directory you can think off should be on the HDD.
post #8 of 28
With 8GB ram and no hibernation don't fret about swap too much. I have 8GB and set "vm.swappiness=10" (minimal priority) and with less than 0.5GB swap rarely exceed 2% usage. I've tried some really complicated numerous partition setups and have concluded that most don't need that. A simple 2 partition setup, one for "swap" and one for "/" will serve most SOHO desktop users just fine. Most modern backup software can do incremental backups so separating "/home" isn't a huge deal anymore.

One can add on to it's effective size by linking another partition or even the whole drive. Example - I have a link to a huge partition like this ===>>
Code:
sudo ln -s  /dev/sdb/(huge_partition_number)  /home/foo/Downloads

There are still some minor advantages to multiple partitions but the keyword is "minor".
NewMain
(16 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5 - 3550 Asrock Z77 Extreme4 Evga GTX 1070Ti  4x2GB Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
Seagate SATA 2TB x 2  Plextor PX-891SAW CM-Hyper N520 Slackware 14.2 MultiLib, Slackware 14.0 32 bit,... 
MonitorKeyboardPowerCase
32" Vizio HDTV + DLP Logitech Wireless Corsair HX-850 Antec Sonata I 
MouseMouse PadAudioOther
Razer DeathAdder 2013 dual ESI Juli@ CoolGear ExtSata Enclosure w/ Optical and 3TB S... 
  hide details  
Reply
NewMain
(16 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5 - 3550 Asrock Z77 Extreme4 Evga GTX 1070Ti  4x2GB Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
Seagate SATA 2TB x 2  Plextor PX-891SAW CM-Hyper N520 Slackware 14.2 MultiLib, Slackware 14.0 32 bit,... 
MonitorKeyboardPowerCase
32" Vizio HDTV + DLP Logitech Wireless Corsair HX-850 Antec Sonata I 
MouseMouse PadAudioOther
Razer DeathAdder 2013 dual ESI Juli@ CoolGear ExtSata Enclosure w/ Optical and 3TB S... 
  hide details  
Reply
post #9 of 28
Quote:
Originally Posted by enorbet2 View Post

Code:
sudo ln -s  /dev/sdb/(huge_partition_number)  /home/foo/Downloads

Why not mount the drive in /etc/fstab then link the Downloads folder from within the drives mounted location?

  1. Edit /etc/fstab and have as an example /dev/sdb2 be mounted at /media/storage_drive say
  2. sudo ln /media/storage_drive/Downloads /home/foo/Downloads


Quote:
Originally Posted by enorbet2 View Post


There are still some minor advantages to multiple partitions but the keyword is "minor".

Security is not minor, reference the following for an idea of what you can do and what the benefits are

Example: /tmp shouldn't be under /, things have no business being executed from within /tmp so by having it be a seperate partition you can use the nosuid,noexec mount options. Drives should not be able to be mounted to /tmp either, so you can also use the nodev mount option for that.
post #10 of 28
Quote:
Originally Posted by 100557662 View Post

Why not mount the drive in /etc/fstab then link the Downloads folder from within the drives mounted location?

Of course that works , too and actually I prefer mounting drives in fstab so I know exactly where they go, but OP should note that mine was just an example, but it works.

Quote:
Originally Posted by 100557662 View Post

Security is not minor, reference the following for an idea of what you can do and what the benefits are

Example: /tmp shouldn't be under /, things have no business being executed from within /tmp so by having it be a seperate partition you can use the nosuid,noexec mount options. Drives should not be able to be mounted to /tmp either, so you can also use the nodev mount option for that.

Nobody, certainly not me, has said or even implied that security is minor. This thread is about a home system and they, being less of a "rich target" don't generally require the extreme protection of servers and heavily networked commercial systems The measures you list are for protection once someone has already broken in. Most home systems can be quite safe with just a decent understanding of iptables, running services, and running some rootkit discovery/removal tool like rkhunter. run once a week or so.

If you're really concerned about extreme security what exactly do you plan to do about invisible backdoors at the BIOS level as being developed by Intel and explained here ?

This IMHO poses a far greater threat than mounting /tmp on / as it sidesteps any software measures.
NewMain
(16 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5 - 3550 Asrock Z77 Extreme4 Evga GTX 1070Ti  4x2GB Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
Seagate SATA 2TB x 2  Plextor PX-891SAW CM-Hyper N520 Slackware 14.2 MultiLib, Slackware 14.0 32 bit,... 
MonitorKeyboardPowerCase
32" Vizio HDTV + DLP Logitech Wireless Corsair HX-850 Antec Sonata I 
MouseMouse PadAudioOther
Razer DeathAdder 2013 dual ESI Juli@ CoolGear ExtSata Enclosure w/ Optical and 3TB S... 
  hide details  
Reply
NewMain
(16 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5 - 3550 Asrock Z77 Extreme4 Evga GTX 1070Ti  4x2GB Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
Seagate SATA 2TB x 2  Plextor PX-891SAW CM-Hyper N520 Slackware 14.2 MultiLib, Slackware 14.0 32 bit,... 
MonitorKeyboardPowerCase
32" Vizio HDTV + DLP Logitech Wireless Corsair HX-850 Antec Sonata I 
MouseMouse PadAudioOther
Razer DeathAdder 2013 dual ESI Juli@ CoolGear ExtSata Enclosure w/ Optical and 3TB S... 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Advice on partitioning