File System type on (LVM) partition
hi,
the different answers of my previously sent question had nothing to to
with what i expected,
so i do it once again :
is there a way to know the file system type installed on a partition
(wich could be of LVM type or not)
tanx for your help.
julien,
4 Atix.
Quoted 3 lines · you
is there a way to know the file system type installed on a partition
(wich could be of LVM type or not)
tanx for your help.
[root@ialinux /root]# mount/dev/md0 on / type ext2 (rw)
none on /proc type proc (rw)/dev/md1 on /boot type ext2 (rw)/dev/md3 on /ud type ext2 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)/dev/sdc2 on /dosfs type jfs (rw)
[root@ialinux /root]#
--
Moi j'aime Windows 2000 car cela me rappele mes petits cousins :
"Benoit, on a rien fait et c'est cassé"
Quoted 4 lines · Benoit SERRA
Quoted 3 lines · you
is there a way to know the file system type installed on a partition
(wich could be of LVM type or not)
tanx for your help.
Either run 'mount', as suggested, or do
# file -sL /dev/hda1
Signature · 6 lines
Martin The search for the perfect martini is a fraud. The perfect martini is a belt of gin from the bottle; anything else is the decadent trappings of civilization. -- T.K.
Quoted 2 lines · Previously Julien Baboud
is there a way to know the file system type installed on a partition
(wich could be of LVM type or not)
You completely missed our point. LVM is *not* a filesystem. It is a layer you can put on top of physical storage, and on top of LVM you can create logical volumes which contain filesystems.
Now if your real question is: how can you check if a block device (ie a storage device) contains a PV (Physical Volume, the lowest layer in a LVM setup) I suspect there is some magic value on the disk you could check for.
Someone should probably write some file(1) magic for it :)
Wichert.
Signature · 4 lines
_________________________________________________________________ / Nothing is fool-proof to a sufficiently talented fool \ | [email protected] http://www.liacs.nl/~wichert/ | | 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0 2805 3CB8 9250 2FA3 BC2D |
I believe the stand ext2 is 83 and lvm is 8e so one could check for those values
Pierre
Quoted 19 lines · --- Wichert Akkerman
Quoted 1 line · Previously Julien Baboud
is there a way to know the file system type
installed on a partition
Quoted 1 line
(wich could be of LVM type or not)
You completely missed our point. LVM is *not* a filesystem. It is a layer
you can put on top of physical storage, and on top of LVM you can create
logical volumes which contain filesystems.Now if your real question is: how can you check if a block device (ie
a storage device) contains a PV (Physical Volume, the lowest layer in
a LVM setup) I suspect there is some magic value on the disk you could
check for.
Quoted 8 lines
Someone should probably write some file(1) magic for it :)
Wichert.
_________________________________________________________________
Quoted 11 lines
/ Nothing is fool-proof to a sufficiently
talented fool \
| [email protected]
http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0 2805 3CB8 9250 2FA3 BC2D |
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at
http://www.sistina.com/lvm/Pages/howto.html
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
Quoted 2 lines · Previously Pierre Lamb
I believe the stand ext2 is 83 and lvm is 8e so one could check for those values
That's a really poor check. 83 is `Linux Native', which isn't limited to ext2 at all. My LVM PV happens to be type 83 as well actually.
Wichert.
Signature · 4 lines
_________________________________________________________________ / Nothing is fool-proof to a sufficiently talented fool \ | [email protected] http://www.liacs.nl/~wichert/ | | 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0 2805 3CB8 9250 2FA3 BC2D |