xiucai wrote: > Hi, > > I am so glad to get your warm-hearted respose:) > I am working in Chinese environment, so these given illustrations may > cause trouble:( > I wish it could not affect what we talking about:) > > *1*, there is no /*test-pure-ntfs-upon-lvm*/*1*, *only* > *test-pure-ntfs-upon-lvm* exists:(
Well, in your message, I see : [root@localhost mnt]# fdisk -l |grep NTFS |grep pure /dev/mapper/centos7-test--pure--ntfs1 2048 104853503 52425728 7 HPFS/NTFS/exFAT IMHO this exists and this is what you want to mount, you should be able to "dd" from it to confirm it is formatted as ntfs. Jean-Pierre > > *2*, I did "/3, make this new disk online and format it(MBR+NTFS)/" in > Win7(VM), the windows-computer-manager, > because i had attached test-pure-ntfs-upon-lvm to this VM. > # for example: > # qemu-img create -f qcow2 test.qcow2 10G > # virsh attach-disk xdomain absolute_path_to_test.qcow2 vda > # then vm will feel vda(disk1) > # then operate vda(disk1) in vm, init it(mbr), create new simple volume > and format it(ntfs) > > > Regards! > > ------------------ ???????? ------------------ > *??????:* "Jean-Pierre Andr??";<jean-pierre.an...@wanadoo.fr>; > *????????:* 2017??2??22??(??????) ????3:25 > *??????:* "xiucai"<hualing...@foxmail.com>; > *????:* "ntfs-3g-devel"<ntfs-3g-devel@lists.sourceforge.net>; > *????:* Re: reply?? [ntfs-3g-devel] why failed to mount n NTFS block > devicebased on LVM and formated by VM(Win7-Guest, CentOS7-Host)? > > Hi, > > xiucai wrote: > > Thank Jean-Pierre:) > > > > I am so sorry for my delay because of some job's causes. > > > > dd if=/dev/bob/test-pure-ntfs-upon-lvm count=1 | od -t x1 | head -n 1 > > /# ??????1+0 ??????/ > > /# ??????1+0 ??????/ > > /# 512????(512 B)????????0.00025462 ????2.0 MB/??/ > > /# 0000000 33 c0 8e d0 bc 00 7c 8e c0 8e d8 be 00 7c bf 00/ > > This does not yield an ntfs image interface, you > will not be able to mount it as ntfs, and this does > not look like an mbr either. > > What were your commands to : > "3, make this new disk online and format it(MBR+NTFS)" > As you mention the MBR, you might have wanted to create > a partitioned image, with an ntfs partition inside, but > this is not what is shown above. > > I was also asking for the outputs of : > > dd if=/dev/mapper/centos7-test--pure--ntfs count=1 | od -t x1 | head -n 1 > and > dd if=/dev/mapper/centos7-test--pure--ntfs1 count=1 | od -t x1 | head -n 1 > > Jean-Pierre > > > /# note: locale is "LANG=zh_CN.UTF-8"/ > > / > > / > > I do this same test again, details besides above are below: > > > > lsblk > > /# sdb&sdc available/ > > > > pvcreate /dev/sdb > > > > pvcreate /dev/sdc > > > > vgcreate bob /dev/sdb /dev/sdc > > > > lvcreate -L 50G -n test-pure-ntfs-upon-lvm bob > > > > lsblk > > /# sdb 8:16 0 557.8G 0 disk / > > /# ????bob-test--pure--ntfs--upon--lvm 253:2 0 50G 0 lvm/ > > /# sdc 8:32 0 1.1T 0 disk/ > > > > virsh start __ws2008r2x64 > > > > virsh attach-disk __ws2008r2x64 /dev/bob/test-pure-ntfs-upon-lvm vda > > /# then format vda within __ws2008r2x64/ > > /# "cmd" and run "wmic logicaldisk > wmic-logicaldisk.txt"/ > > /# wmic-logicaldisk.txt shows e drive(vda) is ntfs/ > > /# write something in e drive(vda) and shutdown __ws2008r2x64/ > > > > rpm -qa |grep ntfs > > /# ntfsprogs-2016.2.22-1.el7.x86_64/ > > /# ntfs-3g-2016.2.22-1.el7.x86_64/ > > /# ntfs-3g-debuginfo-2016.2.22-1.el7.x86_64/ > > /# ntfs-3g-devel-2016.2.22-1.el7.x86_64/ > > > > mkidr /mnt/ntfs > > > > ntfs-3g /dev/bob/test-pure-ntfs-upon-lvm /mnt/ntfs/ > > /#Failed to mount '/dev/mapper/bob-test--pure--ntfs--upon--lvm': invalid > > parameters./ > > /# The device '/dev/mapper/bob-test--pure--ntfs--upon--lvm' doesn't seem > > to have a valid NTFS./ > > /# Maybe the wrong device is used? Or the whole disk instead of a > > partition?/ > > /# Or the other way around?/ > > > > ll /dev/bob > > /# lrwxrwxrwx 1 root root 7 2?? 22 11:05 test-pure-ntfs-upon-lvm -> > > ../dm-2/ > > > > ll /dev/block > > /# lrwxrwxrwx 1 root root 7 2?? 17 17:30 253:0 -> ../dm-0/ > > /# lrwxrwxrwx 1 root root 7 2?? 17 17:30 253:1 -> ../dm-1/ > > /# lrwxrwxrwx 1 root root 7 2?? 22 11:05 253:2 -> ../dm-2/ > > /# lrwxrwxrwx 1 root root 6 2?? 17 17:30 8:0 -> ../sda/ > > /# lrwxrwxrwx 1 root root 7 2?? 17 17:30 8:1 -> ../sda1/ > > /# lrwxrwxrwx 1 root root 6 2?? 22 10:00 8:16 -> ../sdb/ > > /# lrwxrwxrwx 1 root root 7 2?? 17 17:30 8:2 -> ../sda2/ > > /# lrwxrwxrwx 1 root root 7 2?? 17 17:30 8:3 -> ../sda3/ > > /# lrwxrwxrwx 1 root root 6 2?? 22 10:00 8:32 -> ../sdc/ > > /# lrwxrwxrwx 1 root root 6 2?? 17 17:30 8:48 -> ../sdd/ > > > > > > Thx for anyone who check this mail:) > > > > Regards! > > > > ------------------ ???????? ------------------ > > *??????:* "Jean-Pierre Andr??";<jean-pierre.an...@wanadoo.fr>; > > *????????:* 2017??2??10??(??????) ????6:45 > > *??????:* "xiucai"<hualing...@foxmail.com>; > > "ntfs-3g-devel"<ntfs-3g-devel@lists.sourceforge.net>; > > *????:* Re: [ntfs-3g-devel] why failed to mount n NTFS block devicebased > > on LVM and formated by VM(Win7-Guest, CentOS7-Host)? > > > > Hi > > > > What is your device path which represents your > > ntfs partition /dev/centos7/test-pure-ntfs > > or /dev/mapper/centos7-test--pure--ntfs > > or /dev/mapper/centos7-test--pure--ntfs1 ? > > > > Please post the outputs of (as root) : > > dd if=/dev/DEVICE count=1 | od -t x1 | head -n 1 > > replacing DEVICE by centos7/test-pure-ntfs etc. > > > > Jean-Pierre > > > > > > xiucai wrote: > > > hi, > > > > > > my steps are: > > > 1, lvcreate, make a lv, named test-pure-ntfs, vg is > > > centos7(consisted of sdb); > > > 2, virsh attach-disk, attach test-pure-ntfs to an > > > VM(Windows-Server2008R2x64); > > > 3, make this new disk online and format it(MBR+NTFS); > > > 4, then this disk can rw normally within VM; > > > 5, ntfs-3g, mount test-pure-ntfs on a existed > path(/mnt/ntfs/), but > > > failed! > > > > > > so, why? > > > do not ntfs-3g support my case? > > > > > > ==========here are parts of my actions========== > > > [root@localhost mnt]# mount -t ntfs-3g /dev/centos7/test-pure-ntfs > > > /mnt/ntfs/ > > > NTFS signature is missing. > > > Failed to mount '/dev/mapper/centos7-test--pure--ntfs': invalid > parameter > > > The device '/dev/mapper/centos7-test--pure--ntfs' doesn't seem to > have a > > > valid NTFS. > > > Maybe the wrong device is used? Or the whole disk instead of a > > > partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around? > > > > > > [root@localhost mnt]# fdisk -l |grep NTFS |grep pure > > > /dev/mapper/centos7-test--pure--ntfs1 2048 104853503 > > > 52425728 7 HPFS/NTFS/exFAT > > > [root@localhost mnt]# lsblk |grep pure > > > ????centos7-test--pure--ntfs 253:4 0 50G 0 lvm > > > [root@localhost mnt]# lvscan |grep pure > > > ACTIVE '/dev/centos7/test-pure-ntfs' [50.00 GiB] inherit > > > > > > [root@localhost mnt]# ntfs-3g /dev/centos7/test-pure-ntfs /mnt/ntfs/ > > > <try again, equals to mount~~~ above> > > > NTFS signature is missing. > > > Failed to mount '/dev/mapper/centos7-test--pure--ntfs': invalid > parameter > > > The device '/dev/mapper/centos7-test--pure--ntfs' doesn't seem to > have a > > > valid NTFS. > > > Maybe the wrong device is used? Or the whole disk instead of a > > > partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around? > > > > > > thanks for anyone who check this email :) > > > > > > regards! > > > > > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ ntfs-3g-devel mailing list ntfs-3g-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel