Re: How to determine a file system type?
- From: Unruh <unruh-spam@xxxxxxxxxxxxxx>
- Date: 14 May 2006 18:21:55 GMT
Dances With Crows <danSPANceswitTRAPhcrows@xxxxxxxxx> writes:
On 14 May 2006 09:57:24 -0700, nepenou staggered into the Black Sun and
said:
I need to determine the file system type [of a partition] [without]
trying to mount it.
Why? Details Count.
My idea is to find the FS magic number. The problem is: I don't know
the offset to the magic number position on the disk.
The magic numbers are in different places in different filesystems. If
I were you, I'd start by downloading the util-linux source tarball and
looking at the source for mount, specifically mount_guess_fstype.c .
That should get you started. HTH,
Or fdisk -l /dev/hda
(or whatever the disk is)
.
- Follow-Ups:
- Re: How to determine a file system type?
- From: Dances With Crows
- Re: How to determine a file system type?
- References:
- How to determine a file system type?
- From: nepenou
- Re: How to determine a file system type?
- From: Dances With Crows
- How to determine a file system type?
- Prev by Date: Re: How to determine a file system type?
- Next by Date: Re: wine for drivers?
- Previous by thread: Re: How to determine a file system type?
- Next by thread: Re: How to determine a file system type?
- Index(es):
Relevant Pages
|