LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 07-21-2017, 01:45 AM   #1
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 645

Rep: Reputation: 7
SSD vs Hard Drive


Hi there,

I replaced my hard drive with SSD for faster load time and power saving, I did exactly the same I did with standard hard drive to the SSD in partitioning and installation, but I read that most Linux distro handles SSD and HD differently. As far as I know reducing the write cycle to the SSD will protect it from premature failure, the same way to protect USB thumb drive in portable boot etc., but how actually the OS handle the two media during installation and use, say for example on Debian ?
 
Old 07-21-2017, 02:15 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,792

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
you can easily search for related info on the net (for example):
https://www.pcmag.com/article2/0,2817,2404258,00.asp
https://askubuntu.com/questions/7897...osting-ssd-hdd
It is not the OS, but the kernel itself (which is more or less independent from the OS). And especially it depends on the mount options mainly.
 
Old 07-21-2017, 02:18 AM   #3
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,968
Blog Entries: 32

Rep: Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464
joboy,

As of Ubuntu 14.04, scheduled TRIM is enabled by default for Intel, Samsung, OCZ, Patriot and Sandisk SSDs, so there is no need to use discard.
NB For some Linux distros and other SSD manufacturers it may be necessary to manually run fstrim occasionally.

Here are three articles about using fstrim, which may be useful:

How to enable TRIM:
http://askubuntu.com/questions/18903/how-to-enable-trim

Optimise your Solid State Drive for Linux Mint 18.1, Ubuntu 16.04 and Debian:
https://sites.google.com/site/easylinuxtipsproject/ssd

Enable TRIM on SSD:
http://www.webupd8.org/2013/01/enabl...te-drives.html
 
Old 07-21-2017, 04:26 AM   #4
Mike_Walsh
Member
 
Registered: Jul 2017
Location: King's Lynn, UK
Distribution: Nowt but Puppies....
Posts: 660

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
Just to add to beachboy2's reply above:-

For those of you (like me) who are running IDE/PATA spec SSD's on really old hardware - (without SATA interfacing), the fstrim command often isn't supported by the older standard.

There isn't much you can do about optimization, but you can implement a form of 'rubbish collection' manually. When setting-up one of this type of SSD from scratch, leave around 8-12 % of the total capacity unformatted.

By doing so, this gives the drive controller room to manoeuvre; it has somewhere to place 'full' blocks as they're rotated out of service, deleted, then marked as 'ready for re-use' again by the system.

This can also be done to an 'in-use' drive; merely giving the drive a percentage of 'blank canvas' to play with will work wonders for its lifespan. It must be remembered, however, that all SSDs today have vastly extended life-spans compared to their older counterparts.

For IDE/PATA SSDs, I have no hesitation whatsoever in recommending Transcend drives. Fairly new to the domestic sector, they formerly supplied rugged, all-weather drives to industry for use 'on-site', often for mobile, 'go-anywhere' machinery.

The reliability is awesome.....and the build quality is a thing of beauty.


Mike.

Last edited by Mike_Walsh; 07-21-2017 at 04:34 AM.
 
Old 07-22-2017, 02:05 AM   #5
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 645

Original Poster
Rep: Reputation: 7
Thanks for the tips guys, I always think solid state drives are not as reliable as magnetic drive, electronics failure could lead to totally lost, where magnetic drives can always partial recover. I remember the SanDisk USB stick I bought years ago, it suddenly failed one day completely disappeared from the computer, but it came back after a while, it is very unreliable, so even these days I still limit myself to 32G, SSD maybe another story.
 
Old 07-22-2017, 03:09 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,792

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
a magnetic drive also may die without the possibility to recover anything - or just that will cost too much.
Actually I had a disk where the software on the device went into deadlock and could not be recovered. This was a bug, which was later fixed, but that did not help on my disk.
 
Old 07-22-2017, 07:28 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Quote:
Originally Posted by Mike_Walsh View Post
I have no hesitation whatsoever in recommending Transcend drives. Fairly new to the domestic sector,
Transcend is one of the largest manufacturers of memory in the world. It has had offices in the USA since 1990. I can't remember long enough ago when Transcend didn't market to consumers.

But they might not have marketed SSDs to the US consumer market until recently.
 
Old 07-22-2017, 07:31 PM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Quote:
Originally Posted by joboy View Post
I always think solid state drives are not as reliable as magnetic drive
If you just let the drive sit idle, without powering it on, the HDD type will retain data much longer than the SSD type.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Difference between hard drive and SSD joboy Linux - Hardware 2 06-17-2016 05:55 PM
[SOLVED] Shrink the hard drive to accommodate a SSD clone. ArtKautz Linux - Hardware 11 04-02-2016 01:18 PM
OS hard drive - SSD, mechanical or hybrid? cilbuper Linux - Hardware 17 09-02-2015 03:11 PM
[SOLVED] Hard drive or SSD that always verifies data written? Ulysses_ Linux - Hardware 4 02-17-2013 11:42 AM
SSD Hard Drive and MySQL Fredde87 Linux - Hardware 3 07-13-2009 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:38 PM.

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