From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clifford Beshers Subject: Re: 2 Terabyte install Date: Wed, 12 May 2004 16:22:56 -0700 Message-ID: <40A2B1D0.5040005@lindows.com> References: <409AC2FF.7080800@lindows.com> <1083917932.14089.281.camel@tribesman.namesys.com> <409BB690.6030604@namesys.com> <409BBDC9.3030809@lindows.com> <409FB387.8080804@namesys.com> <40A19147.4010703@lindows.com> <20040512034150.GS9641@schnapps.adilger.int> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------080500060606080605000103" Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <20040512034150.GS9641@schnapps.adilger.int> List-Id: To: Andreas Dilger Cc: Reiserfs mail-list , Vitaly Fertman --------------080500060606080605000103 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Andreas Dilger wrote: >> * Is there a tool to determine the type of file system on a >> partition without mounting it? >> >> > >Lots of them. "file -s /dev/foo" or if you have a newer e2fsprogs (1.33 >and newer I think) you can use "blkid [dev ...]" to tell you a bunch of >things about each device (LABEL, UUID, TYPE). > > > > Very interesting. Unfotunately, my results don't match yours. First, I had tried 'file' and found that it didn't work. I tried it again and found that it still didn't work. root@notsomarlin:~# losetup /dev/loop/0 /tmp/foo root@notsomarlin:~# mke2fs /dev/loop/0 ... root@notsomarlin:~# file /tmp/foo /tmp/foo: Linux rev 1.0 ext2 filesystem data root@notsomarlin:~# mkreiserfs /dev/loop/0 ... ReiserFS is successfully created on /dev/loop/0. root@notsomarlin:~# file /tmp/foo /tmp/foo: data Do you get other results? If not, it would seem that Debian's version of 'file' is broken, yet I checked the source code and there are magic numbers for reiserfs included. Also, I check e2fsprogs and it is at version 1.35 in Debian unstable, but no tool called 'blkid' is included. So I'm still searching for reliable methods to do this. --------------080500060606080605000103 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
Andreas Dilger wrote:
   * Is there a tool to determine the type of file system on a
     partition without mounting it?
    

Lots of them.  "file -s /dev/foo" or if you have a newer e2fsprogs (1.33
and newer I think) you can use "blkid [dev ...]" to tell you a bunch of
things about each device (LABEL, UUID, TYPE).


  
Very interesting.  Unfotunately, my results don't match yours.

First, I had tried 'file' and found that it didn't work.  I tried it again and found that it still didn't work.
root@notsomarlin:~# losetup /dev/loop/0 /tmp/foo
root@notsomarlin:~# mke2fs /dev/loop/0
...
root@notsomarlin:~# file /tmp/foo
/tmp/foo: Linux rev 1.0 ext2 filesystem data
root@notsomarlin:~# mkreiserfs /dev/loop/0
...
ReiserFS is successfully created on /dev/loop/0.
root@notsomarlin:~# file /tmp/foo
/tmp/foo: data
Do you get other results?  If not, it would seem that Debian's version of 'file' is broken, yet I checked the source code and there are magic numbers for reiserfs included.

Also, I check e2fsprogs and it is at version 1.35 in Debian unstable, but no tool called 'blkid' is included.

So I'm still searching for reliable methods to do this.
--------------080500060606080605000103--