Home > OS >  CentOS8 external hard disk box, then the FTP and Samba and SVN couldn't find it
CentOS8 external hard disk box, then the FTP and Samba and SVN couldn't find it

Time:11-10

CentOS8 external hard disk box, the mount at/data, system boot automatically mount, in the/etc/fstab added f6f UUID=e05ad196-5304-4 - bde0 - d1c4a7285d56/data corruption defaults 0 0

Starts to look under/data, there is no problem, everything is normal, but...

My samba, FTP and SVN server is put the data on the hard disk box, three servers after system boot can't find the corresponding directory, relatively FTP is better, because the user login is restricted in the home directory, the user can see everything except hard disk box directory, and samba and SVN for all data on hard disk box, so can't open completely,

The three service stopped, open and manual again, everything is normal, the data is seen,

I suspect because need some time to mount the hard disk box, and the three services up too fast, good service startup disk haven't mount, can't find the data, and so I did the following:

1. Turn off the three services are powered up, don't let them start from

2. Modify the/etc/rc. D/rc. Local, add the following these things
 
The mount -- bind/data/samba/share/home/user1/share & amp; & \
The mount -- bind/data/samba/yxh/home/user1/data & amp; & \
The/usr/bin/systemctl start VSFTPD & amp; & \
The/usr/bin/svnserve - d - r/data/SVN & amp; & \
The/usr/bin/systemctl start SMB

Purpose is every startup, put the hard disk box directory mapping into the user's home directory (so FTP can see), and at the bottom of the screen to ensure execution of the executed next, for the last three service startup disk must have mounted a success,

But it is of no damn use

Worse as a result, all three services can't find the corresponding directory, restart up login manually restart the service can not find the data in the hard disk box, CD/data, ls it everything is normal, all the data can see,

Who has a good place?
  • Related