From: Yann Boutin <yann.boutin@free.fr>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] can't mount vfat fs on lvm created by winxp guest on xen
Date: Sat, 28 Apr 2007 19:45:35 +0200 [thread overview]
Message-ID: <20070428174535.GB6807@gentoo> (raw)
In-Reply-To: <463354A0.5040604@redhat.com>
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.
prev parent reply other threads:[~2007-04-28 17:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070428174535.GB6807@gentoo \
--to=yann.boutin@free.fr \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.