![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| lofs | wrapster | SUN Solaris | 1 | 01-20-2008 07:58 AM |
| lofs | wrapster | SUN Solaris | 1 | 01-17-2008 10:35 PM |
| auto mount lofs | mdjuarsa | UNIX for Advanced & Expert Users | 1 | 08-15-2007 10:32 PM |
| Lofs | Sowser | UNIX for Advanced & Expert Users | 7 | 12-18-2006 03:26 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Lofs
Hi gang!
I've just tried to build a Loopback FS, and I used the option "ro" not knowing what it was meaning, as in the example I have for this feature... Code:
mount -F lofs -o ro /my_rep /my_image_rep I tried to chmod it with no success (loggued as root) How can I manage to remove it? (and next time I will create it without the "ro" option) Thanx |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
Code:
mount: /myrep/: Device busy this is what is in my mnttab: Code:
/myrep /my_image_rep lofs ro,suid,dev=154000f 1102611141 Last edited by Lomic; 12-10-2004 at 06:05 AM. |
|
||||
|
Maybe somebody is using a file on /myrep (or you or somebody else have a pwd of somewhere under /myrep).
Try fuser /myrep to see what processes are using the fs. If you don't have fuser try lsof. With fuser you can supply the -k option to send a SIGKILL out to any processes using the mount (e.g. fuser -k /myrep) - be careful though - you could boot people off the system (yourself included) and cause file corruption if somebody is for example editing a file, leave child processes, not cleanup after itself, etc, etc, etc. Once you get a "clean" output from fuser /myrep that nobody is using the mount, remount it rw. Cheers ZB |
|
|||
|
Quote:
Quote:
Quote:
If I understand correctly, I should manage to get rid of those processes in order to umount (so I have to stop the software which run those processes... let's see if it is possible) thanx again for helping |
|
|||
|
now it is ok, no more processes running and nobody accessing /myrep
I tried: mount -F lofs -o rw /myrep /my_image_rep -> Device busy (but nothing in fuser or lsof) I tried several ways being at the same level than my_image_rep, being one rep higher and doing it like mount -F lofs -o rw /myrep rep_higher/my_image_rep obtaining results like mount: mount-point my_image_rep is not an absolute pathname. mount: mount-point /my_image_rep does not exist. and also every way of umount including with the -f option on what is in my mnttab (concerning /myrep) I think I will end to rebuild the package I try to deploy using another directory than the one actually declared (my_image_rep) but it will not fix the ro state of the actual my_rep_image in which I also have other packages installed (meaning that the other softwares will have troubles) one colleague of mines suggest me to edit mnttab directly and to change ro in rw, any chance to succeed that way? |
|
||||
|
Have you umounted before trying to mount again? You could add the remount option as I showed earlier.
Otherwise if the box isn't critical - just reboot the thing that'll unmount it (as long as it isnt in /etc/vfstab)! Cheers ZB |
||||
| Google UNIX.COM |