I was writing some assembly BIOS code and in general we use interrupt to access disk functionality. We give commands like seek to this sector read bytes etc etc. but how does disk knows whether it is first sector and similarly how does cd/dvd identify sectors as cd/dvd are inserted in cd drive from random position. Is there any kind of identification number associated with sectors in those hardwares?
How does sectors, track are identified on disk and CD/DVD?
851 Views Asked by Rahul At
1
There are 1 best solutions below
Related Questions in ASSEMBLY
- (x64 Nasm) Writeline function on Linux
- Is the compiler Xcode uses to produce Assembly code a bad compiler?
- Why do we need AX instead of MOV DS, data directly with a segment?
- Bootloader in Assembly with Linux kernel
- How should the byte sequence 0x40 0x55 be interpreted by an x86-64 emulator?
- C++ code into assembly
- Drawing circles of increasing radius
- Assembly print on screen using pop ecx
- Equivalent to asm volatile in Gfortran?
- Show 640x480 BMP image with inline ASM c++
- Keep track of numbers entered in by a user in assembly
- 8086 Assembly Arrays with I/O
- DB ASM variable in Inline ASM C++
- What does Jump to means in callgrind?
- How to convert binary into decimal in assembly x8086?
Related Questions in X86
- Why do we need AX instead of MOV DS, data directly with a segment?
- Drawing circles of increasing radius
- Assembly print on screen using pop ecx
- How to add values from vector to each other
- Intel x64 instructions CMPSB/CMPSW/CMPSD/CMPSQ
- Compact implementation of logical AND in x86 assembly
- Can feenableexcept hurt a program performance?
- How do I display the result and remainder in ax and dx in Assembly (tasm)
- ASM : Trouble using int21h on real machine
- jmp instruction *%eax
- What steps are needed to load a second stage bootloader by name on a FAT32 file system in x86 Assembly?
- Assembly code to print a new line string
- Write System Call Argument Registers
- How to jump to an address saved in a register in intel assembly?
- Find middle value of a list
Related Questions in HARDWARE
- How to get temperature value from DS18B20 voltage
- Swich table in case of CRC error
- How verify server's hardware before install it into data center?
- What strategies and practices are used, when running very intense and long calculations, to ensure that hardware isn't damaged?
- Hardware upgrade for developing android App on Android studio
- XMega: CDC on USB composite controller does not function properly
- How do user-space applications control hardware (Location/Network/Wifi) in Android?
- How to get parameter name of "Target hardware"-Field in "Run on target hardware" in Matlab Simulink?
- lshw return network device is unclaimed, I need more diagnostic
- How to get started on creating a safe that will open and close upon entering a passcode into it?
- Generating fingerprint of virtual machines
- Can Java control hardware devices on PC?
- Using Dependency Injection for hardware abstraction
- Get Ram Information OSX
- Benefit of hardware with mobile access instead of wifi
Related Questions in X86-16
- How to convert binary into decimal in assembly x8086?
- Compact implementation of logical AND in x86 assembly
- Sorting string ASC/DSC word by word in a sentence
- What does DX + 2 mean in mov ah,9 int 21h?
- Reverse Program emu8086
- how to print the data from a memory in assembly 8086
- Why do I get stack overflow when my assembly code is called form a procedure but not main?
- This code for binary output does not work properly - Assembly language
- Trying to perform a factorial in assembly but causing stack overflow
- Assembly (emu8086) not allowing moving of bytes into 8-bit registers
- int 10h 13h bios string output not working
- Assembler function gets overflow
- How to access the CHS information from the partition table of MBR?
- Print multiplication table assembly language
- Link object files from header files in real mode when using GCC -m16 option?
Related Questions in OPTICAL-DRIVE
- Vendor-specific SCSI commands reference for optical drives
- The results from python's shutils.disk_usage() on an optical drive differs from the properties reported by windows on the same drive
- How does sectors, track are identified on disk and CD/DVD?
- Glan polarizer, field of view
- Run apple script after mac resumes from sleep mode
- Where can I find the set of exit codes that may be returned by dvd+rw-mediainfo
- How to determine capacity of blank inserted burnable optical media (CD, DVD, Blu-Ray disc) from Windows command line or batch?
- What approach works best for quickly reading files off of optical drives?
- Allow Windows RDP users to access removable media
- modeling spherical mirror in python using predefined function
- Eject disk if inserted media is blank with applescript
- DVD or CD Player?
- How can I programmatically determine the capabilities of an optical drive in Win32
- Recovery from optical media ignoring read errors
- How to tell if an optical drive has ejected
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Optical discs have one continuous spiral outward, and yes there's some intro area for the drive to find out the disc angle for the start of the first sector. A quick google didn't find specific details on how exactly it does this, but presumably some formatting / metadata outside the usable / user data.
Boundaries between sectors are marked by a synchronization code that's not used anywhere else (https://en.wikipedia.org/wiki/Track_(optical_disc)#Sector_structure). That description of Red Book audio sectors also applies to data CDs: a CD-ROM uses the same underlying framing as Red Book audio CDs, but with data inside that. (And another layer of error correction, giving 2048 error-corrected bytes of data per sector of 2352 bytes of first-level-error-corrected sector data.)
Tracks in an optical-disc sense are totally different from hard-drive / floppy "tracks". (Because there's only one spiral, not multiple rings of data). CD tracks are an arbitrary number of sectors, and track boundaries on audio CDs are normally placed at song boundaries.
Note that Cylinders / Heads aren't meaningful for optical discs. According to this answer, only the BIOS LBA read function works, (AH=42h), not the legacy CHS function (AH=02h). So the BIOS doesn't need to invent a fake CHS geometry to give access to the purely linear sectors.
Related: