From: Gary Hasson Date: 2009-12-01T02:16:15+09:00 Subject: Re: Ruby byte access to disk sectors like dd does My reasons for wanting to use Ruby in place of dd is that I wanted to be able to do whatever I wanted to the hard drive from a wxRuby GUI. I have several Bash scripts that do things that I would prefer to use a GUI for. Plus, I wanted to see just how well Ruby could do low-level tasks. I used sysread and syswrite because, as the manual states: "syswrite is a low-level, unbuffered, nontranscoding version of write". If I am going to modify the partition table on the hard drive, I want to be sure that reads and writes are doing what I tell them to do. As for writing only one byte in my example, it was simply a test example. If I could correctly write one byte to the unpartitioned area of my hard drive, then I knew that Ruby could do what I wanted. Gary -- Posted via http://www.ruby-forum.com/.