LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2012, 04:27 PM   #1
cp.moncy
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Rep: Reputation: Disabled
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

Last edited by cp.moncy; 04-29-2012 at 04:43 PM.
 
Old 04-29-2012, 09:30 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I see several successful attempts at formatting, but none at mounting the
formatted file-system ...
 
Old 04-29-2012, 09:31 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,533

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
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.
 
Old 04-29-2012, 11:21 PM   #4
cp.moncy
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
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.

Last edited by cp.moncy; 04-29-2012 at 11:24 PM.
 
Old 04-29-2012, 11:29 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I can't see any error. Only a warning. And you'd need to mount it after
formatting to make it show in df.
 
Old 04-29-2012, 11:48 PM   #6
cp.moncy
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
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!!!.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XFS stripe width on top of LVM over hardware RAID thebeerbaron Linux - Software 3 10-27-2011 02:41 PM
RAID 10 failed - and my installation uses a lvm on top - how can i recover from this? nicolasdiogo Linux - General 5 05-20-2011 12:22 PM
ran mkfs.vfat over top ntfs partition... any way to restore ntfs partition info? oryan_dunn Linux - Hardware 8 10-14-2010 06:08 PM
LVM Striping On Top Of Raid5 Striping - Is this Possible?? RandyTech Linux - Newbie 3 10-07-2010 08:42 PM
Should I use LVM on top of 3ware Hardware RAID? bfoddy Linux - Hardware 2 09-22-2007 04:06 PM


All times are GMT -5. The time now is 11:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration