Search:

Type: Posts; User: copeg

Search: Search took 0.12 seconds.

  1. Re: How to read the mbr-sector ( sector zero of /dev/sda ) and print-out the partition table?

    Java is big endian, regardless of the machine it runs on. Thus little endian data will be read incorrectly when using the readInt, readLong, etc...of DataInputStream. If you believe this to be an...
  2. Re: How to read the mbr-sector ( sector zero of /dev/sda ) and print-out the partition table?

    You can read binary files using either RandomAccessFile or InputStream (eg DataInputStream). Just read (or seek) to the place you want and read in the bytes, mapping them to your data model manually....
Results 1 to 2 of 2