LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-15-2009, 10:53 AM   #1
sean_lerner
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
What filesystem am I using?


Hello,

Is there a way to determine what filesystem I'm using on my linux server? Particularly, I'd like to confirm I'm using either ext2 or ext3. I'm pretty sure I'm using ext3, but how can I confirm this?

I'm using Centos.

Thanks,

Sean
 
Old 01-15-2009, 10:59 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Use this command:
Code:
mount
It will show you the filesystems you've got mounted, as well as their mount points and options.

Last edited by win32sux; 01-15-2009 at 11:00 AM.
 
Old 01-15-2009, 10:59 AM   #3
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Different partitions can use different file systems, it just requires that the kernel support modules be present for the drive to be accessible.

The easiest way is to:
Code:
$ cat /etc/fstab
It will list all of the partitions defined in the system and the file system for each.
 
Old 01-15-2009, 11:02 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Looking at /etc/fstab will show you what is supposed to be mounted at startup.

Looking at the output of mount will show you what actually is.

Last edited by win32sux; 01-15-2009 at 11:03 AM.
 
Old 01-15-2009, 11:12 AM   #5
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
What I was getting at was that sean_lerner could, at the very least, find out every file system that is defined on the server.

Yes, using the mount command will work, too. Another alternative, would be to "cat /etc/mtab".
 
Old 01-15-2009, 11:55 AM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by indienick View Post
What I was getting at was that sean_lerner could, at the very least, find out every file system that is defined on the server.
I know what you were getting at, I was simply elaborating a bit for clarity.

Quote:
Yes, using the mount command will work, too. Another alternative, would be to "cat /etc/mtab".
Yeah, or "cat /proc/mounts".
 
Old 01-15-2009, 11:40 PM   #7
sean_lerner
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Original Poster
Rep: Reputation: 0
thanks folks... very helpful
 
  


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
Filesystem? mikeshn Linux - General 1 02-03-2008 08:35 AM
Confusing USB Filesystem Problem (Can't Wipe Ext3 Filesystem) dkaplowitz Linux - Hardware 3 04-14-2007 06:30 PM
Where is my second HD on the filesystem... jesuscakes Linux - General 9 06-01-2006 11:31 PM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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