YasIT

Active Member
Jan 3, 2014
38
0
6
cPanel Access Level
Root Administrator
Hello,

I moved the folder /home/virtfs to /home4
but this process suddenly stopped and I got out.

root [/]# service sshd restart
Stopping sshd: [FAILED]
Starting sshd: [ OK ]
root [/]# _

but sshd not run:

Waiting for sshd to restart...............................................................finished.


sshd has failed, please contact the sysadmin.

error in terminal :
There was an error creating the child process for this terminal
getpt failed : no such file or directory

What do I do?
Please help.

ConfigServer Explorer installed
Thank you.
 

ThinIce

Well-Known Member
Apr 27, 2006
352
9
168
Disillusioned in England
cPanel Access Level
Root Administrator
Unfortunately you may have inadvertently damaged your system by moving the virtfs folder. As you have only moved and not deleted the folder recovery may be possible. Do you have a backup image of your entire system?

VirtFS (Jailed Shell)

Warning: If you run the rm command on any file or directory within /home/virtfs that is still mounted, you will also delete all of the files stored in the directory to which it is mounted. This will render your server nonfunctional. We do not recommend that you attempt to remove any of these files or directories in this way.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello :)

Yes, per our documentation:

If you run the rm command on any file or directory within the /home/virtfs directory that is still mounted, you will also delete all of the files stored in the directory to which it is mounted. This will render your server nonfunctional. We do not recommend that you attempt to remove any of these files or directories in this way.
You could try moving the directory back under /home if you are able to get shell access.

Thank you.
 

YasIT

Active Member
Jan 3, 2014
38
0
6
cPanel Access Level
Root Administrator
i fix the problem but size this folder 89GIG
how to delete folderes in directory for 89GIG empty
Manage Shell Access > Disabled Shell > Apply all accounts

thank you
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
I believe you may not be correctly interpreting the disk space /home/virtfs uses. A bind mount is a transparent link between two places on the file system. For example, if a user views the contents of /home/virtfs/username/usr/bin, the user actually sees the contents of /usr/bin. Thus, the /home/virtfs/$user directory itself is not actually using up any additional space than already exists. Data is not actually duplicated.

Thank you.