LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-28-2006, 02:56 AM   #1
Hondro
Member
 
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware-12.2
Posts: 102

Rep: Reputation: 15
How to know partition file system type?


Hi, in /etc/fstab partition types are defined (reiserfs, ext3, ext2). If partition is not defined in /etc/fstab i mount it like this:

mount /dev/hda3 /mnt/hd/

And then i do not know which type of file system is in that partition.
So, how to know partition file system type when it is mounted or before mounting?
 
Old 11-28-2006, 03:05 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
mount will check the filesystem type so no nneed to worry before hand. after it's mounted, just check the output of the mount command itself.
 
Old 11-28-2006, 03:08 AM   #3
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
When you issue the mount command you're supposed to give the file system type as well, although it often works if you don't. So to mount something you'd use ie

mount -t reiserfs /dev/hda2 /mnt/hda2

The partition types are listed in man mount.
 
Old 11-28-2006, 03:15 AM   #4
Hondro
Member
 
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware-12.2
Posts: 102

Original Poster
Rep: Reputation: 15
when i try to mount partitions it does not show any output,
"check the output of the mount command itself" how to do that?

well i have founded

just wrote

#mount

thats it

Last edited by Hondro; 11-28-2006 at 03:24 AM.
 
Old 11-28-2006, 03:28 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
Once a partition is mounted just type 'mount' without any arguments and it will tell you what kinf of filesystem it is.

However, you can find out without mounting it by using the 'blkid' command, either alone or specifying which partition: 'blkid /dev/hd?'
 
  


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
Determining file system type? Sigkill(9) Linux - General 7 09-22-2006 02:11 AM
What type of file system? ntfs, ext2fs, etc. halfpower Debian 4 09-04-2005 10:59 AM
How do I determine file system type? lowpro2k3 Linux - General 5 07-09-2005 03:40 PM
File System Type NintendoFan Linux - Hardware 2 11-04-2004 12:39 PM
File system type problem vtd Linux - General 1 04-26-2002 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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