On Sat, Jun 25, 2011 at 7:14 PM, Lamar Owen lowen@pari.edu wrote:
On Saturday, June 25, 2011 07:46:01 AM Rudi Ahlers wrote:
Does anyone know how to determine which file system a disk was formatted with, if fdisk -l doesn't show it?
blkid -s TYPE
On a C5 box here: [root@backup670 ~]# blkid -s TYPE /dev/mapper/vg_backup670-lv_root: TYPE="ext3" /dev/md1: TYPE="swap" /dev/md0: TYPE="ext3" /dev/sdb2: TYPE="swap" /dev/sdb1: TYPE="ext3" /dev/sda2: TYPE="swap" /dev/sda1: TYPE="ext3" /dev/hda: TYPE="iso9660" /dev/vg_backup670/lv_root: TYPE="ext3" /dev/mapper/pachy--mirror-home: TYPE="xfs" /dev/vg_opt/lv_pachy: TYPE="ext4" /dev/pachy-mirror/home: TYPE="xfs" /dev/mapper/vg_opt-lv_pachy: TYPE="ext4" [root@backup670 ~]#
On a RHEL 6.1 box here: [root@www ~]# blkid -s TYPE /dev/sdd1: TYPE="LVM2_member" /dev/sde1: TYPE="LVM2_member" /dev/sdk1: TYPE="LVM2_member" /dev/sdn1: TYPE="xfs" /dev/sdg1: TYPE="ext4" /dev/sds1: TYPE="LVM2_member" /dev/sdy1: TYPE="LVM2_member" /dev/sdaa1: TYPE="ext4" /dev/sdag1: TYPE="linux_raid_member" /dev/sdx1: TYPE="LVM2_member" /dev/sdaf1: TYPE="linux_raid_member" /dev/sdad1: TYPE="ext3" /dev/sdah1: TYPE="ext4" /dev/sdah2: TYPE="LVM2_member" /dev/mapper/vg_www-lv_root: TYPE="ext4" /dev/mapper/vg_www-lv_swap: TYPE="swap" /dev/md127: TYPE="ext3" /dev/mapper/vg_bak2-lv_lobak: TYPE="ext4" [root@www ~]#
Useful stuff. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
wow, this is quite a neat trick!
But, it didn't help me much:
[root@HP-DL360 ~]# blkid -s TYPE /dev/mapper/LVM-swap: TYPE="swap" /dev/mapper/LVM-root: TYPE="ext3" /dev/cciss/c0d0p1: TYPE="ext3" /dev/LVM/root: TYPE="ext3" /dev/LVM/swap: TYPE="swap" /dev/mapper/LVM-data: TYPE="ext3" [root@HP-DL360 ~]# fdisk -l /dev/sda [root@HP-DL360 ~]#
Which filesystems can this command recognize? I checked the MAN page, but couldn't find a list of filesystems that it's familiar with