1. LBA access on harddrives


Is there a function i am not finding, related to puts()ing, or poking, or writing, or reading to/from LBA addresses on a harddrive? I see nothing under low level io.e operations.

useless

new topic     » topic index » view message » categorize

2. Re: LBA access on harddrives

useless_ said...


Is there a function i am not finding, related to puts()ing, or poking, or writing, or reading to/from LBA addresses on a harddrive? I see nothing under low level io.e operations.

useless

Windows applications generally cannot do this; there apperently are ways, since a few low-level recovery tools do exist for Windows, but you'd have to find and wrap the needed API functions to use them from Eu. Note that writing to a partition may be tricky; if its a partition type Windows recognizes, it will invariably mount it and likely corrupt anything you try to write. If it is a custom type, it will tend to just pester you to format it. (On Linux, the standard Eu file I/O routines, seek/puts/etc, work just fine, even on multi-terabyte disks)

new topic     » goto parent     » topic index » view message » categorize

3. Re: LBA access on harddrives

eukat said...

Is there a function i am not finding, related to puts()ing, or poking, or writing, or reading to/from LBA addresses on a harddrive? I see nothing under low level io.e operations.

No. Under Linux/GNU and the BSDs, you simply open the hard disk, do some math to convert the LBA address into an index for a specific byte, then call seek() and puts() and gets() normally. There's no need to go to the low-level IO to do this.

std/io.e is for high level io operations, we currently don't have a library for low-level ones.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu