ntfs

Corrupt NTFS folder not accessible from either Windows, Mas OSX or Linux [closed]

此生再无相见时 提交于 2019-12-11 13:29:42
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I have an external 2TB hard drive with a large number of video files from GoPro and a Sony Handycam as well as other backed up content. Recently while attempting to backup from my Mac (using a bit of a hack via OSXFUSE to allow writing to a NTFS filesystem which had been working for me up until now) I found one

MSDN Remark regards Security Descriptors

大城市里の小女人 提交于 2019-12-11 11:22:52
问题 I'm trying to extract and restore a Security Descriptor of a NTFS file, via Windows API - XP SP3, I'm trying to understand which functions are actually able to do it properly, but I simply fail. I found this Remark over MSDN: http://msdn.microsoft.com/en-us/library/aa379573%28VS.85%29.aspx "Some SECURITY_INFORMATION members work only with the SetNamedSecurityInfo function. These members are not returned in the structure returned by other security functions such as GetNamedSecurityInfo..."

Find Out If Two HANDLEs are Hardlinks to the Same File

别说谁变了你拦得住时间么 提交于 2019-12-11 05:44:56
问题 (This question is a toughie... it might require knowledge of NTFS and/or the use of NT Native APIs; be warned.) :) If I'm given two HANDLE s to two files, how can I definitively (not just with high probability) find out if the two HANDLE s belong to the exact same file and stream on the disk? This means, for example, checking the 8-byte NTFS file IDs isn't enough, because two HANDLE s with the same file ID can be pointing to different data streams of the same file, and I need to find out if

Accessing alternate data streams in files

人盡茶涼 提交于 2019-12-11 05:44:41
问题 On an NTFS file system, it is possible to have alternate data streams within a single file. Is it possible to access this information in a fully managed way? EDIT: additionally, I want to read from the alternate stream in an existing file. How is this achieved (using PInvoke if not possible using managed code only)? This question is similar, but is from early 2009 and the .Net answer uses PInvoke to write to a file, not read from it. Has support for this been added since then (to .Net 4.0?)

unique information in each file or folder NTFS

隐身守侯 提交于 2019-12-11 04:46:27
问题 im working on a project where in i need to populate some files from the server and show them in a webrowser to the user. Where user would be allowed to do basic CRUD operation on the file The problem is that i cannot assign the name of the file/folder as unique id which i need in case a user deletes/renames a file i should be able to identify the file later. My question is that is there anything unique about any file/folder in NTFS that is unique about them and that can be used? and how that

How to get rid of errors while creating a new rails app on a NTFS partition?

浪尽此生 提交于 2019-12-11 04:34:00
问题 When I create a new rails application on my NTFS partition I receive a bunch of errors. Though, with the same configuration I do not get any error when I create the project in my home directory which sits on a ext4 formatted partition. Here is what I get. $ rails new project create create README create Rakefile [...] create public/index.html create public/robots.txt create script create script/rails /home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1323:in `chmod': Operation

Does cygwin understand NTFS junction points?

烂漫一生 提交于 2019-12-11 03:45:45
问题 Does cygwin (1.7.x) understand Windows NTFS junction points (as created by mklink in Win7/2008 or sysinternals' junction.exe)? How do they differ from a symbolic link as created by "ln -s "? 回答1: Yes, Cygwin 1.7 does understand NTFS junction points and also NTFS symbolic links (as introduced with Vista). They appear as symbolic links to Cygwin programs, so that for example deleting such a link will only delete the link rather than the file being pointed too. The reason that Cygwin doesn't use

挂载 ntfs u盘 报错

老子叫甜甜 提交于 2019-12-11 02:59:58
强拔了一次u盘,再插上的时候就出现了一个大大错误提示框,提示信息贼多,我大概看了下,关键信息如下: NTFS is either inconsistent , or there is a hardware fault , or it's a SoftRAID / FakeRAID hardware . 就是说我把硬件把错了,其实之前也碰到过,处理也就是重新格式化,但是这次数据有点多,我就想找u盘的修复。 问题不大,后面还是找到了解决方法,linux下面 一如既往的一个命令搞定。 $ sudo ntfsfix /dev/sdf6 记得将 /dev/sdf6 换成你报错的设备文件 执行结果如下: Mounting volume .. . $MFTMirr does not match $MFT ( record 0 ) . FAILED Attempting to correct errors .. . Processing $MFT and $MFTMirr .. . Reading $MFT .. . OK Reading $MFTMirr .. . OK Comparing $MFTMirr to $MFT .. . FAILED Correcting differences in $MFTMirr record 0 .. .OK Processing of $MFT and

Calling FSCTL_CREATE_OR_GET_OBJECT_ID from Python

别等时光非礼了梦想. 提交于 2019-12-11 00:46:22
问题 I'm trying to get NTFS object IDs to use in a Python backup program. I'm in way over my head, but managed to create a function that returns... something. import sys import win32file import winioctlcon def object_id(filename): """ NTFS OBJECT_ID """ fhandle = win32file.CreateFileW( # FileName filename, # DesiredAccess win32file.GENERIC_READ, # ShareMode win32file.FILE_SHARE_READ | win32file.FILE_SHARE_WRITE, # SecurityAttributes None, # CreationDisposition win32file.OPEN_EXISTING, #

Why am I getting UnauthorizedAccessException on this folder?

↘锁芯ラ 提交于 2019-12-10 19:36:40
问题 According to MSDN, Directory.Exists should return false if a directory is not accessible. I have a path for which Directory.Exists returns true yet Directory.GetFiles throws a System.UnauthorizedAccessException. I have also tried the CanRead function here, but this too returns true for the path. The path is "C:\Users\{username}\AppData\Local\Microsoft\Windows\INetCache\Content.IE5" if knowing that helps. 回答1: You don't have access to content of this folder, because first - it's actually not a