Peppermint | Linux OS Community Forum
 
It is currently Mon Dec 17, 2018 9:20 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: [SOLVED] Peppermint 4 on SSD
PostPosted: Sun Dec 29, 2013 1:59 pm 
Offline

Joined: Sun Dec 29, 2013 1:48 pm
Posts: 7
I replaced the SSD in my main desktop system, so I've got an old 40GB SSD that I'm going to put in my even older Dell laptop with an Intel Core Duo processor.

I've searched around and seen this topic from 2011:
viewtopic.php?f=9&t=3951

...but I was wondering if there are any updated suggestions?

For most Linux distros the main advice seems to be to turn on TRIM and to use an ext4 filesystem. Turning on TRIM seems to be straightforward, but how do I tell the installer to use ext4 for the file system? Does the installer detect that the drive is an SSD and do these things automatically?


Last edited by skpatel73 on Sat Jan 04, 2014 11:28 am, edited 1 time in total.

Top
 Profile  
 
 

 Post subject: Re: Peppermint 4 on SSD
PostPosted: Sun Dec 29, 2013 2:52 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
Peppermint uses Ext4 by default .. if you wanted to use something *other* than Ext4 you'd have to manually select the file system during installation.

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Peppermint 4 on SSD
PostPosted: Sun Dec 29, 2013 5:18 pm 
Offline

Joined: Sun Dec 29, 2013 1:48 pm
Posts: 7
Awesome, that's good to know. Is there a page somewhere with those kinds of nitty-gritty details laid out, as far as what the different defaults are?

So, I'm thinking all I need to do is enable TRIM, then. Or is that enabled automatically by the installer as well?


Top
 Profile  
 
 Post subject: Re: Peppermint 4 on SSD
PostPosted: Sun Dec 29, 2013 6:49 pm 
Offline
User avatar

Joined: Mon Aug 05, 2013 11:58 pm
Posts: 220
Location: Arizona, USA
skpatel73 wrote:
I was wondering if there are any updated suggestions?

I've been chronicling a fresh install of Peppermint Four Re-Spin; first on a HDD, then a SSD.

You might want to check out the thread starting here.

It discusses how I setup a SSD auto-Trim regimen on Peppermint OS. It's been working great.

This took place with no intervention on my part via anacron (which is included in the Peppermint 4 OS package)...

Code:
vindsl@Necksa ~ $ apt-cache policy anacron
anacron:
  Installed: 2.3-19ubuntu2
  Candidate: 2.3-19ubuntu2
  Version table:
*** 2.3-19ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status
vindsl@Necksa ~ $

Code:
vindsl@Necksa ~ $ cat /var/log/trim.log
*** Sat, 21 Dec 2013 09:08:07 -0700 ***
/: 7754571776 bytes were trimmed
/home: 40096567296 bytes were trimmed
*** Sun, 22 Dec 2013 20:14:56 -0700 ***
/: 6781521920 bytes were trimmed
/home: 40000638976 bytes were trimmed
*** Mon, 23 Dec 2013 18:09:14 -0700 ***
/: 6932443136 bytes were trimmed
/home: 39973568512 bytes were trimmed
*** Tue, 24 Dec 2013 07:36:31 -0700 ***
/: 6931521536 bytes were trimmed
/home: 39975858176 bytes were trimmed
*** Wed, 25 Dec 2013 06:14:07 -0700 ***
/: 6930329600 bytes were trimmed
/home: 39976050688 bytes were trimmed
*** Thu, 26 Dec 2013 09:59:17 -0700 ***
/: 6969180160 bytes were trimmed
/home: 39972790272 bytes were trimmed
*** Fri, 27 Dec 2013 10:38:56 -0700 ***
/: 6903767040 bytes were trimmed
/home: 39820578816 bytes were trimmed
*** Sat, 28 Dec 2013 05:29:51 -0700 ***
/: 6897672192 bytes were trimmed
/home: 39596212224 bytes were trimmed
*** Sun, 29 Dec 2013 11:35:12 -0700 ***
/: 6901882880 bytes were trimmed
/home: 39580094464 bytes were trimmed
vindsl@Necksa ~ $

Bear in mind, I'm just a long-term user of Peppermint OS -- that's all.

Take my gurrulous posts with a grain_of_salt... :D

_________________
Be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Peppermint 4 on SSD
PostPosted: Sun Dec 29, 2013 10:19 pm 
Offline

Joined: Sun Dec 29, 2013 1:48 pm
Posts: 7
Ooooh...cool. I'm going to read that thread all the way through and try it out and let you know how it goes. It will probably be a few days before I get a chance to start, but I'm going to follow your lead pretty closely.

