Sorry for the misunderstanding - not sure how the commands are interpreted,
so messed that up pretty badly.
lftp ad...@hostname:/> cd drive2\:
cd: Access failed: 550 '/drive2\:': Not a directory or not accessible.
see, the issue doesnt appear to be the : but the leading /
You got the point with the file structure I think... There are 2 separate
volumes. / of drive1: has a set of files and / of drive2: has a completely
different set of files...
the standard ftp command line client in centos5 or win xp lets me cd
drive2: and I see / of drive2: while if I cd drive1: then I see / of
drive1...
Hope that helps?
Thanks,
Matt
On Feb 24, 2010 9:53pm, Kyle Thurow <[email protected]> wrote:
None of those commands you typed into lftp were what I intended. I
only put the quotes so you could distinguish what the command was.
They way you tried to use it was completely self-defeating. As you can
see, putting the whole thing in quotes results in an unknown command
error. Additionally, putting "drive2\:" in quotes defeats the whole
purpose! The quotes make the '\' character literal, so it tries to
enter a directory literally named drive2\:
My intent was for you to use "cd drive2\:" (but remove the quotes when
you type this into lftp! Also cd "drive2:" might work (keep these
quotes))
Also, I don't follow your "server structure" at all. are drive1 and
drive2 directories withing root? The way you showed, they seem to be
independent of the filesystem! Can you maybe connect to the ftp
server, and show the output of 'ls' ?
- Kyle
On Wed, Feb 24, 2010 at 1:07 PM, [email protected]> wrote:
> Thanks for the suggestions - no go so far.
>
> Pretty sure the issue is the preceding '/'.
>
> The server has the following structure:
>
> drive1:
> /
> /dir1
> /dir2
> drive2:
> /
> /dir1
> /dir2
>
> The FTP server defaults to drive1: and if the cd command includes the
> preceding '/' then it is assumed that the "drive2" text is a directory
> (which doesnt exist).
>
> Some samples:
> FROM FTP:
> ftp> cd drive2
> 550 'drive2': Not a directory or not accessible.
> ftp> cd drive2:
> 250 CWD command - successful.
>
> FROM LFTP:
> lftp ad...@hostname:/> cd drive2:
> cd: Access failed: 550 '/drive2:': Not a directory or not accessible.
> lftp ad...@hostname:/> "cd drive2\:"
> Unknown command `cd drive2\:'.
> lftp ad...@hostnamen:/> cd "drive2\:"
> cd: Access failed: 550 '/drive2\:': Not a directory or not accessible.
> lftp ad...@hostname:/> cd 'drive2\:'
> cd: Access failed: 550 '/drive2\:': Not a directory or not accessible.
> lftp ad...@hostname:/> cd drive2
> cd: Access failed: 550 '/drive2': Not a directory or not accessible.
>
> Thanks for the help. I just hope that I am not the only one to have run
> across a system like this before.
>
> Matt
>
>
> On Feb 24, 2010 12:28pm, Bill Dorsey [email protected]> wrote:
>> I was thinking the same thing. I never use a : when on ftp sites.
>>
>> Also, there may be a security issue. I get that a lot when my creds are
>> lacking.
>>
>>
>>
>> On Wed, Feb 24, 2010 at 12:04 PM, Kyle Thurow [email protected]>
wrote:
>>
>> This is just speculation. I haven't done any testing to verify, but
>>
>> lftp may be having a problem with the ':' character in that directory
>>
>> name. If possible, I would recommend naming it something else.
>>
>> Alternatively, you may be able to escape the character. you could try
>>
>> "cd drive2\:"
>>
>>
>>
>> - Kyle
>>
>>
>>
>>
>> On Wed, Feb 24, 2010 at 10:51 AM, [email protected]> wrote:
>>
>> > Hi all - I hope this is not an rtfm problem - I have searched every
way
>> > I
>>
>> > know how for the answer...
>>
>> >
>>
>> > Am working with and embedded device that has 2 volumes served by FTP.
>>
>> >
>>
>> > With linux command line ftp client, I can cd to the second volume
- "cd
>>
>> > drive2:"
>>
>> >
>>
>> > When I do the same with lftp, I get the following error:
>>
>> > cd: Access failed: 550 '/drive2:': Not a directory or not accessible.
>>
>> >
>>
>> > Which is right, because it is adding a leading '/' to the volume as
to
>> > make
>>
>> > it rooted at /.. Is there a way to change volumes or cd with out the
>> > leading
>>
>> > '/'?
>>
>> >
>>
>> > Thanks,
>>
>> > Matt
>>
>>
>>
>>
>>
>>