Re: How to Calculate File System Type

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

 



I'm sorry, but it would be a big help if you could phrase your
question properly. I guess you could look at /etc/fstab if you want a
list of all partitions with filesystem types, mounted or not.

HTH,
K.

On Wed, 23 Feb 2005 10:12:27 +0530, Sabarinathan
<sabarinathan@xxxxxxxxxx> wrote:
>  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 ----- 
>  
>  
> From: sabarinathan@xxxxxxxxxx 
> To: kernelnewbies@xxxxxxxxxxxx 
> 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 


-- 
There are things known and things unknown, in between lie the Doors

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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