LinuxQuestions.org
Visit Jeremy's Blog.
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 11-14-2013, 07:43 PM   #1
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,241

Rep: Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402
Smile Time to do some TRIMming...


So now that I am on Slackware14.1 , and 3.10 kernel series, TRIM for JFS is now supported, though I can't seem to figure it out. Tried to peruse the man pages for all JFS , nothing really about TRIM, I guess I am looking in the wrong place?

How do I get started with TRIM for JFS for my SSD?

Last edited by Jeebizz; 11-14-2013 at 07:46 PM.
 
Old 11-14-2013, 08:10 PM   #2
rogan
Member
 
Registered: Aug 2004
Distribution: Slackware
Posts: 216

Rep: Reputation: 117Reputation: 117
TRIM isn't jfs specific. Just add discard after defaults in your fstab on your ssd partitions,
reboot, and never think about it again.
For example, change

/dev/sda2 / jfs defaults 1 1

to

/dev/sda2 / jfs defaults,discard 1 1
 
1 members found this post helpful.
Old 11-14-2013, 08:18 PM   #3
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,241

Original Poster
Rep: Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402
Ah ok, where can I get some more info though about that option discard?

Also thanks for the help!

Last edited by Jeebizz; 11-14-2013 at 08:24 PM.
 
Old 11-14-2013, 11:21 PM   #4
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,826

Rep: Reputation: 1498Reputation: 1498Reputation: 1498Reputation: 1498Reputation: 1498Reputation: 1498Reputation: 1498Reputation: 1498Reputation: 1498Reputation: 1498
If you are using an SSD, which I assume you are since you are asking about trim, you should add "notime" to your fstab also.

/dev/sda2 / jfs defaults,discard,noatime 1 1

Last edited by Daedra; 11-14-2013 at 11:38 PM.
 
Old 11-15-2013, 05:02 AM   #5
jtsn
Member
 
Registered: Sep 2011
Posts: 925

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
To trim the free space of a file system, use fstrim(1).
 
Old 11-15-2013, 02:10 PM   #6
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,241

Original Poster
Rep: Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402
I will look into more info on how to do that, since I don't understand at all how to use it - and don't really want to make any other changes just yet. Overall if I keeping discard option in my fstab is all that I need, then I'm happy right now
 
  


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
Trimming H264 MP4's BaptismOfFire Linux - Software 2 10-04-2013 08:01 PM
Trimming a String sukhdip Linux - Newbie 2 01-31-2012 07:58 AM
[SOLVED] Trimming down Slack's fat bonixavier Slackware 5 12-19-2010 07:25 AM
About trimming a variable ahmedb72 Linux - Newbie 3 07-13-2009 06:36 AM
Trimming a file james_cwy Linux - Newbie 4 01-13-2004 11:08 PM

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

All times are GMT -5. The time now is 05:12 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