LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-09-2009, 08:52 AM   #1
kais1
Member
 
Registered: Dec 2008
Posts: 61

Rep: Reputation: 17
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
 
Old 06-09-2009, 09:10 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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.
 
Old 06-09-2009, 09:21 AM   #3
kais1
Member
 
Registered: Dec 2008
Posts: 61

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by Simon Bridge View Post
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
 
Old 06-09-2009, 09:32 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounted drives yusufs Linux - General 1 01-27-2008 02:23 AM
Mounted Drives Pandemic187 Ubuntu 3 03-26-2007 10:19 PM
Mounted drives?? Psyco26 Slackware 4 12-18-2006 04:22 PM
Mounted drives doesn't appear sdr_ar Ubuntu 7 11-10-2005 08:12 AM
Aplication used to view fat32 drives content Born_dead Linux - Software 2 10-03-2005 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration