Re: How to Calculate File System Type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Next time could you start a new thread instead of replying to an
existing one? Right now you're fscking up the threading, this is how it
looks like in a Real Mailer that does understand threading (aka mutt):

 257     Feb 20 Rahul Iyer      (  21) Page Replacement in 2.6.10
 258     Feb 21 A.M. Fradley    (  39) +*>
 259 N   Feb 21 Sabarinathan    (  13)   +->How to Calculate File System Type

For an explanation, see
http://www.arm.linux.org.uk/armlinux/mletiquette.php#e2

On Mon, Feb 21, 2005 at 02:55:36PM +0530, Sabarinathan wrote:
> How to find out the file system types (ext2, fat and etc) using /proc file 
> system, Proc file system already gave the partition information and mounted 
> file systems but it is not given the file system type, please anybody tell 
> me how to check the file system type of harddisk partitions using /proc. 

/proc/mounts tells you the filesystem type of a mounted partition:

erik@arthur:~ >cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,noatime 0 0
proc /proc proc rw,nodiratime 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/hda5 /boot ext3 rw,noatime 0 0
/dev/hda8 /home reiserfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0

The only way to figure out what kind of filesystem a non-mounted
partition contains, is to find for clues on that partition. That's
exactly what the "mount" program does when you don't tell it the
filesystem type (i.e.: when you omit the "-t" flag).


Erik

-- 
Erik Mouw
J.A.K.Mouw@xxxxxxxxxxxxxx  mouw@xxxxxxxxxxxx

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux