LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounted drives content deletion (https://www.linuxquestions.org/questions/linux-newbie-8/mounted-drives-content-deletion-731658/)

kais1 06-09-2009 08:52 AM

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

Simon Bridge 06-09-2009 09:10 AM

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.

kais1 06-09-2009 09:21 AM

Quote:

Originally Posted by Simon Bridge (Post 3567971)
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

Simon Bridge 06-09-2009 09:32 PM

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.


All times are GMT -5. The time now is 02:36 AM.