Vfat on top of LVM
Hello,
Unable to create vfat on top of lvm. I want to implement vfat(specifically) for windows users on top of lvm in centos6 [root@s1 /]# lvscan ACTIVE '/dev/myvg/mylv' [608.00 MiB] inherit ACTIVE '/dev/myvg/mylv2' [1.00 GiB] inherit ACTIVE '/dev/vg_s1/lvroot' [3.91 GiB] inherit ACTIVE '/dev/vg_s1/lvswap' [1000.00 MiB] inherit ACTIVE '/dev/vg_s1/lvhome' [52.00 MiB] inherit [root@s1 /]# lvdisplay /dev/myvg/mylv2 --- Logical volume --- LV Name /dev/myvg/mylv2 VG Name myvg LV UUID vRmL9J-CPR8-BxFX-fNqI-LQye-32TU-hxqQam LV Write Access read/write LV Status available # open 0 LV Size 1.00 GiB Current LE 128 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:4 [root@s1 /]# mkfs.vfat -v /dev/myvg/mylv2 mkfs.vfat 3.0.1 (23 Nov 2008) unable to get drive geometry, using default 255/63 Auto-selecting FAT32 for large filesystem /dev/myvg/mylv2 has 255 heads and 63 sectors per track, logical sector size is 512, using 0xf8 media descriptor, with 2097152 sectors; file system has 2 32-bit FATs and 8 sectors per cluster. FAT size is 2044 sectors, and provides 261629 clusters. Volume ID is 849573dd, no volume label. [root@s1 /]# mkdosfs -v /dev/myvg/mylv2 mkdosfs 3.0.1 (23 Nov 2008) unable to get drive geometry, using default 255/63 Auto-selecting FAT32 for large filesystem /dev/myvg/mylv2 has 255 heads and 63 sectors per track, logical sector size is 512, using 0xf8 media descriptor, with 2097152 sectors; file system has 2 32-bit FATs and 8 sectors per cluster. FAT size is 2044 sectors, and provides 261629 clusters. Volume ID is 8c9145fb, no volume label. [root@s1 /]# mkfs -v -t vfat /dev/myvg/mylv2 mke2fs 1.41.10 (10-Feb-2009) fs_types for mke2fs.conf resolution: 'vfat', 'default' Calling BLKDISCARD from 0 to 1073741824 failed. Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 65536 inodes, 262144 blocks 13107 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=268435456 8 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376 Writing inode tables: done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 24 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. [root@s1 /]# df -Th | grep wshare ext2 1008M 1.3M 956M 1% /wshare By default it's creating ext2 not vfat. Please shed some lights If I missed anything. Thank you |
I see several successful attempts at formatting, but none at mounting the
formatted file-system ... |
Why all 3 commands ?. The first should have been sufficient.
Looks like the last is not parsing the parms (properly). Defaults to ext2 if no type. Try reversing them. |
Thank you for the reply.
All the commands are throwing same error, lvm was not mounted while creating the fs. [root@s1 ~]# mkfs -t vfat /dev/myvg/mylv2 mkfs.vfat 3.0.1 (23 Nov 2008) unable to get drive geometry, using default 255/63 [root@s1 ~]# [root@s1 ~]# mkfs -t vfat -v /dev/myvg/mylv2 mkfs.vfat 3.0.1 (23 Nov 2008) unable to get drive geometry, using default 255/63 Auto-selecting FAT32 for large filesystem /dev/myvg/mylv2 has 255 heads and 63 sectors per track, logical sector size is 512, using 0xf8 media descriptor, with 2097152 sectors; file system has 2 32-bit FATs and 8 sectors per cluster. FAT size is 2044 sectors, and provides 261629 clusters. Volume ID is 288195d1, no volume label. Comments would be appreciated. Thank you. |
I can't see any error. Only a warning. And you'd need to mount it after
formatting to make it show in df. |
Tinkster, thank you for your comments. That is right, seems working... Now I can expand my lvm to 50 windows users to complete my projects!!!.
|
All times are GMT -5. The time now is 01:50 AM. |