Re: How to determine a file system type?



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)

.



Relevant Pages

  • Re: How to determine a file system type?
    ... the offset to the magic number position on the disk. ... I'd start by downloading the util-linux source tarball and ... looking at the source for mount, ...
    (comp.os.linux.misc)
  • SUMMARY: Creating bare-metal recovery disks
    ... Copy system disk ... To create an ADVFS root and /usr partition, ... Next you are going to need to make the following mount points: ... mkdir /rootclone ...
    (Tru64-UNIX-Managers)
  • Re: lenny boot problem
    ... ramdisk: couldn't find valid ram disk image starting at 0 ... Kernel Panic - not syncing: VFS: unable to mount root FS on unknown ... Is /etc/fstab so important if booting with CD rescue mode? ... Do you boot directly into Lilo or do you use another bootloader that starts Lilo? ...
    (Debian-User)
  • Re: having trouble mounting disk image on loopback device
    ... a dd image taken from a physical disk. ... Therefore, to mount each partition, I used these commands: ... mount command will not suffice...For that matter, ... The device must contain a filesystem recognizable ...
    (comp.os.linux.misc)
  • Re: NFS mounts not largefiles by default?
    ... > That's simply because there is no such mount option for nfs filesystems. ... >>up several terminal sessions on the console which appeared to be hung ... three Sun Rays, and I don't normally use its console, just the Rays. ... directories are on a separate disk. ...
    (comp.unix.solaris)