1753769 Members
5157 Online
54796 Solutions
New Discussion юеВ

Broken links

 
SOLVED
Go to solution
Mark Stewart
Frequent Advisor

Broken links

Ok, this may sound like a silly question, but how do I remove a broken link? While in the process of creating my exported directory/drive, an error occured, resulting in broken link. Now every time I try to rm it, it says it cannot because the device is busy. Any Suggestions? thanks!
6 REPLIES 6
Vincenzo Restuccia
Honored Contributor

Re: Broken links

Try with unlink and see man unlink.
Mark Stewart
Frequent Advisor

Re: Broken links

I tried that and it wouldn't work. Since the link is already broken, it said it couldn't find the directory or file. Any other ideas? Thanks!
Vincenzo Restuccia
Honored Contributor

Re: Broken links

In this case I think after reboot you can delete.
Mark Stewart
Frequent Advisor

Re: Broken links

Even after reboot, the problem didn't go away. It kept saying the same thing. I don't know what else to try..
MANOJ SRIVASTAVA
Honored Contributor
Solution

Re: Broken links

Hi Mark

Do the following

1. do a ls - li for that file . You will get the corresponding inode associated with the link.

2. The unmount that filesystem and run a clri < inode No > filesysteme name .This will clear that inode no.

3. Run a fsck manually on that file system here it will ask you to say y or n to remove the inode and the file associated with it.

SURE KILL


Manoj Srivastava
Shannon Petry
Honored Contributor

Re: Broken links

did you run fuser to see what is using the link?
> fuser -u /dir/filename

you can also user a kill option with fuser...
> fuser -k /dir/filename

It is understood that filename above is a link, but something is reporting that it is being used...

Regards,
Shannon
Microsoft. When do you want a virus today?