Re: [SLUG] filesystem identification

From: steve szmidt (steve@szmidt.org)
Date: Sat Oct 16 2004 - 17:05:46 EDT


On Saturday 16 October 2004 11:12 am, Eben King wrote:
> OK, how does one identify the filesystem on a device? "file" says:
>
> [root@pc root]# file - < /dev/sda
> standard input: x86 boot sector
>
> (/dev/sda is one of these, 0.5 GB: http://kasercorp.com/usbjumbo.cfm )
>
> I successfully mounted it as ext2, but just because I happened to *know*
> that was what it was. In general, what should I do? How about an offset
> that'll skip ahead straight to the filesystem?
>
> offset in 1K blocks --vvv
> dd if=/dev/sda bs=1024 skip=xxx | file -

Well my first answer was use fdisk. It will list the filesystems. But that's
not entirely true. It only recognizes types of partitions.

You can however recognize all supported filesystems using 'fsck -N /dev/hda1'.

-- 

Steve Szmidt

"They that would give up essential liberty for temporary safety deserve neither liberty nor safety." Benjamin Franklin ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:55:34 EDT