Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-09-2009, 08:52 AM
|
#1
|
|
Member
Registered: Dec 2008
Posts: 61
Rep:
|
mounted drives content deletion
Dear all,
We have the below file system in the server
/dev/dsk/c0t2d0s0 49G 42G 6.6G 87% /trfs/appl
We have one more file system monuted in the server like below
tabsapps01:/trfs/appl/mitek/1013/j2ee 134G 59G 74G 45%
/trfs/appl/mitek/1013/j2ee
The mounted file system is /trfs/appl/mitek/1013/j2ee.
The content of the file system /trfs/appl/mitek/1013/j2ee and /trfs/appl are the same ..
Now when am trying to delete some files from /trfs/appl/mitek/1013/j2ee (from the local server) , cursor pointing to /trfs/appl/mitek/1013/j2ee (mounted file system)
How can I delete the files from /trfs/appl/mitek/1013/j2ee (local server)
Do I have to mount it and delete the files from the local system
Kai
|
|
|
|
06-09-2009, 09:10 AM
|
#2
|
|
Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,209
Rep: 
|
If you want to delete files on a filesystem, then you need access to the filesystem and permission to write to it. The usual method is, indeed, to mount the filesystem someplace with the appropriate permissions.
There are a range of effective methods for deleting files without mounting. These include electromagnets, angle-grinders, and, an oldy but a goody, spilled coffee.
Since you must know all this already - I am guessing that something is stopping you from deleting these files the way you normally expect to do it. So, to help you, I need to know what you'd normally do, and what happens instead.
|
|
|
|
06-09-2009, 09:21 AM
|
#3
|
|
Member
Registered: Dec 2008
Posts: 61
Original Poster
Rep:
|
Quote:
Originally Posted by Simon Bridge
If you want to delete files on a filesystem, then you need access to the filesystem and permission to write to it. The usual method is, indeed, to mount the filesystem someplace with the appropriate permissions.
There are a range of effective methods for deleting files without mounting. These include electromagnets, angle-grinders, and, an oldy but a goody, spilled coffee.
Since you must know all this already - I am guessing that something is stopping you from deleting these files the way you normally expect to do it. So, to help you, I need to know what you'd normally do, and what happens instead.
|
Thanks Simon,
Since the local file system and the mounted file system has the same name ..I need to delete files from the local file systems.When am navigating to the local file system, it navigates to the mounted file system.. so deletion of the file in mounted file system leads to deletion of files in the local file system as both the file system bears the same name
Hope it is clear
Kai
|
|
|
|
06-09-2009, 09:32 PM
|
#4
|
|
Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,209
Rep: 
|
The name of the file system makes no difference - it is the mountpoint which is important.
Note - you can mount a file system to a directory which already contains files without disturbing those files. Nothing actually gets written to that directory because the mounted filesystem is in another physical location.
eg - if I have a remote fs, I could mount it at /home - which will replace my home directory. I have to unmount it to get my local home directory back. OR I could mount it at /mnt/home, perhaps if I want to move files between the local and remote homes.
Note that in neither of these situations does deleting a file on the remote system lead to deleting the file from the local one.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:35 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|