LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-07-2012, 02:06 PM   #1
raulapati
Member
 
Registered: May 2010
Posts: 51

Rep: Reputation: 0
Unhappy how to remove the symlink ?


I have created a symlink of usb drive and exported via nfs and when i removed the pendrive i unmounted and unlinked the drive but still iam seeing that usb drive directory in my /nfs and when i try to access it iam getting a message as "no such file or directory"
how to solve this issue..I cant do it manually i haveto perform it in c code itself

regards
 
Old 11-07-2012, 04:02 PM   #2
larvel
LQ Newbie
 
Registered: Jun 2012
Posts: 29

Rep: Reputation: Disabled
Try rm link without the forward slash that comes when/If you tab complete
 
Old 11-08-2012, 12:55 AM   #3
raulapati
Member
 
Registered: May 2010
Posts: 51

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by larvel View Post
Try rm link without the forward slash that comes when/If you tab complete
Ya I did that but have no use..
For example:

I have a usb,When i insert it,i Do mount and create a symlink of it and export it via nfs.And when i eject it i will umount it and unlink and remove that linkpath.But iam not able to unlink it successfully...When i do unlink its creating the broken symlink..

regards
 
Old 11-08-2012, 12:44 PM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
First unlink and next unmount?
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question How to get stat() of symlink and not of target of symlink ? ronbarak Programming 3 11-08-2010 12:14 PM
how to remove a symlink without deleting the destination directory Snerkel Linux - Software 3 01-20-2005 11:47 AM
symlink mikedelo Linux - Software 2 03-28-2004 12:32 PM
symlink evannextel Linux - Newbie 1 09-17-2003 03:54 PM
Symlink Mestax Linux - Newbie 3 09-04-2003 12:07 PM


All times are GMT -5. The time now is 03:38 AM.

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