Questions tagged [sector]

104 questions
72
votes
9 answers

How can I determine the sector size in windows?

How can I determine the Physical Sector Size (e.g. if i have an Advanced Format drive with 4,096 byte sectors rather than the legacy 512 byte sectors) in Windows 7? I know that by clicking on a file and get properties we can find out the NTFS…
Mojtaba Kamyabi
  • 3,440
  • 3
  • 29
  • 50
24
votes
1 answer

Difference between blocks and sectors

With reference to this article, there is a line that reads: Because there are limits to the number of blocks, or drive addresses, that an operating system can address. By defining a block as several sectors, an OS can work with bigger hard drives…
SexyBeast
  • 7,913
  • 28
  • 108
  • 196
20
votes
1 answer

How to draw a circle sector on an html5 canvas?

I'm trying to make a sort of pie-chart shape on a canvas element, however I can't seem to find any function that does this by itself. I only seem to be able to draw full circles and segments. Is there an easy way to do this? (See also: Wikipedia on…
dsavi
  • 1,723
  • 3
  • 12
  • 8
19
votes
2 answers

How can I draw a circle sector with the ellipse class?

I would like to make a sector of a circle on WP7. I tried to do this with the ellipse class and I found a lot of solution, which make a gauge or pie chart or something, but I need just the essence. Could anyone help? the aim is to show just one part…
laszlokiss88
  • 4,001
  • 3
  • 20
  • 26
14
votes
4 answers

Draw an arc/circle sector in QML?

I know that it is possible to draw a circle in QML using the following code: Rectangle { width: 150 height: 150 anchors.horizontalCenter: parent.horizontalCenter anchors.top: parent.top color: "#095e7b" border.color:…
RafaelTSCS
  • 1,234
  • 2
  • 15
  • 36
12
votes
1 answer

What do "chunk", "block", "offset", "buffer", and "sector" mean?

I have seen some of the scripts which are either dealing with archive or binary data or copy files (not using python default functions) use chunk or block or offset or buffer or sector. I have created a Python application and few of the requirements…
sundar_ima
  • 3,604
  • 8
  • 33
  • 52
10
votes
1 answer

What does "CPU performs an endless jump" mean?

I was reading this: https://www.cs.bham.ac.uk/~exr/lectures/opsys/10_11/lectures/os-dev.pdf And I read on page 8 the following: e9 fd ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 * 00 00 00 00 00 00 00 00…
Luna
  • 193
  • 1
  • 9
6
votes
2 answers

Windows: Write Directly To CD-R Sectors

Are there any libraries or Windows API functions that enable writing to the sectors of a CD-R directly? I am able to read sectors from the drive using the ReadFile function provided by the Windows API but using the WriteFile function on the drive…
Dword
  • 61
  • 1
4
votes
1 answer

LogicalBytesPerSector vs PhysicalBytesPerSector

When I do the command fsutil fsinfo sectorInfo c:, I receive this output: LogicalBytesPerSector : 512 PhysicalBytesPerSectorForAtomicity : 4096 PhysicalBytesPerSectorForPerformance : …
zeus
  • 12,173
  • 9
  • 63
  • 184
4
votes
4 answers

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?
Dmitry Brant
  • 7,612
  • 2
  • 29
  • 47
4
votes
4 answers

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…
titaniumdecoy
  • 18,900
  • 17
  • 96
  • 133
4
votes
1 answer

how to write into USB boot sector?

I have written a boot sector program using nasm i want load that into my pen drive ( firt 512 byte sector) to make my pen drive bootable and run that simple program.my question is how to write that binary file into my first 512 byte portion of my…
Saravanan
  • 235
  • 3
  • 9
4
votes
1 answer

Understanding Hard Disk Sector Size

I'm currently developing a kernel mode driver that interacts with raw disk operations. I wish to understand more about the concept of Sector Size. Is a sector size a constant value per physical drive that was set when the HDD was manufactured ? Or…
Michael
  • 796
  • 11
  • 27
4
votes
2 answers

Assembly - Read next sector of a virtual disk

As any programmer in the world at least once in his/her life, I am trying to create my "revolutionary", the new and only one operating system. :D Well, I am using a virtual emulator (Oracle VM Virtual Box), for which I create a new unknwon operating…
ali
  • 10,927
  • 20
  • 89
  • 138
3
votes
1 answer

Usage of Sector/Sphere in production systems

I just found out about sector/sphere and am interested to use it in future systems. Is anyone currently using sector/sphere (http://sector.sourceforge.net/) in production systems? If so, what are your experiences with it? Does anyone know how this…
Someone
  • 31
  • 2
1
2 3 4 5 6 7