unable to create any directory that uses numbers as the directory name

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users unable to create any directory that uses numbers as the directory name
# 1  
Old 09-20-2007
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
[~]# 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)
root@server [~]#
root@server [~]# mount -a
root@server [~]#
root@server [~]#alias | grep mk
root@server [~]#

FSType = ext3

Please advise.

# 2  
Old 09-20-2007
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" ?
# 3  
Old 09-20-2007
Very odd. Could something be wrong with the current directory? Try
ls -ld .

# 4  
Old 09-20-2007
I agree... very odd. Smilie

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"?
# 5  
Old 09-27-2007

kernel upgrade fixed the issue
# 6  
Old 12-05-2007
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 ?
# 7  
Old 12-05-2007
A kernel upgrade fixed the issue for a while but I ended up with an OS reload.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Create directory and sub-directory with awk and bash

In the below I am trying to create a parent directory using the R_2019 line from f1 if what above it is not empty. I then create sub-directories under each parent if there is a match between $2 of f1 and $2. Inside each sub-folder the matching paths in $3 and $4 in f2are printed. If there is no... (2 Replies)
Discussion started by: cmccabe
2 Replies

2. Shell Programming and Scripting

Shell script cannot create directory and move the file to that directory

I have a script, which is checking if file exists and move it to another directory if then mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly ... (9 Replies)
Discussion started by: digioleg54
9 Replies

3. Shell Programming and Scripting

Unable to cd to a directory

I am getting the below error when cd to a directory. cd /u/Mont /bin/ksh: cd: /u/Mont: ls -ltrd /u/Mont lrwxrwxrwx 1 user1 testuser 5 Dec 1 11:39 /u/Mont -> Mont uname -a SunOS mymac 5.11 11.2 sun4v sparc sun4v Can you please resolve the error and explain why is it... (1 Reply)
Discussion started by: mohtashims
1 Replies

4. Shell Programming and Scripting

How Create new directory and move files to that directory.?

Hi All, We have main directory called "head" under this we have several sub directories and under these directories we have sub directories. My requirement is I have to find the SQL files which are having the string "procedure" under "head" directory and sub directories as well. And create... (14 Replies)
Discussion started by: ROCK_PLSQL
14 Replies

5. Shell Programming and Scripting

List files with date, create directory, move to the created directory

Hi all, i have a folder, with tons of files containing as following, on /my/folder/jobs/ some_name_2016-01-17-22-38-58_some name_0_0.zip.done some_name_2016-01-17-22-40-30_some name_0_0.zip.done some_name_2016-01-17-22-48-50_some name_0_0.zip.done and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies

6. Linux

Unable to change the permission for directory

unable to chnage the ownership as group does not exist ls -ltr drwxr-xr-x 2 1520291 remote 1024 Sep 25 2014 img root@servername#chown content:remote img chown: img: Not owner (1 Reply)
Discussion started by: raghur77
1 Replies

7. Solaris

Unable to create or delete a directory in /usr with root user

Hi All, I am trying to uninstall jdk 1.5 from my Solaris 10 64 bit but some how was not successful.so tried to delete the folder of jdk from /usr but its throughing error as: Unable to remove directory jdk: Read-only file system Even I tried to create a dir in /usr but its not allowing me... (4 Replies)
Discussion started by: Pshah
4 Replies

8. Homework & Coursework Questions

Create script to add user and create directory

first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
12 Replies

9. Solaris

unable to open directory from user

when ever i trying to give df -k from user showing permisson denied for one directory named samba.if i trying to give from root user samba directory is opening. shut@praveen#df -k df: cannot statvfs /samba/tcgt_tendering: Permission denied if i give from root user (df -k) ... (4 Replies)
Discussion started by: tv.praveenkumar
4 Replies

10. UNIX for Dummies Questions & Answers

unable to create directory in /apps

well, I'm completely stumped so I'm hopeful that someone here may have an answer...one of my development machines is running Solaris 8 and I've been trying to create a folder in /apps. it gives me this message: mkdir: Failed to make directory "*******"; Operation not applicable I've tried... (2 Replies)
Discussion started by: jkrotz
2 Replies
Login or Register to Ask a Question