Sorry. Missed the list.

On Wed, Aug 20, 2008 at 1:21 PM, Akhil <[EMAIL PROTECTED]> wrote:
> I am not sure whether this is a relevant question...please ignore if
> it seems nonsense....
>
> Is it possible in linux (2.6 or 2.4) to write/read directly onto a
> particular disk sector? If yes , how?

I hope i got your question right. Then ...

fd = open("/dev/sda", ...);
lseek(...);
write(fd,...,...);

> where /dev/sda is your whole disk. You may want to change
it to /dev/sda1 (etc... for logical sectors)

> lseek to your distination

> write.

Thanks.
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to [EMAIL PROTECTED]
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to