Python Forum
a class to memory map a disk
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a class to memory map a disk
#1
i have fuzzy memory of a class that would let me expose each sector of a disk. what i want to do is write a program to update selected bytes of a drive's partition table. it would let you get sectors in the form of a bytearray. then if the bytearray was modified, it would write it back to disk. it would be nice work with whole sectors. if not, i might have to do this in C.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
You won't get me to use it.
I have written disk access programs by cylinder, sector, etc. and was weary of my own code.
It took a long time for gparted to be accepted.
Reply
#3
was gparted written in Python? or are you saying that people are generally weary of things that reach down to bare metal? should i quit listening to nordic dark metal music?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#4
Gparted is written in C++. You could perhaps translate it to python as a proof of pythonic mastership and virtuosity.
Reply
#5
Quote:was gparted written in Python? or are you saying that people are generally weary of things that reach down to bare metal? should i quit listening to nordic dark metal music
Not saying I wouldn't accept it, but only after it had been around for a long time without bugs.

Can't advise on nordic dark metal music, but I wouldn't listen to that either.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020