You are not logged in.

#1 2017-08-06 12:26:37

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Failed to enable unit: Unit file \x2b.service does not exist

On a fresh Arch install I tried to enable Trim with:

sudo systemctl enable fstrim + fstrim.timer

but I get this error:

Failed to enable unit: Unit file \x2b.service does not exist.

What is wrong? yikes

Thanks !


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#2 2017-08-06 12:38:05

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,723
Website

Re: Failed to enable unit: Unit file \x2b.service does not exist

There is no such service called "+". If I had to guess, I'd say you're copy-pasting commands from a tutorial without reading and/or comprehending. Don't do that.

Mod note: moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2017-08-06 12:44:53

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Failed to enable unit: Unit file \x2b.service does not exist

Oh god... thanks sad


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#4 2017-08-06 13:10:45

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Failed to enable unit: Unit file \x2b.service does not exist

I have no clue why you get that error, and how you ended up using that command with a '+' sign, but to enable fstrim.timer for periodic TRIM, you would simply use:

systemctl enable fstrim.timer

EDIT. Apparently I was slow..

Last edited by ooo (2017-08-06 13:12:20)

Offline

Board footer

Powered by FluxBB