Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
question about os x and trim
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2204
Location: Near Toronto

PostPosted: Mon Nov 03, 2014 2:37 pm    Post subject: question about os x and trim Reply with quote

totally unrelated to gentoo, except the knowledge level here
is very high

I installed a samsung ssd into an old imac (cirac 2008); all
is good (like getting a new computer)

as you may know, trim is disabled for non-apple approved ssds
and can only be enabled by turning off kext security feature, which
can lead to trouble in various ways

so, my question is this:

is it possible/safe to just boot system rescue on the imac every so often
and run fstrim? (this is of course an HFS+ files system)

maybe this is a dumb question; please let me know either way
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
katfish
Tux's lil' helper
Tux's lil' helper


Joined: 14 Nov 2011
Posts: 140

PostPosted: Mon Nov 03, 2014 10:47 pm    Post subject: Reply with quote

Trim is a continuous process. Whenever the FS frees blocks, it reports them to the SSD which does its job then.
So if there is no "instance" in the OS that is reporting, the SSD becomes no information about what is in use or not.

You only can repartition the drive from time to time in order to start the trim process if OS doesn't (IMHO).
Back to top
View user's profile Send private message
katfish
Tux's lil' helper
Tux's lil' helper


Joined: 14 Nov 2011
Posts: 140

PostPosted: Tue Nov 04, 2014 3:31 pm    Post subject: Reply with quote

Today, I recompiled the kernel of one of my machines and saw that linux has HFS+ support.

Quote:
CONFIG_HFSPLUS_FS:

If you say Y here, you will be able to mount extended format
Macintosh-formatted hard drive partitions with full read-write access.

This file system is often called HFS+ and was introduced with
MacOS 8. It includes all Mac specific filesystem data such as
data forks and creator codes, but it also has several UNIX
style features such as file ownership and permissions.


I don't know if trim is also supported and I have no deeper OSX knowledge,
but if you can boot a linux live system which has hfs+ support compiled in, you can test that.

www.sysresccd.org should have support for all common file systems.

and don't forget to backup your data before you make changes to your file system ;)
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2958
Location: UK

PostPosted: Tue Nov 04, 2014 11:15 pm    Post subject: Reply with quote

Does fstrim need the underlying filesystem to support it? Because neither of Linux's HFS variants do. Try it, but be warned it may just do nothing at all.
_________________
runit-init howto | Overlay - gtk2 stuff
Back to top
View user's profile Send private message
djdunn
l33t
l33t


Joined: 26 Dec 2004
Posts: 719
Location: Arrakis

PostPosted: Thu Nov 06, 2014 7:11 am    Post subject: Reply with quote

android uses fstrim on ext4, so I gather it wouldn't be impossible.
_________________
A process cannot be understood by stopping it. Understanding must move with the flow of the process, must join it and flow with it.

-The First Law of Mentat
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum