Skip to main content

All Questions

Tagged with
8 votes
3 answers
7k views

How can I check the cluster size (allocation unit size) of an exFat partition on Windows?

I want to reformat an exFAT USB drive with the same allocation size as the current factory exFAT partition, so when it ask me for allocation size, I don't know what to answer: Thus the question: How ...
hanshenrik's user avatar
  • 1,735
0 votes
1 answer
6k views

How do I determine what is the best block size for a 960 PRO M.2?

I have a Samsung NVMe SSD 960 PRO M.2. I was in the process of installing Gentoo on it. gparted notified me that the physical block size, is different than what the kernel reports. I thought the ...
Herbert Smith's user avatar
2 votes
5 answers
4k views

Is it possible for the filesystem's logical block size to be less than the physical sector size?

Let's say we have a block device (eg. Hard Drive) with 4096 bytes sector size and no 512 bytes emulation is available (The hard drive only understands units of 4096 bytes size). Is is possible to ...
Karim Manaouil's user avatar
3 votes
2 answers
3k views

File slack / RAM slack: why does Windows write arbitrary RAM bytes to disk? Does Linux too?

I just read about file slack in a book about Windows 7. What I already (think to) know: Windows stores data on the disk in clusters. A cluster usually contains 8 sectors of 512 bytes each, so 4096 ...
Byte Commander's user avatar
3 votes
1 answer
3k views

Linux command to get FAT32 sectors of a file

I'd like to find an equivalent command to debugfs but for FAT32 partitions within Linux. I need to list all the sectors corresponding to a specific file (I'm working on a disk imaged with dd). If ...
supervic's user avatar
2 votes
1 answer
593 views

File size on disk gets minimum equal to memory page size instead of disk sector size?

I often write small programs of sizes < 512 bytes, which is my disk's sector size. However, the du command always shows these files' disk usage at 4K. My memory page size is 4K. So I was ...
WikiWitz's user avatar
  • 1,281
5 votes
3 answers
426 views

Does NTFS (or any file system) support files outside of the partition?

So on my C: drive, there was a file called BOOTSECT.BAK. Not knowing what it is, I opened it up in HxD and the first 14 bytes were B \0 O \0 O \0 T \0 M \0 G \0 R \0 corresponding to the UTF-16LE ...
Cole Tobin's user avatar
4 votes
2 answers
2k views

When referring to filesystems and disks, are "disk sectors", "disk blocks", "chunk size", and "disk records" the same thing?

I'm pretty sure that a sector is basically a block, but I was moreso confused about chunk sizes and especially records. Some system calls require that your area in memory that buffers data from disk ...
Kaitlyn Mcmordie's user avatar
2 votes
1 answer
749 views

Determine which sectors of a hard disk a given file occupies?

Is there a way I can see which sectors of the hard disk a given file occupies? The filesystem is ext3 or ext4 on Linux.
HighCommander4's user avatar