sector

Reading a sector on the boot disk

This is a continuation of my question about reading the superblock. Let's say I want to target the HFS+ file system in Mac OS X. How could I read sector 2 of the boot disk? As far as I know Unix only provides system calls to read from files, which are never stored at that location. Does this require either 1) the program to run kernel ...

Get sector location of a file

Based on a file name, or a file handle, is there a Win-API method of determining what physical sector the file starts on? ...

Recently, i am on a project which needs raw read / write sector of drives

Before, I post a question here asking for advice on how to read and write data from and into drive, not via file label like "aaa.txt", but just sectors.. I was advised to try read and write.... but new problems'v raised... the hairy parameters int _read( int handle, void *buffer, unsigned int count ); when i use the function and wanto ...

How to read individual sectors/clusters using DeviceIoControl() in Windows?

I dropped my laptop while Windows was preparing to hibernate and as a result, I got a head crash on the hard drive. (Teaches me to get a hard drive and/or laptop with a freefall sensor next time around.) Anyway, running SpinRite to try to recover the data has resulted in all the spare sectors on the disk to all be all used up for all the...

How to use Int13H Ext to read /write all sectors on each partition of harddisk (>8GB)

I use C- standard with standard lib to write a program to read sectors on harddisk on non-OS Please tell me more details how can I specify and read all part of sectors on partition of harddisk? E.g : how can I read all MBR, DBR, FAT, Root and Data part and get all information value? ...

How to find floppy\ CD sector size in Linux?

Hi, How can I get the sector size for floppy and CD disks in Linux, via C++ code? Thank you all. ...

How can I write a hard drive sector as reserved?

I am hex editing a hard disk and I would like to mark some hard drive sectors as reserved so that they are not overwritten by Windows (Vista or 7). I think this is possible, since during a defrag, the disk says that there are some sectors that aren't movable. How can I do this? ...