On Thu, 8 Nov 2007, Namita Iyer wrote:

> Hi Saifi,
> 
> You can find out which process is using the file/filesystem using 'lsof' 
> or 'fuser'.
> If you don't find any process using it, then try :
> 
> 'unmount -f -l /data/d1'
> 
> -f is for forced
> -l as per the man pages is
> "Lazy unmount. Detach the filesystem from the filesystem  hierarchy now,
> and cleanup all references to the filesystem as soon as
> it is not busy anymore.  (Requires kernel 2.4.11 or later.)"
> 
> -f alone will not work.
> 
> Not sure why it responds twice though.
> 
> Hope this helps.
> 
> Namita
> 

Thanks for the quick response.

Yes, running the command helped unmount the partition.
The '-l' option was really very helpful.

However, still some process seems to be locking the device
/dev/hdb as fdisk is not able to write the modified partition
table information.

Looks like i need to reboot the box :-(

thanks
Saifi.

Reply via email to