Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-21-2020, 11:49 AM
|
#1
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,042
Rep: 
|
SSD/HDD System - Tips and Pitfalls
Hi Folks,
Hope everyone is staying safe.
Now I have some time on my hands I thought I would upgrade my twin XEON machine 16Gb memory machine with an SSD drive.
No problem with that, I'll just do a fresh install of Mint 19.3 and I'll use the existing 2TB HDD for data. In fact I'll wipe it as well, as it's all backed up to an external drive.
So should I use LVM or partitions?
Any tips/pitfalls would be much appreciated, like where should swap go, and where should system folders go like var, tmp, sys, bin, sbin and so on.
Do any system folders benefit from being on either ssd or hdd?
Cheers
|
|
|
03-22-2020, 10:10 AM
|
#2
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,243
|
I'd use the SSD for the ESP and root partitions, the old drive for home and swap. Swap can get overused and it's always a good idea to set swappiness to 10, but you don't want the SSD used for swap. You can also save unnecessary wear on the SSD by adding noatime,nodiratime to the root partition parameters in /etc/fstab. Set trim to run using
Code:
# systemctl enable fstrim.timer
# systemctl start fstrim.timer
As for LVM, I always think that's best left to servers.
|
|
2 members found this post helpful.
|
03-23-2020, 05:05 AM
|
#3
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
With 16GB RAM and swappiness set to 10, the wear on the SSD can't be so bad, no?
However, if the system evtl. does start swapping heavily you'll definitely feel the difference between HDD and SSD.
|
|
1 members found this post helpful.
|
03-25-2020, 05:49 AM
|
#4
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,042
Original Poster
Rep: 
|
Thanks folks, not as many responses as I though, but appreciated those that did
|
|
|
03-25-2020, 02:42 PM
|
#5
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
Ok.
LVM uses partitions. You'd consider LVM for it's features beyond typical partitions. I'd consider other advanced tools like ZFS and Btrfs while you are looking.
Swap may or may not be needed. Your use dictates that. If I only used swap partition to hibernate then I'd put it on mechanical drive. If I needed fast swap then ssd. If I wanted more advanced then I'd go with swap file(s) and even raid or set swappiness on various ones.
The things you may wish to have on mechanical are things that maybe are compressed, things that don't get used often like backups, things that may need more security in MTBF, and almost all of the nuts and bolts of the OS. You want programs on the ssd usually.
|
|
|
03-26-2020, 04:21 AM
|
#6
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,042
Original Poster
Rep: 
|
I use a value of 5 for swappiness
|
|
|
All times are GMT -5. The time now is 07:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|