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: Thiago Camargo Martins Cordeiro <thiagocmartinsc@xxxxxxxxx>
Subject: Re: [Xen-users] problems mounting HPFS/NTFS domU partition
From: Studio Rivadossi <studio@xxxxxxxxxxxxx>
Date: Wed, 28 Jan 2009 09:34:46 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 28 Jan 2009 00:41:33 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <6b7f6eb0901271450s64ebf072rba01ebbdf674c76a@xxxxxxxxxxxxxx>
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> <6b7f6eb0901271450s64ebf072rba01ebbdf674c76a@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.9
Hello,
thanks very much for your replay Thiago.
Yes, I use LVM, but the solution
it isn't so simple...
;-)

I just used ntfs-3g without success...
I just have the link created with kpartx:

ll /dev/virtual_machines/xp_disk
lrwxrwxrwx 1 root root 36 2009-01-28 
08:12 /dev/virtual_machines/xp_disk -> /dev/mapper/virtual_machines-xp_disk

but I follow anyway yours instructions:

kpartx -a /dev/virtual_machines/xp_disk

ls -l /dev/virtual_machines/xp_disk*
lrwxrwxrwx 1 root root 36 2009-01-28 
08:12 /dev/virtual_machines/xp_disk -> /dev/mapper/virtual_machines-xp_disk

ntfs-3g /dev/virtual_machines/xp_disk1 /mnt/lvm_disk/
ntfs-3g: Failed to access volume '/dev/virtual_machines/xp_disk1': No such 
file or directory
Please type 'ntfs-3g --help' for more information.

I think that ntfs-3g isn't able to see /dev/virtual_machines/xp_disk1
infact at filesystem level there is only this file:
/dev/virtual_machines/xp_disk

but if I use /dev/virtual_machines/xp_disk1 this is the output:

ntfs-3g /dev/virtual_machines/xp_disk /mnt/lvm_disk/
NTFS signature is missing.
Failed to mount '/dev/mapper/virtual_machines-xp_disk': Invalid argument
The device '/dev/mapper/virtual_machines-xp_disk' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?

I can see the /dev/virtual_machines/xp_disk1
using
sfdisk -l -Us /dev/virtual_machines/xp_disk
(as I show in my first mail)

I saw into mailing list's archives that it is possible to mount NTFS 
partitions as shown at this URL:

http://xen.markmail.org/message/pp55m3i77yjskwrz?q=HPFS/NTFS+mount+loop

in particular:
mount -o loop,ro,offset=$(( 512*63 )) /dev/xendata/volume3 /mnt/windows/ 

I don't know if I can solve my problem using some "mount" options like this 
example...

Any help will be appreciated...
Thanks in advance,

Severino Rivadossi

On martedì 27 gennaio 2009, Thiago Camargo Martins Cordeiro wrote:
> 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