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 Advanced UNIX and Linux questions go here. Expert-to-Expert.

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

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

Join Date: Mar 2007
Posts: 87
Stumble this Post!
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
Forum Sponsor
  #2 (permalink)  
Old 09-20-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,160
Stumble this Post!
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: 148
Stumble this Post!
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: Washington DC Area
Posts: 8,449
Stumble this Post!
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: 87
Stumble this Post!
Hi,

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

Join Date: Dec 2007
Posts: 1
Stumble this Post!
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: 87
Stumble this Post!
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

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:44 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0