All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] can't mount vfat fs on lvm created by winxp guest on xen
@ 2007-04-28 10:33 Yann Boutin
  2007-04-28 14:05 ` Bryn M. Reeves
  0 siblings, 1 reply; 3+ messages in thread
From: Yann Boutin @ 2007-04-28 10:33 UTC (permalink / raw)
  To: linux-lvm

Greetings, 
I've had no success with mounting a vfat file system created by a 
Windows XP guest on a lvm volume. Windows XP guest is running under xen 3.0.5 rc3.

# mount -t vfat /dev/vg1/win1 /mnt/
mount: wrong fs type, bad option, bad superblock on /dev/vg1/win1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

# dmesg
FAT: invalid media value (0xb9)
VFS: Can't find a valid FAT filesystem on dev dm-0.

# lvm version
  LVM version:     2.02.10 (2006-09-19)
  Library version: 1.02.10 (2006-09-19)
  Driver version:  4.7.0

# uname -a
Linux gentoo 2.6.18-xen #6 SMP Sun Apr 22 12:11:43 CEST 2007 i686 
Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz GenuineIntel GNU/Linux


I found solutions for similar problem (symptoms) reported with usb pens but no one worked.

Help  would be greatly appreciated.

Thanks!

	Yann.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] can't mount vfat fs on lvm created by winxp guest on xen
  2007-04-28 10:33 [linux-lvm] can't mount vfat fs on lvm created by winxp guest on xen Yann Boutin
@ 2007-04-28 14:05 ` Bryn M. Reeves
  2007-04-28 17:45   ` Yann Boutin
  0 siblings, 1 reply; 3+ messages in thread
From: Bryn M. Reeves @ 2007-04-28 14:05 UTC (permalink / raw)
  To: LVM general discussion and development

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yann Boutin wrote:
> Greetings, 
> I've had no success with mounting a vfat file system created by a 
> Windows XP guest on a lvm volume. Windows XP guest is running under xen 3.0.5 rc3.
> 
> # mount -t vfat /dev/vg1/win1 /mnt/
> mount: wrong fs type, bad option, bad superblock on /dev/vg1/win1,
>        missing codepage or other error
>        In some cases useful info is found in syslog - try
>        dmesg | tail  or so
> 

Presumably, the windows install partitioned the raw storage?

Try running "file -s /dev/vg1/win1". If it says something like this:

/dev/sda: x86 boot sector; partition 1: ID=0x83, active, starthead 1,
startsector 63, 208782 sectors; partition 2: ID=0x8e, starthead 0,
startsector 208845, 195157620 sectors, code offset 0x48

Then there's a partition table on the device and the VFAT file system is
in a partition on it.

You can map those partitions using kpartx. Run:

kpartx -a /dev/vg1/win1

And you should see some new entries in /dev/mapper like win1p1 win1p2
etc. You can remove them with:

kpartx -d /dev/vg1/win1

Regards,
Bryn.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGM1Sg6YSQoMYUY94RAlCnAKCv70L+TzHdHQJrV/kydbMr2hJ8OACg1uQI
WPbSmrbKqOA8jABNsB5LvU0=
=8r7K
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] can't mount vfat fs on lvm created by winxp guest on xen
  2007-04-28 14:05 ` Bryn M. Reeves
@ 2007-04-28 17:45   ` Yann Boutin
  0 siblings, 0 replies; 3+ messages in thread
From: Yann Boutin @ 2007-04-28 17:45 UTC (permalink / raw)
  To: LVM general discussion and development

On 15:05 Sat 28 Apr     , Bryn M. Reeves wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Yann Boutin wrote:
> > Greetings, 
> > I've had no success with mounting a vfat file system created by a 
> > Windows XP guest on a lvm volume. Windows XP guest is running under xen 3.0.5 rc3.
> > 
> > # mount -t vfat /dev/vg1/win1 /mnt/
> > mount: wrong fs type, bad option, bad superblock on /dev/vg1/win1,
> >        missing codepage or other error
> >        In some cases useful info is found in syslog - try
> >        dmesg | tail  or so
> > 
> 
> Presumably, the windows install partitioned the raw storage?
> 
> Try running "file -s /dev/vg1/win1". If it says something like this:
> 
> /dev/sda: x86 boot sector; partition 1: ID=0x83, active, starthead 1,
> startsector 63, 208782 sectors; partition 2: ID=0x8e, starthead 0,
> startsector 208845, 195157620 sectors, code offset 0x48
> 
> Then there's a partition table on the device and the VFAT file system is
> in a partition on it.
> 
> You can map those partitions using kpartx. Run:
> 
> kpartx -a /dev/vg1/win1
> 
> And you should see some new entries in /dev/mapper like win1p1 win1p2
> etc. You can remove them with:
> 
> kpartx -d /dev/vg1/win1

Actually I solved my problem the same way but by hand. I map the first inner partition with dmsetup with adding an offset of 63 blocks. But really thanks for your answer and Kpartx is much simplier.

I've started a similar thread here too :
http://lists.xensource.com/archives/html/xen-users/2007-04/msg00846.html

Best regards

   Yann.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-28 17:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-28 10:33 [linux-lvm] can't mount vfat fs on lvm created by winxp guest on xen Yann Boutin
2007-04-28 14:05 ` Bryn M. Reeves
2007-04-28 17:45   ` Yann Boutin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.