|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] problems mounting HPFS/NTFS domU partition
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
|
|
|
|
|