View Full Version : Help with mounted drive

7th September 2007, 07:48 PM
I was running out of space on my server, so I added a second drive.

The drive is mounted to /dev/sdb1 /jail ext2 defaults 1 0

I copied all the data from the original jail folder to this folder.

Now when I run my script to install jailed root users I get an error.

jk_jailuser -m -j /jail user
Traceback (most recent call last):
File "/usr/sbin/jk_jailuser", line 297, in ?
File "/usr/sbin/jk_jailuser", line 288, in main
jailuser(jail, username, movehome, config)
File "/usr/sbin/jk_jailuser", line 177, in jailuser
shutil.copy(oldhome, newhome)
File "/usr/lib/python2.4/shutil.py", line 81, in copy
copyfile(src, dst)
File "/usr/lib/python2.4/shutil.py", line 47, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 21] Is a directory

If I create a new folder on the first drive and run the script to point to that new folder it works fine.