LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-07-2014, 02:46 PM   #1
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Rep: Reputation: 28
Partitioning and Using SSD with Slackware


I'm assembling a new server/workstation. It has a 60G solid state drive (SSD) that I would like to efficiently partition and configure. Assuming that my subscription delivers 14.1 soon I'll install that; otherwise 14.0.

Other than /boot, what partitions should I place on this drive? Are there tweaks or tuning that I should do to optimize its use with Slackware?

Suggestions and recommendations appreciated as I've not before used a SSD.

Rich
 
Old 01-07-2014, 03:04 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I don't use a separate /boot, I think it is unnecessary. You should in any case put the /-partition on the SSD, using a filesystem that supports the TRIM-feature, for example ext4, jfs or btrfs. After the install you should add the discard option in /etc/fstab to those partitions residing on the SSD to activate TRIM on them.
I also prefer to have the swap partition on the SSD, but opinions on that differ between users.
You may want to put your data partition (many people use /home for that, I have a separate /data and keep /home in the root-filesystem) on a mechanical disk, since usually storage space is on such partitions more important than speed.

One important thing: Don't use cfdisk to partition the disk. For some unknown reason cfdisk still creates the first partition starting at sector 63, which would misalign the partition with the physical layout of the SSD. Better use plain fdisk.

Last edited by TobiSGD; 01-07-2014 at 03:08 PM.
 
1 members found this post helpful.
Old 01-07-2014, 09:55 PM   #3
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
You can put swap partitions on both SSD and HDD with different priorities. That's what they're meant for.

With a 60 GB SSD I would not complicate things too much and stay with a single '/' using ext4. Performance-wise on a SSD the simplest filesystem with the least overhead is the fastest.

If you're building a new computer anyway, I would rather recommend a 240+ GB SSD, because it is definitely worth it. If you're on a budget, then cut back the (currently expensive) SDRAM. While on a HDD-powered system more DRAM buffer cache means a way faster system, with a SSD you won't notice that much difference.
 
1 members found this post helpful.
Old 01-07-2014, 09:59 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I'd use the /(root) for the SSD since the /(root) partition is rarely changed, and /boot might do well on it also. /usr, /root(admin), /home, /var, /tmp, and /swap should be on the HDD due to how much they'll be in use.

I'd assign JFS for the SSD and EXT4 for the HDD.
 
Old 01-07-2014, 10:13 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Wearing SSDs out massively with having things like /var on it is a thing from the past with modern SSDs and moving that is nothing that should be considered solely for that reason anymore. What would be the point of fast storage if you don't use it for the things that are the bottleneck?

Last edited by TobiSGD; 01-07-2014 at 10:20 PM.
 
Old 01-07-2014, 10:14 PM   #6
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by ReaperX7 View Post
I'd use the /(root) for the SSD since the /(root) partition is rarely changed, and /boot might do well on it also. /usr, /root(admin), /home, /var, /tmp, and /swap should be on the HDD due to how much they'll be in use.
Actually to get the most performance benefit out of a SSD you want to have the most used files on it - and of course swap.

Yes, you will wear the SSD, but that's the point of having one. Otherwise you could just save the money and leave it on the shelf in the store...
 
Old 01-08-2014, 02:54 AM   #7
Tachtory
Member
 
Registered: Dec 2011
Distribution: Mint, Slackware
Posts: 43

Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
One important thing: Don't use cfdisk to partition the disk. For some unknown reason cfdisk still creates the first partition starting at sector 63, which would misalign the partition with the physical layout of the SSD. Better use plain fdisk.
:|

Code:
Partition Table for /dev/sda

               First       Last
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag
-- ------- ----------- ----------- ------ ----------- -------------------- ----
 1 Primary           0     7807589     63     7807590 Linux swap (82)      None
 2 Primary     7807590    31246424*     0    23438835*Linux (83)           Boot
 3 Primary    31246425*   54685259      0    23438835*Linux (83)           None
 4 Primary    54685260   125045423*     0    70360164*Linux (83)           None
What are the implications, exactly?

Also, I have had problems in other distros with having /boot in its own partition, so I didn't attempt it with Slackware
 
Old 01-08-2014, 03:02 AM   #8
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
All your partitions are mis-aligned.
Quote:
Originally Posted by Tachtory View Post
What are the implications, exactly?
Reduced performance and additional flash memory wear due to write amplification.
 
Old 01-08-2014, 11:13 AM   #9
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 272
Blog Entries: 2

Rep: Reputation: 85
Some info about SSD's here https://wiki.archlinux.org/index.php/Solid_State_Drives
 
1 members found this post helpful.
Old 01-08-2014, 04:21 PM   #10
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
IF this is newer system and you intend to use UEFI firmware, you will of course need to create your (GPT) partitions using gdisk of cgdisk and set first partition as EFI type EF00. This is recommended to be about 200MB which will hold several kernels.
John
 
Old 01-09-2014, 02:14 PM   #11
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
Thanks, everyone. I need to learn about TRIM and consider all the good information you've provided.

The hardware is a bit more than a year old; there's a 750G hard drive in addition to the 60G SSD (which was pricey at the time). Since I'm the only user of the system absolute speed is not a concern; the statistical and spatial models I run do so primarily in memory.

For the past decade or so I've set 10 partitions so access is quicker and fsck runs more quickly. That's a personal preference and I realize that we all have different preferences for organizing hard drives and our data.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSD Partitioning OpenSuse 13.1 cxiii SUSE / openSUSE 6 12-11-2013 05:47 PM
SSD partitioning for fedora 19 distro justin thyme Linux - Hardware 5 11-18-2013 07:31 AM
[SOLVED] SSD + HDD: an OPTIMAL partitioning scheme xri Linux - Hardware 6 04-25-2012 10:19 AM
SSD partitioning aloisius-a Linux - Hardware 4 02-18-2011 01:34 AM
SSD File System Partitioning jaycee4 Linux - Newbie 7 09-18-2009 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration