Studio Rivadossi
2009-Jan-27 17:28 UTC
[Xen-users] problems mounting HPFS/NTFS domU partition
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 a mount, like this: 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 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@lists.xensource.com http://lists.xensource.com/xen-users
Studio Rivadossi
2009-Jan-27 19:58 UTC
[Xen-users] problems mounting HPFS/NTFS domU partition
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@lists.xensource.com http://lists.xensource.com/xen-users
Thiago Camargo Martins Cordeiro
2009-Jan-27 22:50 UTC
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@rivadossi.org>> 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@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Studio Rivadossi
2009-Jan-28 08:34 UTC
Re: [Xen-users] problems mounting HPFS/NTFS domU partition
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@rivadossi.org> > > > 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@lists.xensource.com > > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Jan-29 22:24 UTC
Re: [Xen-users] problems mounting HPFS/NTFS domU partition
On Wed, Jan 28, 2009 at 3:34 PM, Studio Rivadossi <studio@rivadossi.org> wrote:> kpartx -a /dev/virtual_machines/xp_disk > > 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_diskkpartx will create a new block device /dev/mapper/xp_disk1 (note the directory) After running kpartx above, try mounting that. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Studio Rivadossi
2009-Jan-30 13:24 UTC
Re: [Xen-users] problems mounting HPFS/NTFS domU partition
Yes Fajar, you''re right! Thank you very much, I can mount the disk now: kpartx -a /dev/virtual_machines/xp_disk mount /dev/mapper/virtual_machines-xp_disk1 /mnt/lvm_disk/ Problem solved! Severino Rivadossi On giovedì 29 gennaio 2009, Fajar A. Nugraha wrote:> On Wed, Jan 28, 2009 at 3:34 PM, Studio Rivadossi <studio@rivadossi.org>wrote:> > kpartx -a /dev/virtual_machines/xp_disk > > > > 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 > > kpartx will create a new block device /dev/mapper/xp_disk1 (note the > directory) After running kpartx above, try mounting that. > > Regards, > > Fajar_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thiago Camargo Martins Cordeiro
2009-Jan-30 13:53 UTC
Re: [Xen-users] problems mounting HPFS/NTFS domU partition
Nice!! :-D Sorry, I forgot kpartx creates it''s files under /dev/mapper... Regards, Thiago 2009/1/30 Studio Rivadossi <studio@rivadossi.org>> Yes Fajar, > you''re right! > > Thank you very much, I can mount the disk now: > > kpartx -a /dev/virtual_machines/xp_disk > mount /dev/mapper/virtual_machines-xp_disk1 /mnt/lvm_disk/ > > Problem solved! > > Severino Rivadossi > > > On giovedì 29 gennaio 2009, Fajar A. Nugraha wrote: > > On Wed, Jan 28, 2009 at 3:34 PM, Studio Rivadossi <studio@rivadossi.org> > wrote: > > > kpartx -a /dev/virtual_machines/xp_disk > > > > > > 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 > > > > kpartx will create a new block device /dev/mapper/xp_disk1 (note the > > directory) After running kpartx above, try mounting that. > > > > Regards, > > > > Fajar > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users