LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-13-2008, 03:26 AM   #1
jestinjoy
Member
 
Registered: May 2004
Location: India
Distribution: Ubuntu 9.04, Debian Lenny
Posts: 121

Rep: Reputation: 22
to find which filesystem I am using?


Is there any command in linux which displays the filesystem I am using?
 
Old 07-13-2008, 03:31 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Try "df -T"
 
Old 07-13-2008, 04:28 AM   #3
MONKEYJUDO
LQ Newbie
 
Registered: Jul 2008
Posts: 8

Rep: Reputation: 0
I think you are wanting to know what version of linux you are using

cat /proc/version
 
Old 07-13-2008, 06:45 AM   #4
rikijpn
Member
 
Registered: Jun 2007
Location: Japan
Distribution: Debian lenny, DSL, Solaris 10
Posts: 157

Rep: Reputation: 33
type
Code:
mount |grep /\
there is a space after the \
the filesystem is the string next to "type".
 
Old 07-13-2008, 03:01 PM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,052

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
Quote:
Originally Posted by rikijpn View Post
type
Code:
mount |grep /\
there is a space after the \
the filesystem is the string next to "type".
Maybe you are being too clever for your own (or the OP's) good (depending on the unclear specification issued by the OP).

This does work if by
Quote:
command in linux which displays the filesystem I am using
the OP meant "command in linux which displays the filesystem for my / partition. If he has several partitions, it only shows the filesystem for the root partition, which may not be what is wanted.
 
Old 07-14-2008, 02:08 AM   #6
rikijpn
Member
 
Registered: Jun 2007
Location: Japan
Distribution: Debian lenny, DSL, Solaris 10
Posts: 157

Rep: Reputation: 33
Quote:
Originally Posted by salasi View Post
This does work if by the OP meant "command in linux which displays the filesystem for my / partition. If he has several partitions, it only shows the filesystem for the root partition, which may not be what is wanted.
You are right. This may, as well as may not, be what he was looking for.
I just assumed if he had many partitions, he probably searched about how to check the partitions, and where are they mounted before booting the computer. So I thought maybe an easier command (of course for an easier problem) would be a good answer.
Well, I should explain myself better.
"mount |grep \ " will just return information about the root partition. If you have your home directory, etc, mounted in other partitions, then you should see syg00's answer.

I'll try to give more thought to my answers in the future. Thanks for the advice salasi.
 
Old 07-14-2008, 07:17 AM   #7
kdrlx
Member
 
Registered: Feb 2006
Distribution: Ubuntu Hardy Heron
Posts: 130

Rep: Reputation: 16
"Is there any command in linux which displays the filesystem I am using?"

File systems you are using --

sudo mount
 
  


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
Find out about my drive 's filesystem ufmale Linux - Hardware 3 06-29-2007 05:05 AM
hfs: unable to find HFS+ superblock VFS: Can't find ext3 filesystem on dev sdb. macroron Linux - Hardware 3 11-20-2006 10:50 PM
how to find out which is the underlying filesystem marozsas Linux - Software 11 07-19-2006 09:03 PM
Couldn't find matching filesystem ashesh Linux - General 2 05-23-2004 02:18 AM
find the filesystem on device? udayan Programming 2 09-26-2003 01:58 AM


All times are GMT -5. The time now is 06:47 AM.

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