Re: Fwd: mkdir error message -- what does this mean?

From: David Christensen <dpchrist_at_holgerdanske.com>
Date: Fri, 30 Sep 2022 20:19:32 UTC
>> On Fri, Sep 30, 2022 at 02:35:14PM -0400, Aryeh Friedman wrote:

>>> What does the following mean?
>>>
>>>
>>> dnixon@sft:/tmp % sudo mkdir
>>> /fsvc/clients/specMed/LIVE/master/h11a9fpp-mkknhbci-2hjvbpc
>>> mkdir: /fsvc/clients/specMed/LIVE/master/h11a9fpp-mkknhbci-2hjvbpc: Too
>>> many links


 > On Fri, Sep 30, 2022 at 2:43 PM Andreas Kusalananda Kähäri wrote:

>> The error message usually says "Too many levels of symbolic links", so
>> I'm assuming that you have translated it.
>>
>> It means that when creating the directory, a symbolic link was traversed
>> that pointed back to itself, or in some other fasion created a loop.
>>
>> This can easily be recreated like this:
>>
>>          $ ln -s link .
>>          $ ls -l
>>          total 1
>>          lrwxr-xr-x  1 myself  wheel  4 Sep 30 20:38 link -> link
>>
>> Then:
>>
>>          $ mkdir link/hello
>>          mkdir: link/hello: Too many levels of symbolic links
>>
>> So, in your case, I would investigate whether any part of the target
>> pathname "/fsvc/clients/specMed/LIVE/master/h11a9fpp-mkknhbci-2hjvbpc"
>> is a symbolic link that points to somewhere where it shouldn't point.


On 9/30/22 11:51, Aryeh Friedman wrote:
 > Did a ls -l one dir at a time, no symlinks.


Why '%' in the shell prompt?


Please run the following commands as user "dnixon" on host "sft" and 
post the entire console session -- prompts, commands entered, and output 
produced:

% cat /etc/debian_version ; uname -a

% echo $SHELL

% alias sudo

% type -t sudo

% which sudo

% sudo echo $SHELL

% sudo alias mkdir

% sudo type -t mkdir

% sudo which mkdir

% mount | egrep "fsvc|clients|specMed|LIVE|master"


David