WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] problems mounting HPFS/NTFS domU partition

To: Studio Rivadossi <studio@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] problems mounting HPFS/NTFS domU partition
From: Thiago Camargo Martins Cordeiro <thiagocmartinsc@xxxxxxxxx>
Date: Tue, 27 Jan 2009 20:50:27 -0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 27 Jan 2009 14:51:17 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=s3IhPmR3r1vRy7b/Edbe7AIXaFgfF22/GH8/6j0ujVM=; b=wzRvnHEe2Z6cw0i/fkkrTTTBmfP633ywfrWAtEWhQcOMO7vwU5WsTelHGwv/dFwGax U7eb0D0oOzJoZ+2YSag0rk1ty6QQIai6kmA4ioqkKrO73RMxPpts/Cssoa4KaKYT9JOA uCZNi3DqxqnEKaODC6017CzSx10sa6l8rVClg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=fmiP8kzYqIEK27AjUOvTWxQs/4OX3KlRtyHAQ/ZEi7hvdB9OnWmCkhyVAeAa+NhEfV yYp0dn4SWkfoJUjTWbyFQq1qEDK2LQTCE/WD1vKnE+E3aj6GCsdMyfSRmzScx3sV9usj sHLa//sIgTh0Q6v1BTIS/kDyalZMssuezGoJ8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200901272058.44629.studio@xxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <200901272058.44629.studio@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
It's pretty simple!   :)

 On you Xen Debian Lenny:

apt-get install kpartx ntfs-3g
kpartx -a /dev/virtual_machines/xp_disk
ls -l /dev/virtual_machines/xp_disk*

 You will see your partitions from inside your Logical Volume (I suppose you use LVM) and now mount it:

ntfs-3g /dev/virtual_machines/xp_disk1 /mnt/windows-domu-c

Good luck!
Thiago

2009/1/27 Studio Rivadossi <studio@xxxxxxxxxxxxx>
Hello,

I'm not able to mount a HPFS/NTFS  domU partition.

My system:

dom0 is on a debian (Lenny) machine, using xen-hypervisor-3.2-1-i386 Xen
Hypervisor.

domU is a Windows XP machine, that works well.
My target is to mount file system domU machine (when domU is not active).

In my domU configuration file I have:
disk = ['phy:/dev/virtual_machines/xp_disk,hda,w', 'phy:/dev/hda,hdc:cdrom,r']

My disk's partitions are:

fdisk -l
...
/dev/sda6            2678        6375    29704153+  8e  Linux LVM


pvscan
 /dev/cdrom: open failed: Read-only file system
 Attempt to close device '/dev/cdrom' which is not open.
 PV /dev/sda6   VG virtual_machines   lvm2 [28.32 GB / 5.32 GB free]
 Total: 1 [28.32 GB] / in use: 1 [28.32 GB] / in no VG: 0 [0   ]


sfdisk -l -Us /dev/virtual_machines/xp_disk

Disk /dev/virtual_machines/xp_disk: 1958 cylinders, 255 heads, 63
sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

  Device Boot Start     End   #cyls    #blocks   Id  System
/dev/virtual_machines/xp_disk1   *      0+   1956    1957-  15719571    7
HPFS/NTFS
/dev/virtual_machines/xp_disk2          0       -       0          0    0
Empty
/dev/virtual_machines/xp_disk3          0       -       0          0    0
Empty
/dev/virtual_machines/xp_disk4          0       -       0          0    0
Empty


Well, I would mount XP domU machine with "mount" command:

mount /dev/virtual_machines/xp_disk /mnt/lvm_disk/
mount: you must specify the filesystem type

If I use -t ntfs, I obtain:

mount -t ntfs /dev/virtual_machines/xp_disk /mnt/lvm_disk/
mount: wrong fs type, bad option, bad superblock
on /dev/mapper/virtual_machines-xp_disk,
      missing codepage or helper program, or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

tail /var/log/syslog
Jan 27 18:25:45 space kernel: [38308.189012] EXT3 FS on dm-1, internal journal
Jan 27 18:25:45 space kernel: [38308.189012] EXT3-fs: mounted filesystem with
ordered data mode.
Jan 27 18:26:37 space kernel: [38360.349357] NTFS-fs warning (device dm-0):
is_boot_sector_ntfs(): Invalid boot sector checksum.
Jan 27 18:26:37 space kernel: [38360.349372] NTFS-fs error (device dm-0):
read_ntfs_boot_sector(): Primary boot sector is invalid.
Jan 27 18:26:37 space kernel: [38360.350503] NTFS-fs error (device dm-0):
read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting
without trying to recover.
Jan 27 18:26:37 space kernel: [38360.350503] NTFS-fs error (device dm-0):
ntfs_fill_super(): Not an NTFS volume.


I think that I must use "mount" command with some options...
Can someone help me?

Thanks in advance,

Severino Rivadossi

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users