Re: Writing onto disk sector

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry. Missed the list.

On Wed, Aug 20, 2008 at 1:21 PM, Akhil <akhilesh.noida@xxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux