Hi Johannes, Johannes Bauer wrote: > Hi list, > > I'm having trouble opening an NTFS volume using ntfs-3g 2013.1.13 > (Gentoo x86_64). When mounting the volume, certain directories produce > I/O errors; I'm not able to access them, chdir into them or even stat them. > > I've positively confirmed that the block device itself is *not* causing > I/O errors. Also under Windows the folders are perfectly accessible and > running Windows' chkdsk has found no errors with the volume. > > Here's the output of a ls "/Program Files": > > /bin/ls: cannot access /mnt/TrueCrypt/Program Files/7-Zip: Input/output > error > /bin/ls: cannot access /mnt/TrueCrypt/Program Files/AutoHotkey: > Input/output error > /bin/ls: cannot access /mnt/TrueCrypt/Program Files/NVIDIA Corporation: > Input/output error > total 45K > d????????? ? ? ? ? ? 7-Zip/ > d????????? ? ? ? ? ? AutoHotkey/ > drwxrwxrwx 1 root root 4,0K 14.07.2009 05:20:08 Common Files/ > -rwxrwxrwx 1 root root 174 14.07.2009 06:54:24 desktop.ini > drwxrwxrwx 1 root root 4,0K 14.07.2009 09:47:00 DVD Maker/ > drwxrwxrwx 1 root root 4,0K 14.07.2009 07:37:47 Internet Explorer/ > drwxrwxrwx 1 root root 4,0K 14.07.2009 09:46:52 Microsoft Games/ > drwxrwxrwx 1 root root 0 14.07.2009 07:32:38 MSBuild/ > d????????? ? ? ? ? ? NVIDIA Corporation/ > drwxrwxrwx 1 root root 0 14.07.2009 07:32:38 Reference Assemblies/ > drwxrwxrwx 1 root root 4,0K 25.05.2013 21:38:25 TrueCrypt/ > drwxrwxrwx 1 root root 0 14.07.2009 07:09:26 Uninstall Information/ > [...] > > Note that the inaccessible folders are all folders that were created on > the disk after the installation of the OS (old things), the things that > are inaccessible are all things that went on the disk fairly recently. > > Here the output with ntfsls: > > # ntfsls /dev/mapper/truecrypt1 -aFi -p '/Program Files' > 60 ./ > 197 Uninstall Information/ > 184169 7-Zip/ > 199642 AutoHotkey/ > 61 Common Files/ > 13716 desktop.ini > 132 DVD Maker/ > 156 Internet Explorer/ > 159 Microsoft Games/ > 185 MSBuild/ > 60166 NVIDIA Corporation/ > 190 Reference Assemblies/ > 58065 TrueCrypt/ > [...] > > # ntfsls /dev/mapper/truecrypt1 -aFil -p '/Program Files' > 60 0 May 26 05:21 2013 ./ > 197 0 May 26 05:21 2013 Uninstall Information/ > ntfs_mst_post_read_fixup_warn: magic: 0xff13a764 size: 1024 usa_ofs: > 10012 usa_count: 18264: Invalid argument > Record 184169 has no FILE magic (0xff13a764) > > # ntfsls /dev/mapper/truecrypt1 -aFi -p '/Program Files/7-Zip' > ntfs_mst_post_read_fixup_warn: magic: 0xff13a764 size: 1024 usa_ofs: > 10012 usa_count: 18264: Invalid argument > Record 184169 has no FILE magic (0xff13a764) > > When I run ntfsck, it goes berserk: > > Unsupported: replay_log() > Unsupported: check_volume() > Checking 206336 MFT records. > Assertion failed for '58368:FILE record magic'. should be 0x454c4946, > was 0xf1e9b836. > Assertion failed for 'usa_ofs+usa_count<= attrs_offset'. 0x1d5be> 0xd19e > Assertion failed for '58369:FILE record magic'. should be 0x454c4946, > was 0xc43c3bc0. > Assertion failed for 'usa_ofs+usa_count<= attrs_offset'. 0x10fd2> 0x9f99 > Assertion failed for '58370:FILE record magic'. should be 0x454c4946, > was 0xf0a91917. > Assertion failed for 'usa_ofs+usa_count<= attrs_offset'. 0x17f1a> 0xa55e > Assertion failed for '58371:FILE record magic'. should be 0x454c4946, > was 0x5d7c8e38. > Assertion failed for 'usa_ofs+usa_count<= attrs_offset'. 0x7404> 0x3c48 > Assertion failed for '58372:FILE record magic'. should be 0x454c4946, > was 0x1adacf02. > Assertion failed for 'usa_ofs+usa_count<= attrs_offset'. 0x103f6> 0x9391 > Assertion failed for '58373:FILE record magic'. should be 0x454c4946, > was 0xf6e9c865. > Assertion failed for 'usa_ofs+usa_count<= attrs_offset'. 0x175bc> 0x7e43 > Assertion failed for '58374:FILE record magic'. should be 0x454c4946, > was 0x63a515c0. > Assertion failed for 'usa_ofs+usa_count<= attrs_offset'. 0xe71d> 0x73f4 > Assertion failed for '58375:FILE record magic'. should be 0x454c4946, > was 0x4aba2b96. > Assertion failed for 'usa_ofs+usa_count<= attrs_offset'. 0xe69d> 0x9be2 > Assertion failed for '58376:FILE record magic'. should be 0x454c4946, > was 0xca07a089. > Assertion failed for 'usa_ofs+usa_count<= attrs_offset'. 0x1002a> 0xe49b > Assertion failed for '58377:FILE record magic'. should be 0x454c4946, > was 0xc306679b. > Assertion failed for 'usa_ofs+usa_count<= attrs_offset'. 0x17013> 0x4900 > Assertion failed for '58378:FILE record magic'. should be 0x454c4946, > was 0xc1f5a0f6. > Assertion failed for 'usa_ofs+usa_count<= attrs_offset'. 0xe92f> 0xb615 > Assertion failed for '58379:FILE record magic'. should be 0x454c4946, > was 0xac031a74. > [...] (goes on and on forever and ever) > > Do and of you have a clue what could be happening here and how to fix it?
This all shows that you cannot access files whose inode number is greater or equal 58368. Instead of the expected magic number there is a random (or encrypted) value. I see that TrueCrypt is inode 58065, which tends to mean you have encrypted files which were created since May 25th keeping former files unencrypted. As a first step, please post the formatting parameters and the MFT data, which you get (as root, from unmounted partition) from : ntfsinfo -fm /dev/mapper/truecrypt1 ntfsinfo -fvi 0 /dev/mapper/truecrypt1 I would also like to know the physical sector size. You can get if from "fdisk -l" designating the full disk instead of the encrypted partition. It would also be useful to know the history of this partition : - how was it formatted ? (Bastille Day 2009 tends to mean Windows 7) - how was it encrypted ? (can it be partially encrypted) ? - are you using the same TrueCrypt version and the same key on Window and Linux ? - what is "the installation of the OS" ? (reinstallation of Windows ? of Linux ?) Regards Jean-Pierre ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ ntfs-3g-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel
