You are all tell about the mounted partition only, but my question is
how to get the mounted and unmounted partition with file system type
like fdisk output using /proc
For example :
Disk /dev/hdb: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Â
 Device Boot Start End Blocks Id System
/dev/hdb1ÂÂ *ÂÂÂÂÂÂÂÂÂÂ 1ÂÂÂÂÂÂÂ 2295ÂÂÂ 18434556ÂÂ 83Â Linux
/dev/hdb2ÂÂÂÂÂÂÂÂÂÂÂ 2296ÂÂÂÂÂÂÂ 2397ÂÂÂÂÂ 819315ÂÂ 82Â Linux swap
/dev/hdb3ÂÂÂÂÂÂÂÂÂÂÂ 2398ÂÂÂÂÂÂÂ 2499ÂÂÂÂÂ 819315ÂÂ 82Â Linux swap
/dev/hdb4 2500 4870 19045057+ f W95 Ext'd (LBA)
/dev/hdb5ÂÂÂÂÂÂÂÂÂÂÂ 3584ÂÂÂÂÂÂÂ 3838ÂÂÂÂ 2048256ÂÂ 83Â Linux
/dev/hdb6ÂÂÂÂÂÂÂÂÂÂÂ 3839ÂÂÂÂÂÂÂ 4870ÂÂÂÂ 8289508+Â 83Â Linux
/dev/hdb7ÂÂÂÂÂÂÂÂÂÂÂ 2500ÂÂÂÂÂÂÂ 3136ÂÂÂÂ 5116639+Â 83Â Linux
Thanks
shafa.hidee wrote:
use /proc/mounts
----- Original Message -----
Sent:
Monday, February 21, 2005 2:55 PM
Subject:
How to Calculate File System Type
Dear All
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.
Regards
Sabarinathan.A
Registered Linux User: #376656
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: Â Â Â http://mail.nl.linux.org/kernelnewbies/
FAQ: Â Â Â Â Â http://kernelnewbies.org/faq/
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
--
Regards
Sabarinathan.A
Registered Linux User: #376656
|