ntfs

Can I run C++ projects in Ubuntu from an NTFS partition?

回眸只為那壹抹淺笑 提交于 2019-12-07 13:54:27
I have an extra NTFS partition to store data that I want to use both from WIndows and Ubuntu. I made a C++ project there. It was a simple Hello World console application. I get this error when I run it. sh :1 :/media/Data1/blah/blah/project/bin/debug/project :permission denied My fstab file looks like this: # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 Blkid: /dev/sda1: SEC_TYPE="msdos" LABEL="DellUtility" UUID="5450-4444" TYPE="vfat" /dev/sda2: LABEL="RECOVERY" UUID="4248184648183ADD" TYPE="ntfs" /dev/sda3: LABEL="OS" UUID=

How do you reduce the size of a folder's index file in NTFS?

六月ゝ 毕业季﹏ 提交于 2019-12-07 09:23:06
问题 I have a folder in NTFS that contains tens of thousands of files. I've deleted all files in that folder, save 1. I ran contig.exe to defragment that folder so now it's in 1 fragment only. However, the size of that folder is still 8MB in size. This implies that there's a lot of gap in the index. Why is that? If I delete that one file, the size of the index automatically goes to zero. My guess is because it gets collapsed into the MFT. Is there any way to get NTFS to truly defragment the index

Delphi 2009 classes / components to read/write file permissions

淺唱寂寞╮ 提交于 2019-12-07 07:51:27
问题 Does anyone have a set of classes / components that will work with Delphi 2009 (Unicode) to read and write NTFS file permissions? There was a thing called "NTSet" - but they stopped development at Delphi 2006 about 3 years ago :-( Any other takers?? Thanks! Marc 回答1: JCL has units to deal with file permissions, and they claim D2009 compatibility. 回答2: Colin Wilson's "NT low-level" component set wraps the APIs you need, and supports Delphi 2009 as well as earlier releases. However you may need

FILESYSTEM vs SQLITE, while storing up-to 10M files

↘锁芯ラ 提交于 2019-12-07 06:25:51
问题 I would like to store up-to 10M files, 2TB storage unit. The only properties which I need restricted to filenames, and their contents (data). The files max-length is 100MB, most of them are less than 1MB. The ability of removing files is required, and both writing and reading speeds should be a priority - while low storage efficiency, recovery or integrity methods, are not needed. I thought about NTFS, but most of its features are not needed, while can't be disabled and considered to be an

Creating a file using Perl on Windows in a directory the length of whose name exceeds 220 characters

余生长醉 提交于 2019-12-07 05:41:24
问题 I'm experiencing a problem where I cannot create a file under a directory the length of whose name exceeds 220 characters. The following is a test script that reproduces the observed behavior, at least on my machine: use warnings; use strict; use Win32::LongPath; print system ('rmdir /s /q test'); mkdirL('test'); for my $i (200 .. 255) { my $dir_name = 'test/' . sprintf("%04d", $i) . ('a' x ($i-4)); mkdirL($dir_name); openL(\my $fh, '>', "$dir_name/" . ('_' x 200) . '.txt') or die "$^E";

Windows How to change or insert physical sector into another file?

半城伤御伤魂 提交于 2019-12-07 03:28:26
I have 20 files where the data structure is sector aligned to 4k in NTFS. I want to combine all files without copying any data . The goal is to write a sort of insert API that works by directly changing NTFS Virtual Clusters and Physical Clusters. The goal is to have a file sized 1TB all from 50GB chunks without copying. All data is already on the disk and on the same volume. This would work by directly setting the NTFS logical cluster inside the file. I can read the Virtual to Physical translation of the files with FSCTL_GET_RETRIEVAL_POINTERS Source: VCN: 0 Cluster: 16 LCN: 54723798 Target:

NTFS Alternate Data Streams - Good or bad Idea?

孤街浪徒 提交于 2019-12-07 03:09:26
问题 I would like to store some Application-Related Metadata for Files, and NTFS Alternate Data Streams (AltDS) would allow me to store this metadata directly on the files rather than in a separate database. I just don't feel like this is a good idea. I know that this only works on NTFS, but at least if the user copies/moves the files to a Non-NTFS drive they get a Warning from Windows (yeah, yeah, no one reads warnings, I know)- But also, storing additional data on a file can become very wasteful

Fast Search On FAT32/NTFS File System

爷,独闯天下 提交于 2019-12-06 16:39:45
问题 I'm writing a program that searches through the entire file system by file name and file contents (plain text). Is there any algorithm or open source project that could make the search very fast? I'm doing this on Windows with FAT/NTFS file systems and I don't want indexing. 回答1: Downloaded a NTFS searcher (named NTFS-Search) on SourceForce and it does the job very well! It first reads the 'FAT'once and after that it is incredibly fast. Only the interface is in German. You can download the

Extract $bitmap file from NTFS Image

▼魔方 西西 提交于 2019-12-06 16:21:49
Does anyone know of any software that can extract the $bitmap file from NTFS images? Or does anyone know of any site that documents NTFS enough so that I can code this myself? (I want to read the $bitmap so I can identify what clusters are not in use, so they can be removed from the images.) There's one short paragraph in this early publication by a talented person: http://www.alex-ionescu.com/NTFS.pdf I answered this one in a different place, but on a live Windows machine the best answer is probably to use FSCTL_GET_VOLUME_BITMAP . This will reflect any changes the FS knows about that aren't

How to create folder with trailing dot (.) in .NET/C#?

不打扰是莪最后的温柔 提交于 2019-12-06 13:43:28
I need to create folders with trailing dots (.) using C#. Here is my code: System.IO.Directory.CreateDirectory("d:\\MyCorp Inc."); But the folder is created without the final dot. Is there a solution? I am using .NET Framework 4.5/C#. My file system is NTFS, on Windows 8. Keith Nicholas Try: using System.Runtime.InteropServices; class Program { [DllImport("kernel32.dll", SetLastError = true)] public static extern bool CreateDirectory(string lpPathName, IntPtr lpSecurityAttributes); private static void Main(string[] args) { CreateDirectory(@"\\?\c:\temp\MyCorp Inc.", IntPtr.Zero); } And refer