The officially official Devuan Forum!

You are not logged in.

#1 2024-01-21 11:28:50

Roberto
Member
Registered: 2023-08-20
Posts: 5  

[SOLVED] fstrim command not found

Hello everyone,

I have installed Devuan Daedalus 5.0.1.
Now I wanted to optimize my SSD and ran the following command manually, both as user and root:

fstrim -v /

Whether as user or root, I get the following error message:

bash: fstrim: command not found

I have run this command hundreds of times on various distros.
Does anyone have an idea what I am doing wrong?

Many thanks in advance.

Greets
Roberto

Offline

#2 2024-01-21 12:23:48

rolfie
Member
Registered: 2017-11-25
Posts: 1,011  

Re: [SOLVED] fstrim command not found

How did you try to get root access? A simple su or a su -? Give the

~$ su - 

a try.

Offline

#3 2024-01-21 12:37:35

Roberto
Member
Registered: 2023-08-20
Posts: 5  

Re: [SOLVED] fstrim command not found

Hi rolfie,

I had only tried it with a simple su.
Your tip with

su -

solved my problem.

What is the difference between su and su -?

Offline

#4 2024-01-21 13:02:53

rolfie
Member
Registered: 2017-11-25
Posts: 1,011  

Re: [SOLVED] fstrim command not found

The path. Thats why you get command not found.

There was a change in Debian some releases ago that moved the su command into a different package and changed the behaviour. I think there is a hint in the Buster/Beowulf release notes.

Offline

#5 2024-01-21 13:46:47

Roberto
Member
Registered: 2023-08-20
Posts: 5  

Re: [SOLVED] fstrim command not found

I come from Arch distributions, so I still have a lot to learn about Debian / Devuan.

Thanks again for your help.

Offline

Board footer