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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-29-2012, 04:27 PM
|
#1
|
LQ Newbie
Registered: Apr 2012
Posts: 6
Rep: 
|
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.
|
|
|
04-29-2012, 09:30 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
I see several successful attempts at formatting, but none at mounting the
formatted file-system ...
|
|
|
04-29-2012, 09:31 PM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,382
|
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.
|
|
|
04-29-2012, 11:21 PM
|
#4
|
LQ Newbie
Registered: Apr 2012
Posts: 6
Original Poster
Rep: 
|
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.
|
|
|
04-29-2012, 11:29 PM
|
#5
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
I can't see any error. Only a warning. And you'd need to mount it after
formatting to make it show in df.
|
|
|
04-29-2012, 11:48 PM
|
#6
|
LQ Newbie
Registered: Apr 2012
Posts: 6
Original Poster
Rep: 
|
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 04:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|