LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 11-20-2005, 04:32 PM   #1
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Rep: Reputation: 46
strange directory behavior


I had a directory, /server, I deleated it and am trying to symlink a different directory to /server, (Make /server point to the other directory)

here is the command line, it tells me the folder does not exist when I try to delete or view it, yet I cannot symlink to it cause it says it exists.....

Code:
Abydos-64 exodist # ls /mnt/remote 
bin  boot  dev  etc  home  lib  mnt  nonexistent  opt  proc  root  sbin  server  service  sys  tmp  usr  var
Abydos-64 exodist # rm /server
rm: cannot remove `/server': Is a directory
Abydos-64 exodist # rm /server -rf
rm: cannot lstat `/server': No such file or directory
Abydos-64 exodist # ls /
ls: /server: No such file or directory
bin  boot  dev  etc  home  lib  lib32  lib64  lin32  mnt  opt  proc  root  sbin  stuff  sys  tmp  usr  var
Abydos-64 exodist # ln -sf /mnt/
.keep   cdrom/  floppy/ remote/ 
Abydos-64 exodist # ln -sf /mnt/remote/
.bash_history   bin/            etc/            mnt/            proc/           server/         tmp/
.links/         boot/           home/           nonexistent/    root/           service/        usr/
.reiserfs_priv/ dev/            lib/            opt/            sbin/           sys/            var/
Abydos-64 exodist # ln -sf /mnt/remote/serv
server/  service/ 
Abydos-64 exodist # ln -sf /mnt/remote/server /server
ln: creating symbolic link `/server' to `/mnt/remote/server': File exists
Abydos-64 exodist # rm /server -rf
rm: cannot lstat `/server': No such file or directory
Abydos-64 exodist # ls /server 
ls: /server: No such file or directory
Abydos-64 exodist # ln -sf /mnt/remote/serv
server/  service/ 
Abydos-64 exodist # ln -sf /mnt/remote/server /server
ln: creating symbolic link `/server' to `/mnt/remote/server': File exists
Abydos-64 exodist # touch /server
touch: setting times of `/server': No such file or directory
Abydos-64 exodist # mkdir /server
mkdir: cannot create directory `/server': File exists
Abydos-64 exodist # rm /server -rf
rm: cannot lstat `/server': No such file or directory
Abydos-64 exodist # ls -la /ser*
ls: /server: No such file or directory
Abydos-64 exodist # rm /server 
rm: cannot remove `/server': Is a directory
 
Old 11-20-2005, 04:37 PM   #2
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Original Poster
Rep: Reputation: 46
I fixed it, I had to restart the computer (I am sure filesystem remount alone would do, but it was '/' root

after reboot it showed directory there, I did rm -rf /server and it was gone for real.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very Strange Behavior raysr Mandriva 4 08-31-2004 02:06 PM
Strange behavior with KDE tsw Linux - Software 2 05-08-2004 11:08 PM
Strange Behavior andrewb758 Linux - Hardware 5 08-31-2003 02:42 PM
strange behavior abhijit Linux - General 3 07-09-2003 11:25 PM
xawtv: Strange Behavior chem1 Linux - Hardware 1 04-29-2003 03:22 AM


All times are GMT -5. The time now is 09:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration