Y
Y
Yu Yu2017-04-09 12:45:03
linux
Yu Yu, 2017-04-09 12:45:03

How to properly configure ext4 for SSD?

Greetings!
Guys, help me set up a file system for SSD.
You need to install openSuse as a second operating system on a laptop. For this, an SSD was purchased. There are 200 GB available, 5-7 of which will go under swap.
As a file system, I decided to use ext4
As far as I understand, to prepare a file system for SSD, it is enough to specify noatime and discard in the mount options. Yast gives the following dialog for the FS:
4a9e5e7a554145aa895a97381d38a122.png

help on the window
f8d7f970efb0404c8eb14d928b176cba.png

And for fstab:
5c9a58e50f284ef6a59115a24f2ba420.png
help on the window
57f63d82f47a4aad82e38902fd2204a3.png

Where and how can I stick these options and what else needs to be configured?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nazar Mokrinsky, 2017-04-09
@nazarpc

discardI do not recommend, performance will sag very much. It is enough to run fstrim periodically (in Ubuntu it runs once a week by default, you need to look in OpenSUSE).
If the SSD is not older than 5-7 years, then you don’t have to worry about the parameters, you still won’t be able to kill the cells by overwriting in the next 10 years with normal use (unless you write volumes equal to the volume of the SSD every day, then for a year- two can be killed).
noatimewill be more than enough.

I
Ivan, 2017-04-09
@LiguidCool

Ideally, it would be better to do without a swap or keep it on the HDD.

V
Victor Taran, 2017-04-10
@shambler81

https://klondike-studio.ru/blog/raid-ssd-trim/?sph...
I wrote here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question