LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bodhi (https://www.linuxquestions.org/questions/bodhi-92/)
-   -   Saving my SSD (https://www.linuxquestions.org/questions/bodhi-92/saving-my-ssd-4175680155/)

ionmich 08-09-2020 04:16 PM

Saving my SSD
 
My /etc/fstab shows...

/dev/mapper/bodhi--vg-root / ext4 errors=remount-ro 0 1

...while it's installed on an older notebook with early SSD drive. Should I have installed it on an ext2 file system to reduce wear?

I tried to disable jounaling on my installed ext4 file system by booting the USB installation media and invoking tune2fs, but it told me I had a bad magic number on a LVM parttioned drive. So is my only option to re-install using ext2?

cordx 08-09-2020 05:53 PM

i don't know a whole lot about journaling, but isn't most (all?) of that stored in /var/log? if so and you don't want to reinstall, i wonder if it would be possible to symlink /var to an external drive? auto-mount the external in fstab and send the bulk of writes to that drive.

cwizardone 08-09-2020 06:18 PM

Have you considered using F2FS for your SSD?

https://en.wikipedia.org/wiki/F2FS

Here is a recent "conversation" on the subject. Reading through it may or may not help.
:)

https://www.linuxquestions.org/quest...or-4175673968/

ionmich 08-09-2020 06:48 PM

I was not aware of that, but as it's a little more complicated, I decided to re-install. That would make it simpler if I ran into problems. Thank you for the suggestion.

michaelk 08-10-2020 10:19 AM

Not an expert here but how old is old? Running a S.M.A.R.T. test should output the health as well as the wear level count which is one way to estimate its remaining life.
Did you run tune2fs using the logical volume name and not the partition ID?

To check if your drive supports trim run the command:
lsblk --discard

If DISC-GRAN and DISC-MAX are non zero your drive supports trim.
https://wiki.archlinux.org/index.php/Solid_state_drive

If you still want to use ext2 then you might also want to consider using noatime or relatime as a mount option to limit writes. Using noatime will break applications that use access times. Since ext2 does not support trim if your SSD is capable you should occasionally run fstrim to clear out the garbage.


All times are GMT -5. The time now is 04:36 PM.