Re: How to Calculate File System Type

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

 



A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

A: No.
Q: Should I include quotations after my reply?

On Wed, Feb 23, 2005 at 10:12:27AM +0530, Sabarinathan 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

Like I explained before, you can NOT get information about filesystem
type from an unmounted filesystem. The kernel doesn't even *care*
what's on that partition. It's a userland task to figure out what's on
it and to tell the kernel what to do with it.

> 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

The partition Id in the partition table has no relation with the
contents of the partition. Just try it: change the type of /dev/hdb1 to
01 (DOS 12-bit FAT) and you'll see that you can still mount it.


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