Hi all! I have a lill odd problem.. :/ I have a file with too long file name.. And even root cant remove/rename it... Any clues how to delete it??? -- /Rikard --------------------------------------------------------------------------------- Rikard Johnels email : rjhn@linux.nu mob : +46 70 464 99 39 --------------------------Public PGP fingerprint------------------------------ < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
Rikard Johnels wrote:
Hi all! I have a lill odd problem.. :/ I have a file with too long file name.. And even root cant remove/rename it...
Move everything out of the directory it's in, and delete the directory. Then recreate the dir and move your normal stuff back in. -- $|=1;while(1){print pack("h*",'75861647f302d4560275f6272797f3');sleep(1); for(1..16){for(8,32,8,7){print chr($_);}select(undef,undef,undef,.05);}}
Rikard Johnels
I have a lill odd problem.. :/ I have a file with too long file name.. And even root cant remove/rename it...
There are two limits in /usr/include/linux/limits.h: #define NAME_MAX 255 /* # chars in a file name */ #define PATH_MAX 4095 /* # chars in a path name */ Which one have you exceeded? IMHO, a filename longer than 255 chars indicates a kernel problem (and fsck is recommended). A problem with the path length can be fixed (IMHO) by moving the directory containing the file up in the directory tree structure. There are also tools like debugfs. -- Alexandr.Malusek@imv.liu.se
participants (3)
-
Alexandr Malusek
-
Rikard Johnels
-
zentara