[flalug] filesystem identification

From: Eben King (eben1@tampabay.rr.com)
Date: Sat Oct 16 2004 - 11:11:19 EDT


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 -

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?           [TOFU := text oben,
A: Top-posting.                                       followup unten]
Q: What is the most annoying thing on usenet?        -- Daniel Jensen



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:19:09 EDT