The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unable to chmod a file/directory lyonsd SUN Solaris 12 04-27-2009 05:08 AM
Unable to view files in a particular directory under /opt its.simron UNIX for Dummies Questions & Answers 1 05-21-2008 10:02 AM
Unable to view files in a particular directory under /opt its.simron Linux 1 05-21-2008 09:59 AM
Unable to see all file in a current directory srikanthus2002 Shell Programming and Scripting 3 09-27-2006 04:07 AM
unable to create directory in /apps jkrotz UNIX for Dummies Questions & Answers 2 12-31-2003 09:10 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-20-2007
Registered User
 

Join Date: Mar 2007
Posts: 96
unable to create any directory that uses numbers as the directory name

Version-Release number of selected component (if applicable):
==================================================================
root@server [~]# cat /etc/redhat-release

Red Hat Enterprise Linux ES release 4 (Nahant Update 5)

root@server [~]# uname -a
Linux server.integrityserver.net 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT

2007 i686 i686 i386 GNU/Linux
root@server [~]#


How reproducible:
======================

root@server [~]# mkdir 1
mkdir: cannot create directory `1': No such file or directory
root@server
[~]# mkdir 12
mkdir: cannot create directory `12': No such file or directory
root@server [~]# mkdir 1a2
root@server [~]#



Actual results:
======================
mkdir: cannot create directory `1': No such file or directory



Expected results:
======================
should be able to create a directory

Additional Info:
==================
root@server [~]# ll $(which mkdir)
-rwxr-xr-x 1 root root 25060 Sep 19 15:46 /bin/mkdir*

root@server [~]# rpm -qf $(which mkdir)
coreutils-5.2.1-31.6
root@server [~]#
root@server [~]# mount -a
root@server [~]#
root@server [~]#alias | grep mk
root@server [~]#


FSType = ext3




Please advise.


Thanks
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-20-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,288
That's odd.... I can create folders just fine, i.e. mkdir 1 works.
You are root, so you have permissions, it's not nfs mounted folder, no aliases.... hmmm...
can you create normal folder like "mkdir test1" ? What is the status of "echo $?" after it fails ? Can you use "mkdir -p /path/to/1" ?
Reply With Quote
  #3 (permalink)  
Old 09-20-2007
kahuna's Avatar
Registered User
 

Join Date: Apr 2007
Posts: 149
Very odd. Could something be wrong with the current directory? Try
Code:
pwd
ls -ld .
Reply With Quote
  #4 (permalink)  
Old 09-20-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,042
I agree... very odd.

Try making a substitute command. With bash or ksh:
function xmkdir { perl -e 'mkdir(shift)' $1 ; }
xmkdir 12

Does that work? What about "mkdir ./12" and "xmkdir ./12"? What about "touch 12"?
Reply With Quote
  #5 (permalink)  
Old 09-27-2007
Registered User
 

Join Date: Mar 2007
Posts: 96
Hi,

kernel upgrade fixed the issue
Reply With Quote
  #6 (permalink)  
Old 12-05-2007
Registered User
 

Join Date: Dec 2007
Posts: 1
Hi I have the same issue as fed.linuxgossip.

I am running
RHEL AS 4 (Update 5)

Filesystem = ext3

Same Problem:
#########
I can not create numeric files.

I can not create them via anything i can think of, via echo, dd, touch, etc etc.

########

What I can do:

I can write to the same filesystem over NFS on a different machine just fine.

I can boot up off of a Live CD and write to the file system fine.

########
I tried using statically linked binaries like busybox, and I can not create the files.

I updated the system completely to RHEL AS 4 Update 6, (including the kernel), and the problem still persists.

#######
Perderabo :
Changing shells didnt help, nor did quotes or escape characters.

###########

Anything else special you did fed.linuxgossip ?
Reply With Quote
  #7 (permalink)  
Old 12-05-2007
Registered User
 

Join Date: Mar 2007
Posts: 96
A kernel upgrade fixed the issue for a while but I ended up with an OS reload.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
linux, perl, perl shift, shift, shift perl

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 04:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66