Showing posts with label path. Show all posts
Showing posts with label path. Show all posts

Wednesday, May 20, 2009

Cannot copy file_name: The path is too deep

ver get this error “Cannot copy file_name: The path is too deep” when trying to drag-and-drop a file? Were you going through a firewall?

I recently came across this error and it had us stumped for quite a while. I found several articles online that didn’t quite identify it correctly or didn’t apply to my situation. After digging around on the knowledge base of the firewall manufacture, Check Point in this case, I came across a real solution that worked. It wasn’t easy to find, even on their site because the situation wasn’t the same, but I figured “what the heck, I’ll try it”, and it worked.

The problem had to do with the default windowing size allowed through the firewall. If you aren’t familiar, “windowing” is how TCP negotiates the transfer of data. It is variable and starts out slow until it can negotiate an acceptable packet-to-acknowledgement rate for both parties. For example, first we exchange packets by me giving you one packet and you responding (acknowledging) that you received it. Then we try say 10 packets to one, if that worked without corruption, we increase it. So on and so forth until we get to a maximum agreeable rate that both of us are comfortable with and we get data transfered at a much higher speed. All that to say this…

Check Point firewalls have a max windowing size of 10K by default. This sometimes gives you the “Path is too deep” error, espescially when on a LAN going to a DMZ or some other interface on the firewall. To fix it you will want to do the following:

To increase the window size, run the fw ctl set int fwtcpstr_max_window 65536 command.

Note: This command does not survive a reboot.

To make the command survive a reboot:

  1. On Linux or SecurePlatform, edit the $FWDIR/boot/modules/fwkern.conf file using vi.
  2. Set a parameter name to a value, e.g.,
    fwtcpstr_max_window=65536
  3. Run the fw ctl get int fwtcpstr_max_window command to verify whether the new value is applied on the OS properly.

After the procedure completes, users should be able to successfully copy the files.

Credit: http://teknotes.wordpress.com/2007/08/01/cannot-copy-file_name-the-path-is-too-deep/


Another Cause of this problem may be a failure of the connection between the internal drive and the another drive (USB or network storage)

You’ll need to do troubleshooting to isolate the problem. Use a different external HDD, drop your internal HDD into another system, etc until you figure out where the problem is.


Nir.



Substitutes a virtual drive letter for a path designation.

Use the SUBST command to substitute a drive letter for a path in order to treat a virtual drive (a reserved area rather than an actual disk drive) as a physical drive.

In order to enter drive designations using any letter (other than just the letters for the physical drives installed in your computer), you may have to add this line to a CONFIG.SYS file that should be placed in the root directory of your startup drive:

LASTDRIVE=Z

Six DOS commands cannot be used with virtual drives created with the SUBST command. They are:

CHKDSK
DISKCOPY
FDISK
FORMAT
LABEL
SYS

If you enter the SUBST command without options , the program will display the name of the current virtual drives that are in effect (if any).

For more information on SUBST and other hard disk commands, see Chapter 3, Using Fixed Disks, in the downloadable book DOS the Easy Way.

Example

To create a virtual drive F for the path, SALES\LETTERS (under the root directory) of drive C, enter

subst f: c:\sales\letters

Read and write requests to either drive F or to C:\SALES\LETTERS will be stored in the C:\SALES\LETTERS directory area.

Credit: http://www.easydos.com/subst.html

Nir.