Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
04-06-2009, 09:57 PM
|
#1
|
Member
Registered: Jun 2008
Posts: 122
Rep:
|
removing phantom "non-empty" directories
Running vector linux 5.8, as root in a terminal:
I tried recursively removing an entire folder, sub-folders, and files on one of my partitions. the command i used was rm -rdf /mnt/mypartition/myfolder
this removed ALL files as i wanted. however it only removed say 95% of folders. i still have a directory tree of folders left over that will not remove. I cannot say what these folders have in common, other than the terminal just wont give up on the notion that they are "non-empty" directories
checking a folder with ls -al reveals no files that i can see. am I missing something? how can i forcefully delete these so called "non-empty" folders? rmdir and unlink also will not work.
Thanks,
Mike
|
|
|
04-06-2009, 10:58 PM
|
#2
|
Member
Registered: Nov 2006
Distribution: FreeBSD, OpenBSD
Posts: 30
Rep: 
|
You might try "rm -vri" on a small portion of this zombie tree. It will prompt you before every attempted deletion, and perhaps give a little bit more information about why it is not deleting it.
|
|
|
04-07-2009, 12:14 AM
|
#3
|
Member
Registered: Jun 2008
Posts: 122
Original Poster
Rep:
|
root:# rm -vri mp3s/
rm: descend into directory `mp3s/'? y
rm: descend into directory `mp3s//Full CDs'? y
rm: descend into directory `mp3s//Full CDs/Third Eye Open'? y
rm: remove directory `mp3s//Full CDs/Third Eye Open/The String Tribute to Tool'? y
rm: remove directory `mp3s//Full CDs/Third Eye Open/The String Tribute to Tool'? y
rm: cannot remove directory `mp3s//Full CDs/Third Eye Open/The String Tribute to Tool': Directory not empty
|
|
|
04-07-2009, 12:16 AM
|
#4
|
Member
Registered: Jun 2008
Posts: 122
Original Poster
Rep:
|
root:# ls -al mp3s/Full\ CDs/Third\ Eye\ Open/The\ String\ Tribute\ to\ Tool/
total 4
drwxrwxrwx 1 administrator root 4096 2009-01-14 12:42 ./
drwxrwxrwx 1 administrator root 0 2007-07-01 18:42 ../
it states "total 4"... perhaps 2 hidden files of some sort?
|
|
|
04-07-2009, 12:39 AM
|
#5
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
|
What partition type is it? Maybe you have an FS corruption.. fsck could report it.
|
|
|
04-07-2009, 01:11 AM
|
#6
|
Member
Registered: Jun 2008
Location: Toronto, Canada
Distribution: SuSE, RHEL, Mageia
Posts: 132
Rep:
|
It sounds like your shell has alias for rm with '--one-file-system' option.
So, are there another filesystems mounted in your dirs tree?
|
|
|
04-07-2009, 04:31 PM
|
#7
|
Member
Registered: Jun 2008
Posts: 122
Original Poster
Rep:
|
there are no other file systems mounted in the dir tree
upon checking, the fs type is NTFS. is there any way to check ntfs from within linux or do i need to remove this drive and put it into a windows machine to run chkdsk?
i dont think this is due to corruption but i'm not ruling it out. i actually copied over this directory tree from a different drive (ext2) so i could format the other drive, and then replaced the data. the data was on this ntfs partition for maybe a week or two before i copied it all back. when i went to remove the data from this temporary ntfs partition was when this 'non-empty' directory error occured.
|
|
|
04-08-2009, 05:54 AM
|
#8
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
|
What do you use to mount NTFS?
|
|
|
04-08-2009, 06:31 AM
|
#9
|
Member
Registered: Jun 2008
Location: Toronto, Canada
Distribution: SuSE, RHEL, Mageia
Posts: 132
Rep:
|
I'd recommend you to update your NTFS driver.
The most recent NTFS-3G is STABLE Version 2009.4.4 (April 2, 2009).
|
|
|
04-11-2009, 11:53 AM
|
#10
|
Member
Registered: Jun 2008
Posts: 122
Original Poster
Rep:
|
according to slapt-get, my ntfs-3g is up to date. i dont believe it though, so i downloaded the 2009.4.4 sources as you said
but now i get an error when trying to compile:
Code:
administrator:$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
i tried configure as root as well, no luck. i have compiled other programs on this system with no problems before. the config.log was not helpful to me, but i can post if needed.
|
|
|
04-11-2009, 11:56 AM
|
#11
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
|
Post it please, because it looks like gcc disappeared..
|
|
|
04-14-2009, 04:28 PM
|
#12
|
Member
Registered: Jun 2008
Posts: 122
Original Poster
Rep:
|
contents of config.log:
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by ntfs-3g configure 2009.4.4, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = fileserver
uname -m = i686
uname -r = 2.6.18.5
uname -s = Linux
uname -v = #2 SMP PREEMPT Sat Dec 9 19:01:25 MST 2006
/usr/bin/uname -p = athlon-4
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /bin
PATH: /opt/bin
PATH: /usr/X11/bin
PATH: /usr/local/games
PATH: /usr/lib/java/bin
PATH: /usr/lib/java/jre/bin
PATH: /usr/lib/qt/bin
PATH: /opt/seamonkey/bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2041: checking build system type
configure:2059: result: i686-pc-linux-gnu
configure:2081: checking host system type
configure:2096: result: i686-pc-linux-gnu
configure:2118: checking target system type
configure:2133: result: i686-pc-linux-gnu
configure:2177: checking for a BSD-compatible install
configure:2233: result: /usr/bin/ginstall -c
configure:2244: checking whether build environment is sane
configure:2287: result: yes
configure:2352: checking for gawk
configure:2368: found /usr/bin/gawk
configure:2379: result: gawk
configure:2390: checking whether make sets $(MAKE)
configure:2411: result: yes
configure:2598: checking whether to enable maintainer-specific portions of Makefiles
configure:2607: result: no
configure:2782: checking for gcc
configure:2798: found /usr/bin/gcc
configure:2809: result: gcc
configure:2845: checking for C compiler version
configure:2852: gcc --version >&5
gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2855: $? = 0
configure:2862: gcc -v >&5
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.6
configure:2865: $? = 0
configure:2872: gcc -V >&5
gcc: `-V' option must have argument
configure:2875: $? = 1
configure:2898: checking for C compiler default output file name
configure:2925: gcc -O2 -march=i586 -mtune=i686 conftest.c >&5
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libc.so: file format not recognized; treating as linker script
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libc.so:5: parse error
collect2: ld returned 1 exit status
configure:2928: $? = 1
configure:2966: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "ntfs-3g"
| #define PACKAGE_TARNAME "ntfs-3g"
| #define PACKAGE_VERSION "2009.4.4"
| #define PACKAGE_STRING "ntfs-3g 2009.4.4"
| #define PACKAGE_BUGREPORT "ntfs-3g-devel@lists.sf.net"
| #define PACKAGE "ntfs-3g"
| #define VERSION "2009.4.4"
| #define _GNU_SOURCE 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2973: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -march=i586 -mtune=i686'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-O2 -march=i586 -mtune=i686'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_FUSE_MODULE_CFLAGS_set=
ac_cv_env_FUSE_MODULE_CFLAGS_value=
ac_cv_env_FUSE_MODULE_LIBS_set=
ac_cv_env_FUSE_MODULE_LIBS_value=
ac_cv_env_LDCONFIG_set=
ac_cv_env_LDCONFIG_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_path_install='/usr/bin/ginstall -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-pc-linux-gnu
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/administrator/Desktop/Downloads/ntfs-3g-2009.4.4/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/administrator/Desktop/Downloads/ntfs-3g-2009.4.4/missing --run tar'
AR=''
AUTOCONF='${SHELL} /home/administrator/Desktop/Downloads/ntfs-3g-2009.4.4/missing --run autoconf'
AUTOHEADER='${SHELL} /home/administrator/Desktop/Downloads/ntfs-3g-2009.4.4/missing --run autoheader'
AUTOMAKE='${SHELL} /home/administrator/Desktop/Downloads/ntfs-3g-2009.4.4/missing --run automake-1.9'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS='-O2 -march=i586 -mtune=i686'
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-O2 -march=i586 -mtune=i686'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_MOUNT_HELPER_FALSE=''
ENABLE_MOUNT_HELPER_TRUE=''
EXEEXT=''
F77=''
FFLAGS=''
FUSE_INTERNAL_FALSE=''
FUSE_INTERNAL_TRUE=''
FUSE_MODULE_CFLAGS=''
FUSE_MODULE_LIBS=''
GENERATE_LDSCRIPT_FALSE=''
GENERATE_LDSCRIPT_TRUE=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_LIBRARY_FALSE=''
INSTALL_LIBRARY_TRUE=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDCONFIG=''
LDFLAGS=''
LIBFUSE_LITE_LIBS=''
LIBNTFS_3G_VERSION='54'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/administrator/Desktop/Downloads/ntfs-3g-2009.4.4/missing --run makeinfo'
MKDIR_P=''
MV=''
NTFS_DEVICE_DEFAULT_IO_OPS_FALSE=''
NTFS_DEVICE_DEFAULT_IO_OPS_TRUE=''
OBJEXT=''
OUTPUT_FORMAT=''
PACKAGE='ntfs-3g'
PACKAGE_BUGREPORT='ntfs-3g-devel@lists.sf.net'
PACKAGE_NAME='ntfs-3g'
PACKAGE_STRING='ntfs-3g 2009.4.4'
PACKAGE_TARNAME='ntfs-3g'
PACKAGE_VERSION='2009.4.4'
PATH_SEPARATOR=':'
PKG_CONFIG=''
RANLIB=''
REALLYSTATIC_FALSE=''
REALLYSTATIC_TRUE=''
RM=''
RUN_LDCONFIG_FALSE=''
RUN_LDCONFIG_TRUE=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='2009.4.4'
WINDOWS_FALSE=''
WINDOWS_TRUE=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_F77=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='/home/administrator/Desktop/Downloads/ntfs-3g-2009.4.4/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='mkdir -p --'
ntfs3gincludedir=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgconfigdir=''
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
rootbindir=''
rootlibdir=''
rootsbindir=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME "ntfs-3g"
#define PACKAGE_TARNAME "ntfs-3g"
#define PACKAGE_VERSION "2009.4.4"
#define PACKAGE_STRING "ntfs-3g 2009.4.4"
#define PACKAGE_BUGREPORT "ntfs-3g-devel@lists.sf.net"
#define PACKAGE "ntfs-3g"
#define VERSION "2009.4.4"
#define _GNU_SOURCE 1
configure: exit 77
|
|
|
04-14-2009, 04:33 PM
|
#13
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
|
So you have /usr/lib/libc.so.5 ? Usually the only libc is /lib/libc.so.6 . Try to find out what package installs the file.. Also, what does "file /usr/lib/lib.so.6" print?
|
|
|
04-14-2009, 04:59 PM
|
#14
|
Member
Registered: Jun 2008
Posts: 122
Original Poster
Rep:
|
i think what you're seeing on that line is a semicolon ":" and not a period "." with "libc.so:5: parse error" ??
"file /usr/lib/lib.so.6" prints no file or directory. neither does lib.so.5 or libc.so.6 or 5.
however, "file /usr/lib/libc.so" prints: ASCII C program text
|
|
|
04-15-2009, 02:38 PM
|
#15
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
|
Erm, could you post it? It looks like it shouldn't be there..
|
|
|
All times are GMT -5. The time now is 09:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|