Coder Social home page Coder Social logo

trimly's Introduction

TrImLy

== Your fstrim automator and defrag script for ChomiumOS! *yay* ==

Function

-This shell util is intended to be used as a manually-run replacement for https://chromium.googlesource.com/chromiumos/platform2/+/refs/heads/master/trim/scripts/chromeos-trim/

-ALSO featuring defrag (e4defrag) for people running Chromium OS or derivatives on hard drives. Chromebooks almost universally (except for some very old models) use SSDs, but CrOS source code only contains code to trim a solid state storage device after one or all of three conditions are met, but sometimes it does not do its job well, and of course has no optimization features for HDDs. This shell script presents the option to defrag your drive, and an option to trim your drive. You can do either or both, depending on your needs and whether you've got an SSD or traditional HDD.

Usage

...enable dev mode, and enter crosh (terminal) first, obviously...

Simply copy trimly.sh to /usr/local/bin with sudo cp ~/Downloads/trimly.sh /usr/local/bin/, run sudo chmod +x trimly.sh to make it executable, and then run sudo trimly.sh.

IMPORTANT UPDATE

-ChromiumOS and ChromeOS use 12 partitions, whereas CloudReady up until ver. 89.4.44 used 27. Since Neverware's merge with Google, they are making their release timing to be more in tune with Google's, as well as changing the partition layout to the "standard GPT CrOS layout." Firstly, I was not thinking of this during initial development, as the motivation for this came from conversations on the CloudReady forums, and personal use of this script was always on CloudReady. Secondly, the partition numbers in the script would have never worked on ChromiumOS or ChromeOS, and now as of June 18, with the release of 90.1.42, won't work on CloudReady either. To fix all of this, I am making a copy of the current script (ver. 0.4) under the new folder "cros_pre_90", specifically for users who can't (i.e. 32 bit users), or don't want to upgrade. Everyone else (the majority), just use the regular TrImLy script.

-Version history can be found in ver_hist.txt

Yessir

...This project is FOSS, and is intended to be used with CloudReady https://www.neverware.com/ and Chromium OS https://www.chromium.org/chromium-os/, builds of which can be downloaded here > https://arnoldthebat.co.uk/wordpress/chromiumos-special-builds/

Amazing what can be done with bash, huh?

trimly's People

Contributors

alex313031 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

istiak101 wayrk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.