LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-22-2010, 11:10 AM   #1
computergeek7
LQ Newbie
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 21

Rep: Reputation: 15
Filesystem type questions


1.The first question I have is...I umounted my /data directory, and created a file using the command echo myname >/data/name.
Then when I went to re-mount the /data filesytem and tried to cat the name file again it is no longer there. Where is the file located now or where does a file from an umounted filesytem go when you re-mount it?



Any help is greatly appreciated! Thanks!

Last edited by computergeek7; 04-22-2010 at 11:20 AM.
 
Old 04-22-2010, 11:12 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Duplicate thread reported. Original is http://www.linuxquestions.org/questi...stions-803541/
 
Old 04-22-2010, 11:16 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Any files in a directory are inaccessible when the directory is used as a Mount point; they will be accessible again when the file system is unmounted.

It is better to create one thread per topic because it gets confusing when more than one question is discussed in the same thread.

EDIT: oops! I meant to reply in the original thread.

Last edited by catkin; 04-22-2010 at 11:17 AM.
 
Old 04-22-2010, 11:23 AM   #4
computergeek7
LQ Newbie
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 15
k thanks...so your saying that the reason I can not cat the file is because it is only accessible when the filesystem is unmounted? If so, is this because I created the file when the /data filesystem was unmounted?

Last edited by computergeek7; 04-22-2010 at 11:25 AM.
 
Old 04-22-2010, 11:26 AM   #5
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,901

Rep: Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025
Think of it like writing on a piece of paper and then putting another sheet of paper on top of it. Where'd the writing go?
 
Old 04-22-2010, 11:30 AM   #6
computergeek7
LQ Newbie
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 15
okay I see what your saying thanks...but is there any way to access that file without having to ummount the /data filesystem again?
 
Old 04-22-2010, 12:20 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Think of "mount" as "connecting". You connect a filesystem to the main tree in order to be able to see it. What is less intuitive is that the second mount (connection) hides the first one. In effect, it is as if the first connection was broken---except that it automatically reappears once the second connection is broken.

If something is hidden by a later mount, all you have to do to access it is mount it somewhere else.

Obviously, all of this creates infinite opportunities for confusion and even loss of data---be careful!!!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Filesystem type questions computergeek7 General 2 04-22-2010 11:19 AM
mandriva dual boot filesystem type unknown,partition type 0x7 llearner Linux - Newbie 2 01-24-2010 02:03 PM
Filesystem type is ext2fs, partition type 0x83 TONYSUCCAR Linux - Enterprise 2 08-13-2009 02:20 AM
filesystem type unknown, partition type 0x7 crazyface_juicebox Linux - General 1 02-11-2007 11:50 PM
root (hd 0,0)Filesystem type unknown, partition type 0x7chainloader +1 ece30675 Linux - Distributions 5 07-20-2004 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:33 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