1

The question is about disks that were formatted as 520 or 528 bytes rather than 512 bytes. How does the operating system read data if I cannot access to those disks via hexedit/cat or any viewer?

Is there a way that I can read and write data coming from 520 formatted disks without reformatting the size to 512 on Ubuntu?

0

2 Answers 2

3

If you want to read the data from the disk, you plug it back into the storage device it came out of, along with the rest of the disks that comprised whatever storage array it was a part of.

Linux cannot read disks formatted with 520-byte sectors. (Nor does Windows.) If you want to use this drive with Linux, you need to reformat it to 512-byte sectors. Instructions to do this are very easy to find on the Internet.

4
  • Note - not all disks with 520b sectors can be reformatted to 512b sectors.
    – fpmurphy
    Commented Jul 15, 2020 at 5:07
  • Correct. Not all disks can be reformatted to resize the sector size.
    – netrox
    Commented Jul 17, 2020 at 4:15
  • But this is not really my question though... exactly how do I view the content of what's in the disk via the RAID configuration? Those disks formatted as non-512B are not readable with cat or hexedit when you attempt to open a /dev/sd* device so how do I view them in raw format if not with hexedit?
    – netrox
    Commented Jul 17, 2020 at 4:17
  • @netrox Again, you don't. If you really want to read the data on the disks, you plug them back into the device they were designed for. Commented Sep 4, 2020 at 1:31
3

Purely for recovery purposes, on linux machines, have a look at the sg_dd, sg_read, sg_read_long utilities from the sg3-utils package. These work on /dev/sg... devices NOT /dev/sd... and should allow to at the very least pull a binary image of the disk, albeit some post processing might be required.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .