Jean-Pierre André wrote: > Martin Mokrejs wrote: >> Jean-Pierre André wrote: >>> Martin Mokrejs wrote: >>>> Hi Jean-Pierre, > > [...] > >>>>> You should have dumped the beginning of /dev/sdc5 to locate >>>>> an NTFS partition with the fields related to the geometry of >>>>> the drive left unfilled. >>> >>> [...] >>> >>>> Aha. How? Via dd with offset=4357349376-1 ? >>> >>> Either : >>> >>> dd if=/dev/sdc5 bs=512 count=1 | od -t x1 >>> >>> or (provided 4357349376 does not get truncated) : >>> >>> dd if=/dev/sdc skip=4357349376 bs=512 count=1 | od -t x1 >>> >>> or : >>> >>> dd if=/dev/sdc skip=544668672 bs=4096 count=1 | od -t x1 | head -n 32 >> >> I did this form the hosting Linux-3.10.78 kernel (as was the smartctl >> and other commands >> in my previous emails, just to avoid potential issues with VirtualBox): >> >> vostro ~ # dd if=/dev/sdc5 bs=512 count=1 | od -t x1 >> 1+0 records in >> 1+0 records out >> 512 bytes (512 B) copied, 0.00219365 s, 233 kB/s >> 0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >> * >> 0001000 >> vostro ~ # dd if=/dev/sdc skip=4357349376 bs=512 count=1 | od -t x1 >> 1+0 records in >> 1+0 records out >> 512 bytes (512 B) copied, 0.00157466 s, 325 kB/s >> 0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >> * >> 0001000 >> vostro ~ # dd if=/dev/sdc skip=544668672 bs=4096 count=1 | od -t x1 | >> head -n 32 >> 1+0 records in >> 1+0 records out >> 4096 bytes (4.1 kB) copied, 0.00156452 s, 2.6 MB/s >> 0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >> * >> 0010000 >> vostro ~ # > > So, either /dev/sdc5 has not been formatted, or something > is overflowing somehere...
So let's go formatting: # mkntfs -v -f /dev/sdc5 The partition start sector specified for /dev/sdc5 and the automatically determined value is too large. It has been set to 0. Cluster size has been automatically set to 4096 bytes. To boot from a device, Windows needs the 'partition start sector', the 'sectors per track' and the 'number of heads' to be set. Windows will not be able to boot from this device. Creating NTFS volume structures. Creating root directory (mft record 5) Creating $MFT (mft record 0) Creating $MFTMirr (mft record 1) Creating $LogFile (mft record 2) Creating $AttrDef (mft record 4) Creating $Bitmap (mft record 6) Creating $Boot (mft record 7) Creating backup boot sector. Creating $Volume (mft record 3) Creating $BadClus (mft record 8) Creating $Secure (mft record 9) Creating $UpCase (mft record 0xa) Creating $Extend (mft record 11) Creating system file (mft record 0xc) Creating system file (mft record 0xd) Creating system file (mft record 0xe) Creating system file (mft record 0xf) Creating $Quota (mft record 24) Creating $ObjId (mft record 25) Creating $Reparse (mft record 26) Syncing root directory index record. Syncing $Bitmap. Syncing $MFT. Updating $MFTMirr. Syncing device. mkntfs completed successfully. Have a nice day. # # dd if=/dev/sdc5 bs=512 count=1 | od -t x1 1+0 records in 1+0 records out 512 bytes (512 B) copied, 0.00151396 s, 338 kB/s 0000000 eb 52 90 4e 54 46 53 20 20 20 20 00 02 08 00 00 0000020 00 00 00 00 00 f8 00 00 3f 00 ff 00 00 00 00 00 0000040 00 00 00 00 80 00 80 00 8e c3 98 59 00 00 00 00 0000060 04 00 00 00 00 00 00 00 38 8c 99 05 00 00 00 00 0000100 f6 00 00 00 01 00 00 00 32 3e 0a 05 42 16 8c 77 0000120 00 00 00 00 fa 33 c0 8e d0 bc 00 7c fb 68 c0 07 0000140 1f 1e 68 66 00 cb 88 16 0e 00 66 81 3e 03 00 4e 0000160 54 46 53 75 15 b4 41 bb aa 55 cd 13 72 0c 81 fb 0000200 55 aa 75 06 f7 c1 01 00 75 03 e9 d2 00 1e 83 ec 0000220 18 68 1a 00 b4 48 8a 16 0e 00 8b f4 16 1f cd 13 0000240 9f 83 c4 18 9e 58 1f 72 e1 3b 06 0b 00 75 db a3 0000260 0f 00 c1 2e 0f 00 04 1e 5a 33 db b9 00 20 2b c8 0000300 66 ff 06 11 00 03 16 0f 00 8e c2 ff 06 16 00 e8 0000320 40 00 2b c8 77 ef b8 00 bb cd 1a 66 23 c0 75 2d 0000340 66 81 fb 54 43 50 41 75 24 81 f9 02 01 72 1e 16 0000360 68 07 bb 16 68 70 0e 16 68 09 00 66 53 66 53 66 0000400 55 16 16 16 68 b8 01 66 61 0e 07 cd 1a e9 6a 01 0000420 90 90 66 60 1e 06 66 a1 11 00 66 03 06 1c 00 1e 0000440 66 68 00 00 00 00 66 50 06 53 68 01 00 68 10 00 0000460 b4 42 8a 16 0e 00 16 1f 8b f4 cd 13 66 59 5b 5a 0000500 66 59 66 59 1f 0f 82 16 00 66 ff 06 11 00 03 16 0000520 0f 00 8e c2 ff 0e 16 00 75 bc 07 1f 66 61 c3 a0 0000540 f8 01 e8 08 00 a0 fb 01 e8 02 00 eb fe b4 01 8b 0000560 f0 ac 3c 00 74 09 b4 0e bb 07 00 cd 10 eb f2 c3 0000600 0d 0a 41 20 64 69 73 6b 20 72 65 61 64 20 65 72 0000620 72 6f 72 20 6f 63 63 75 72 72 65 64 00 0d 0a 42 0000640 4f 4f 54 4d 47 52 20 69 73 20 6d 69 73 73 69 6e 0000660 67 00 0d 0a 42 4f 4f 54 4d 47 52 20 69 73 20 63 0000700 6f 6d 70 72 65 73 73 65 64 00 0d 0a 50 72 65 73 0000720 73 20 43 74 72 6c 2b 41 6c 74 2b 44 65 6c 20 74 0000740 6f 20 72 65 73 74 61 72 74 0d 0a 00 00 00 00 00 0000760 00 00 00 00 00 00 00 00 80 9d b2 ca 00 00 55 aa 0001000 # Get's mounted as: /dev/sdc5 /mnt/smartmedia fuseblk rw,nosuid,nodev,allow_other,blksize=4096 0 0 I backed up the above output: # dd if=/dev/sdc5 bs=512 count=1 | od -t x1 > /tmp/mkntfs.txt 1+0 records in 1+0 records out 512 bytes (512 B) copied, 0.00154696 s, 331 kB/s # I re-formatted via mkfs.ntfs: # mkfs.ntfs -v -f /dev/sdc5 The partition start sector specified for /dev/sdc5 and the automatically determined value is too large. It has been set to 0. Cluster size has been automatically set to 4096 bytes. To boot from a device, Windows needs the 'partition start sector', the 'sectors per track' and the 'number of heads' to be set. Windows will not be able to boot from this device. Creating NTFS volume structures. Creating root directory (mft record 5) Creating $MFT (mft record 0) Creating $MFTMirr (mft record 1) Creating $LogFile (mft record 2) Creating $AttrDef (mft record 4) Creating $Bitmap (mft record 6) Creating $Boot (mft record 7) Creating backup boot sector. Creating $Volume (mft record 3) Creating $BadClus (mft record 8) Creating $Secure (mft record 9) Creating $UpCase (mft record 0xa) Creating $Extend (mft record 11) Creating system file (mft record 0xc) Creating system file (mft record 0xd) Creating system file (mft record 0xe) Creating system file (mft record 0xf) Creating $Quota (mft record 24) Creating $ObjId (mft record 25) Creating $Reparse (mft record 26) Syncing root directory index record. Syncing $Bitmap. Syncing $MFT. Updating $MFTMirr. Syncing device. mkntfs completed successfully. Have a nice day. # Did a new dump: # dd if=/dev/sdc5 bs=512 count=1 | od -t x1 > /tmp/mkntfs.txt2 1+0 records in 1+0 records out 512 bytes (512 B) copied, 0.00150059 s, 341 kB/s # # diff -u -w /tmp/mkntfs.txt /tmp/mkntfs.txt2 --- /tmp/mkntfs.txt 2015-05-24 14:03:03.847322154 +0200 +++ /tmp/mkntfs.txt2 2015-05-24 14:03:30.277321936 +0200 @@ -2,7 +2,7 @@ 0000020 00 00 00 00 00 f8 00 00 3f 00 ff 00 00 00 00 00 0000040 00 00 00 00 80 00 80 00 8e c3 98 59 00 00 00 00 0000060 04 00 00 00 00 00 00 00 38 8c 99 05 00 00 00 00 -0000100 f6 00 00 00 01 00 00 00 32 3e 0a 05 42 16 8c 77 +0000100 f6 00 00 00 01 00 00 00 b3 68 fb 3a dd 2e 4c 1e 0000120 00 00 00 00 fa 33 c0 8e d0 bc 00 7c fb 68 c0 07 0000140 1f 1e 68 66 00 cb 88 16 0e 00 66 81 3e 03 00 4e 0000160 54 46 53 75 15 b4 41 bb aa 55 cd 13 72 0c 81 fb # Why is there a difference? Martin ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ ntfs-3g-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel
