Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a NTFS partition shared between Ubuntu 10.10 and Windows 7, where I have created some directories with long path names under Ubuntu, which cannot be accessed by Windows. I wonder if there is some way that I can access these directories under Windows?

For example, for a directory with a long path name not accessible under Windows, is it possible to create a symbolic link with a much shorter path name under Ubuntu, and make the link accessible under Windows, so that accessing the link is equivalent to accessing the original directory with the long path name?

share|improve this question
add comment

1 Answer

Strange. How long is this file name? NTFS file path maximum is 32K. I highly doubt your file path is that long.

More than likely you are talking about the 260 path limit in the console. You can get around that by changing your working directory(cd) part of the way to your destination. Then doing another cd.

edit

(1)What do you mean by "NTFS file path maximum is 32K"? I mean the length of a path name has >limit in Windows.

NTFS is the file system Windows primarily uses. The file system allows file path lengths to be 32K, as in 32,000-ish characters. So I'm assuming you are running into the 255 file limit, which is kinda rare these days. Unless your programs are using the older APIs. To solve this issue, you have to be more specific with your problem. What program spits out the error and when?

(2)Can you say more about how "changing your working directory(cd) part of the way to your >destination. Then doing another cd"exactly is? I don't know how to do it.

cd is the command to change the working directory. Typically I ran into the 260 max path with batch files or console programs. You can work around the problem by using cd to change the current directory closer to your target.

For example, if you are targeting a folder under *\A\Really\Friggin\Long\and\Pain\in\the\butt\folder\in\a\path\this\long\for\some\acursed\reason\and\now\I\am\tired\of\this\insanity* then you can type cd \A\Really\Friggin\Long\and\Pain\in\the\butt\folder\ and cut the path short enough to work with.

Again, this may have nothing to do with your problem since we have no idea what "programs" can't access these paths.

share|improve this answer
    
Thanks! (1) What do you mean by "NTFS file path maximum is 32K"? I mean the length of a path name has limit in Windows. (2) Can you say more about how "changing your working directory(cd) part of the way to your destination. Then doing another cd"exactly is? I don't know how to do it. –  Tim Sep 24 '11 at 1:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.