Mkdir error: invalid argument

problem code:

[cuixiaohuan lamp]$ mkdir test
mkdir: cannot create directory `test': Invalid argument

linux os is normal and has no other problem; the problem occurs suddenly, how to fix it?

about the environment:

# linux
[cuixiaohuan ~]$ uname -a
Linux cuixiaohuan 2.6.32_1-10-0-0 #1 SMP Fri Feb 1 17:20:11 CST 2013 x86_64 x86_64 x86_64 GNU/Linux

# file permission
[cuixiaohuan lamp]$ ll
total 5744
drwxrwxrwx  16 work work    4096 Jan 21 14:33 apache2
drwxrwxrwx   5 work work    4096 Jul 19  2013 memcached
drwxrwxrwx  13 work work    4096 Jan  8 10:50 mysql5
drwxrwxrwx   8 work work    4096 Dec  7 17:25 php5

# about disk and inonde
[cuixiaohuan lamp]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             8.2G  7.0G  1.2G  86% /
/dev/sda3             1.4T  939G  402G  71% /home
[cuixiaohuan lamp]$ df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/sda2            1098880  573014  525866   53% /
/dev/sda3            181288960 6331853 174957107    4% /home

# mount info
[cuixiaohuan lamp]$ mount
/dev/sda2 on / type ext2 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda3 on /home type ext2 (rw)

journal information as follows enter image description here

info about strace is normal, will someone tell me why and how to fix it?

+4
source share
1 answer

This can happen with a damaged file system.

You can try fsckon your file system.

0
source

All Articles