Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

testing drives before mount

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
daggs
Posts: 17
Joined: 2018-04-21 16:12

testing drives before mount

#1 Post by daggs »

Greetings,

I have a server with two hdds on my debian stable server, one is for media sharing and the other is for backups.
my plan is to depend the fs sharing (samba and nfs) on a systemd mount unit for the media drive and depend the backup software on the systemd mount unit for the backups drive.
thing is, I want to make sure that the drive is ok fs wise before mounting it.
how can I instruct systemd to mount the drives only of the fs on them is intact? my biggest concern is for the backup drive which is more important, also it has lot of files thus making every fs check disk rather time consuming.

any ideas?

Thanks.


daggs
Posts: 17
Joined: 2018-04-21 16:12

Re: testing drives before mount

#3 Post by daggs »

debiman wrote:iiuc, this does what you want:
https://wiki.archlinux.org/index.php/fs ... _partition
thanks, so I add this to the code, the filesystems gets mounted regardless, the file sharing and the backups too and the minute the drive is accessed, the fs will get checked?
if so, does it fixes issues it finds? if not, does it unmounts the fs? if it runs fsck on the drive every boot, it will take along time to check the backup partition (lots of files).
also, noauto will not automount the drive, when it will get mounted? when the folder is accessed?

any ideas regarding these issues?

Post Reply