I'll post the results as I roll through it.


Top
 Profile  
 
 Post subject: Re: Peppermint 4 on SSD
PostPosted: Mon Dec 30, 2013 7:47 am 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
In answer to an earlier question .. NO, TRIM is not enabled by default in Peppermint <= 4

I gather it's to be enabled by default in Ubuntu 14.04, so *possibly* Peppermint 5

See here:
http://www.omgubuntu.co.uk/2013/12/trim ... untu-14-04
and
https://blueprints.launchpad.net/ubuntu ... d-trimming
and for 3 ways to trim the SSD (manual, scheduled, and automatic), see here:
http://askubuntu.com/questions/18903/how-to-enable-trim

VinDSL is using a scheduled trim where anacron does the scheduling

I think Ubuntu are going for a straight cron job in 14.04 as I don't think (could be wrong here) that they have anacron by default .. at least they don't on the server edition ;)

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Peppermint 4 on SSD
PostPosted: Mon Dec 30, 2013 1:58 pm 
Offline
User avatar

Joined: Mon Aug 05, 2013 11:58 pm
Posts: 220
Location: Arizona, USA
PCNetSpec wrote:
VinDSL is using a scheduled trim where anacron does the scheduling [...]

The Germans call it batched discard. That's the model I used.

I mention this because I'm dead set against the use of online discard, so called.

I'm not trying to parse your statement. Scheduled Trim -- Batched Discard -- means the same, for our purposes.

I just wanted to point out the differentiation in these two types of 'discards'... ;)

_________________
Be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Peppermint 4 on SSD
PostPosted: Thu Jan 02, 2014 7:10 pm 
Offline

Joined: Sun Dec 29, 2013 1:48 pm
Posts: 7
So far, its gone great! I did a dry run install with the original HDD and it went smooth as silk. I did have to google around a bit to get the wifi working, but that was solved pretty easily as well.

Then I took the HDD out and put the SSD in, and the reinstall went well again.

I ran "sudo fstrim /" manually and it worked. Since I'm already familiar with cron, I followed the directions for "Scheduled TRIM" on this page http://askubuntu.com/questions/18903/how-to-enable-trim and it seems to work.

I'm not familiar with anacron, though. I get that its purpose is to run things that get missed by cron while the computer is turned off. I just want to confirm with you guys that it'll automatically pick up and run the fstrim script I put in /etc/cron.daily. The documentation on the web for this is...scant. Or in German (lol, VinDSL :D ).


Top
 Profile  
 
 Post subject: Re: Peppermint 4 on SSD
PostPosted: Thu Jan 02, 2014 10:16 pm 
Offline
User avatar

Joined: Mon Aug 05, 2013 11:58 pm
Posts: 220
Location: Arizona, USA
skpatel73 wrote:
I'm not familiar with anacron, though. I get that its purpose is to run things that get missed by cron while the computer is turned off.

Yes, you're correct -- that's the way it works.

Its a play_on_words -- Anacron -- anac(h)ronistic cron

Basically, 'anachronistic' means against time, e.g. out of sync with time.

I'm on my desktop box right now, not my laptop, but I think the default anacron config file is setup to wait 5 minutes after you boot up, then it runs any missed cron jobs, while your machine was turned off.

You can change this setting, to make it wait for a longer or shorter period of time, but 5 minutes works fine for me. ;)

_________________
Be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Peppermint 4 on SSD
PostPosted: Sat Jan 04, 2014 11:27 am 
Offline

Joined: Sun Dec 29, 2013 1:48 pm
Posts: 7
Five minutes after boot is totally fine. Its been a couple days now, and I checked the logs and the scheduled TRIM looks like it is running as expected.

Thanks for the help, guys!! I'm going to mark this as [SOLVED].

Ultimately:
1. Ext4 is the default file system for Peppermint 4, so nothing needs to be done there.
2. Run a scheduled TRIM using cron based on the advice here: http://askubuntu.com/questions/18903/how-to-enable-trim
3. Anacron is installed by default and picks up the cron job, so nothing else needs to be done with that

From what I understand from elsewhere, the relatime supercedes the noatime setting and has been the default in the kernel for a while, so nothing to be done there.

And for an older system that is maxed out at 2GB of ram, I'm not sure if the swappiness/RAM disk thing will have any effect. I might try it later on, but its not a high priority.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Powered by php B.B. © 2000, 2002, 2005, 2007 php B.B. Group
Template made by DEVPPL