Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Can python 'read disk sectors' like/via linux:dd ?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
n...@absamail.co.za  
View profile  
 More options Nov 6 2005, 1:03 am
Newsgroups: comp.os.linux.misc, comp.lang.python
From: n...@absamail.co.za
Date: Sun, 06 Nov 2005 00:03:51 -0600
Local: Sun, Nov 6 2005 1:03 am
Subject: Can python 'read disk sectors' like/via linux:dd ?
Hi,
in order to justify learning another language I'd first need to be convinced
that python could easily do the following:-

  ReadSectors2Bufr(hdx, StartSectr, SectrCnt, Bufr); <-- like linux: dd
  PrintDecOf4Bytes(Offset, Bufr);  <-- and also 1 and 2 byte values
  OverWriteBufr(Offset, Bufr, Byte);
  WriteBufr2Sectors ..... <-- like linux: dd

I guess one would normally use bash, but I'd rather invest effort
in python if it can do this.

Thanks for any info.

== Chris Glur.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tauno Voipio  
View profile  
 More options Nov 6 2005, 4:10 am
Newsgroups: comp.os.linux.misc, comp.lang.python
From: Tauno Voipio <tauno.voi...@INVALIDiki.fi>
Date: Sun, 06 Nov 2005 09:10:40 GMT
Local: Sun, Nov 6 2005 4:10 am
Subject: Re: Can python 'read disk sectors' like/via linux:dd ?

This means in practice that your program has to run
with root rights to handle complete disks or partitions.

Are you attempting to create a boot block virus?

--

Tauno Voipio
tauno voipio (at) iki fi


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
n...@absamail.co.za  
View profile  
 More options Nov 9 2005, 12:07 am
Newsgroups: comp.os.linux.misc, comp.lang.python
From: n...@absamail.co.za
Date: Tue, 08 Nov 2005 23:07:55 -0600
Local: Wed, Nov 9 2005 12:07 am
Subject: Can python 'read disk sectors' like/via linux:dd ?
OP wrote:
}in order to justify learning another language I'd first need to be
}convinced that python could easily do the following:-
}
}ReadSectors2Bufr(hdx, StartSectr, SectrCnt, Bufr); <-- like linux:dd
}PrintDecOf4Bytes(Offset, Bufr);   <-- and also 1 and 2 byte values
}OverWriteBufr(Offset, Bufr, Byte);
}WriteBufr2Sectors ..... <-- like linux: dd
}
}I guess one would normally use bash, but I'd rather invest effort
}in python if it can do this.
}
}Thanks for any info.

-----------

Firstly, if you asked me advice on where to buy some goats-milk,
I'd answer in the context of where YOU stand now [especially
since you told me], NOT form where I'm standing.

For several reasons I need many partitions on my IDEs.
The one lost the chain of logical partitions at hdx26.
It's not linux, but that's not important.
The most convenient tool for ME [at my present status] to
read/write blocks is linux: dd; and to see/edit is linux:mc.
This involves a lot of tiring manual work.
I previously read of a contributor who automated the steps
of linux:fdisk [iterating through size guesses] inside of a bash
script, to recover his lost [last] partition.
I'm not keen on investing time to become more fluent in Bash,
which could drive dd.
I have other reasons to invest time in Python.
If Pyton could 'drive' dd, I would try it.

My normal OS is oberon S3, which can do better than the
C-code above, but I want to work at the highest level.

Understand ?

Thanks,

== Chris Glur.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tauno Voipio  
View profile  
 More options Nov 9 2005, 2:39 pm
Newsgroups: comp.os.linux.misc, comp.lang.python
From: Tauno Voipio <tauno.voi...@INVALIDiki.fi>
Date: Wed, 09 Nov 2005 19:39:14 GMT
Local: Wed, Nov 9 2005 2:39 pm
Subject: Re: Can python 'read disk sectors' like/via linux:dd ?

Yes, I do.

But, there is a good tool to repair partition tables.
Google for 'gpart'.

--

Tauno Voipio
tauno voipio (at) iki fi


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google