LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-28-2012, 10:13 AM   #1
chinabenjamin66
Member
 
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73

Rep: Reputation: Disabled
What is the difference between /etc/fstab and /etc/mtab?


Hi guys(girls),

I run across a problem when mounting a block device to a mount point.
I found that there is no relative item about this block device in /etc/fstab, and umounted this block device in case it was really mounted before.
but no matter how many time I have tried to mount this block device to a point, it always prompts it is mounted or the point is busy.
any help and explanation will be appreicated.
 
Old 09-28-2012, 10:38 AM   #2
pampers
LQ Newbie
 
Registered: Sep 2012
Location: Chile
Distribution: Slackware Current - RedHat Enterprise
Posts: 16

Rep: Reputation: Disabled
/etc/mtab represent currently mounted filesystems

/etc/fstab represent those configured to be mounted by the installation or sysadmin.

Now, the block device you're talking about is a fuse filesystem? when the system answer that the device is already mounted is because it is there mounted...now, you cannot umount a partition or device if the following is happening:

* /dev/sdb1 is mounted in /dev/media/me (for example) and you are in a shell inside /dev/media/me and try to umount /dev/media/me or /dev/sdb1 the system will answer you that the device is busy, and wouldn't allow you to umount it. The same thing will happen if you or someone else on your network have some file opened and the file belongs to /dev/sdb1 that is mounted on /dev/media/me, if you or that someone that have the file opened through the network don't close the file, you cannot umount /dev/sdb1

The partition to be able to be umounted need to not be busy, and busy means having some file that belongs to that partition opened, or having your user inside that partition.
 
1 members found this post helpful.
Old 09-28-2012, 10:44 PM   #3
chinabenjamin66
Member
 
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pampers View Post
/etc/mtab represent currently mounted filesystems

/etc/fstab represent those configured to be mounted by the installation or sysadmin.

Now, the block device you're talking about is a fuse filesystem? when the system answer that the device is already mounted is because it is there mounted...now, you cannot umount a partition or device if the following is happening:

* /dev/sdb1 is mounted in /dev/media/me (for example) and you are in a shell inside /dev/media/me and try to umount /dev/media/me or /dev/sdb1 the system will answer you that the device is busy, and wouldn't allow you to umount it. The same thing will happen if you or someone else on your network have some file opened and the file belongs to /dev/sdb1 that is mounted on /dev/media/me, if you or that someone that have the file opened through the network don't close the file, you cannot umount /dev/sdb1

The partition to be able to be umounted need to not be busy, and busy means having some file that belongs to that partition opened, or having your user inside that partition.
At first, your reply is very useful for me.
I hope we can continue with this topic, the Linux I used is a embeded Linux system. How to check whether the block device is a fuse filesystem or not?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Difference between mtab and fstab raghavendra.eranki Linux - Newbie 5 01-17-2012 06:37 AM
server startup error: "cannot find / in /etc/fstab or /etc/mtab"; /etc/fstab readonly knee-co Linux - Newbie 8 09-12-2010 05:37 PM
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
what is the difference between /etc/fstab and /etc/mtab ? Xavius Linux - Newbie 2 03-27-2004 08:15 AM


All times are GMT -5. The time now is 04:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration