You are not logged in.

#1 2013-10-04 08:13:45

tumas
Member
Registered: 2012-02-08
Posts: 89

fstrim via cron on SSD + HDD mounted

Hello,

i have a ssd with three partitions: boot, home and root; and for my music + videos i have a second drive (hdd) mounted at /home/user/music and /home/user/videos.
The question: is it safe to run fstrim -v /home if i have that hdd mounted? if i run it manually, it seems to run without any error.

Thanks,

tumas

Offline

#2 2013-10-04 08:43:57

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: fstrim via cron on SSD + HDD mounted

There should not be a reason to ask this question on the forums, the answer can be found here:
https://wiki.archlinux.org/index.php/SS … M_via_cron
and by searching:
https://bbs.archlinux.org/search.php

Offline

#3 2013-10-04 08:48:23

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: fstrim via cron on SSD + HDD mounted

There is nothing special about a cronjob in this case; if it worked without error for you live it should do the same when called via cron.

Offline

#4 2013-10-04 10:38:42

tumas
Member
Registered: 2012-02-08
Posts: 89

Re: fstrim via cron on SSD + HDD mounted

teateawhy wrote:

There should not be a reason to ask this question on the forums, the answer can be found here:
https://wiki.archlinux.org/index.php/SS … M_via_cron
and by searching:
https://bbs.archlinux.org/search.php

Unfortunately there is nothing written about SSD + HDD mounted at the "same" directory.

graysky wrote:

There is nothing special about a cronjob in this case; if it worked without error for you live it should do the same when called via cron.

Yeah but that was not my point wink If the live command work, the cron command will work just fine. I just want to be sure, that the hdd will not abort the fstrim command without printing out any errors.

Offline

#5 2013-10-05 18:40:03

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: fstrim via cron on SSD + HDD mounted

You called it with the verbose flag and saw no errors so I think you're fine.

Offline

#6 2013-10-05 19:38:54

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: fstrim via cron on SSD + HDD mounted

fstrim must be called on each mountpoint that you want trimmed.  Whether or not a given directory has a combination of different drives doesn't matter, as it will not recurse into a new mountpoint.

Offline

Board footer

Powered by FluxBB