* how to identify filesystem type
@ 2004-08-19 3:22 Pankaj Agarwal
2004-08-19 8:13 ` ippi
0 siblings, 1 reply; 5+ messages in thread
From: Pankaj Agarwal @ 2004-08-19 3:22 UTC (permalink / raw)
To: linux-newbie
Hi,
I need your help, in understanding filesystems. Kindly let me know how to
identify the filesystem in an image file or block device.
thanks in advance and regards,
Pankaj Agarwal
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to identify filesystem type
2004-08-19 3:22 how to identify filesystem type Pankaj Agarwal
@ 2004-08-19 8:13 ` ippi
2004-08-19 9:06 ` ippi
2004-08-19 9:07 ` Pankaj Agarwal
0 siblings, 2 replies; 5+ messages in thread
From: ippi @ 2004-08-19 8:13 UTC (permalink / raw)
To: Pankaj Agarwal, linux-newbie
--- Pankaj Agarwal <pankaj@pnpexports.com> wrote:
> Kindly let me know how to
> identify the filesystem in an image file or block
> device.
>
Hi Pankaj,
if you've got an image file called somefs.img you
should be able to do:
file somefs.img
If you've got a block device - say /dev/hda1 - then
you'll need to do the following (probably as root).
Be careful to type this command correctly or you
could be in a world of pain
dd if=/dev/hda1 bs=1k count=5 | file -
A
DO NOT USE dd WITH ANYTHING UNDER /dev WHILE RUNNING
AS ROOT UNLESS YOU REALLY, REALLY HAVE TO.
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to identify filesystem type
2004-08-19 8:13 ` ippi
@ 2004-08-19 9:06 ` ippi
2004-08-19 9:07 ` Pankaj Agarwal
1 sibling, 0 replies; 5+ messages in thread
From: ippi @ 2004-08-19 9:06 UTC (permalink / raw)
To: linux-newbie
Sorry for the typo, the command to check a block
device such as /dev/hda1 is:
dd if=/dev/hda1 bs=1k count=5 | file -
Regards,
ippi
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to identify filesystem type
2004-08-19 8:13 ` ippi
2004-08-19 9:06 ` ippi
@ 2004-08-19 9:07 ` Pankaj Agarwal
2004-08-19 9:48 ` ippi
1 sibling, 1 reply; 5+ messages in thread
From: Pankaj Agarwal @ 2004-08-19 9:07 UTC (permalink / raw)
To: ippi, linux-newbie
hi,
it doesn't provide the information seeked....i am enclosing the output
below...
# file /mnt/hda5/hdstg2.img
/mnt/hda5/hdstg2.img: data
# dd if=/dev/hdc1 bs=1k count=5 | file -
standard input: data
5+0 records in
4+0 records out
# file -s /dev/hdc{,1,2,3,4,5,6,7,8,9,10}
/dev/hdc: x86 boot sector
/dev/hdc1: data
/dev/hdc2: x86 boot sector, extended partition table
/dev/hdc3: empty
/dev/hdc4: empty
/dev/hdc5: data
/dev/hdc6: data
/dev/hdc7: data
/dev/hdc8: Linux/i386 swap file version 1 (4K pages) size 63999 pages
/dev/hdc9: data
/dev/hdc10: empty
kindly suggest more about it...
thanks, Pankaj
----- Original Message -----
From: "ippi" <heynumbertwo@yahoo.com>
To: "Pankaj Agarwal" <pankaj@pnpexports.com>; <linux-newbie@vger.kernel.org>
Sent: Thursday, August 19, 2004 1:43 PM
Subject: Re: how to identify filesystem type
>
> --- Pankaj Agarwal <pankaj@pnpexports.com> wrote:
>
> > Kindly let me know how to
> > identify the filesystem in an image file or block
> > device.
> >
>
> Hi Pankaj,
>
> if you've got an image file called somefs.img you
> should be able to do:
>
> file somefs.img
>
> If you've got a block device - say /dev/hda1 - then
> you'll need to do the following (probably as root).
> Be careful to type this command correctly or you
> could be in a world of pain
>
> dd if=/dev/hda1 bs=1k count=5 | file -
>
> A
> DO NOT USE dd WITH ANYTHING UNDER /dev WHILE RUNNING
> AS ROOT UNLESS YOU REALLY, REALLY HAVE TO.
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.
> http://promotions.yahoo.com/new_mail
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to identify filesystem type
2004-08-19 9:07 ` Pankaj Agarwal
@ 2004-08-19 9:48 ` ippi
0 siblings, 0 replies; 5+ messages in thread
From: ippi @ 2004-08-19 9:48 UTC (permalink / raw)
To: Pankaj Agarwal, linux-newbie
I see what you mean. I created a reiserfs filesystem
and file only recognised it as data. If the block
devices are all hard disk partitions you should
try fdisk:
fdisk -l
Also, if you're interested in the filesystems of
block devices that are already mounted, then just
type:
mount
I don't know what is on the image /mnt/hda5/hdstg2.img
but you could try to mount it and see if it's
recognised. Just do the following:
mkdir mp
mount -v -o loop /mnt/hda5/hdstg2.img mp
I take it you are sure that there are filesystems on
these devices and that they are not corrupted!
--- Pankaj Agarwal <pankaj@pnpexports.com> wrote:
> hi,
>
> it doesn't provide the information seeked....i am
> enclosing the output
> below...
> # file /mnt/hda5/hdstg2.img
>
> /mnt/hda5/hdstg2.img: data
>
> # dd if=/dev/hdc1 bs=1k count=5 | file -
>
> standard input: data
>
> 5+0 records in
>
> 4+0 records out
>
> # file -s /dev/hdc{,1,2,3,4,5,6,7,8,9,10}
>
> /dev/hdc: x86 boot sector
>
> /dev/hdc1: data
>
> /dev/hdc2: x86 boot sector, extended partition table
>
> /dev/hdc3: empty
>
> /dev/hdc4: empty
>
> /dev/hdc5: data
>
> /dev/hdc6: data
>
> /dev/hdc7: data
>
> /dev/hdc8: Linux/i386 swap file version 1 (4K pages)
> size 63999 pages
>
> /dev/hdc9: data
>
> /dev/hdc10: empty
>
> kindly suggest more about it...
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-08-19 9:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-19 3:22 how to identify filesystem type Pankaj Agarwal
2004-08-19 8:13 ` ippi
2004-08-19 9:06 ` ippi
2004-08-19 9:07 ` Pankaj Agarwal
2004-08-19 9:48 ` ippi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox