Question: Is there any way I can view contents of hard drive in hex or binary? I’m currently using debian

Answer: Yes, you can open any block device as a file. As a matter of fact, the philosophy of Linux is everything is a file.

The block device you want to access is likely /dev/hda or /dev/sda. Since it is a very big file, I suggest you use wxHexEditor:

wxHexEditor /dev/sda

From the website:

?

wxHexEditor is not an ordinary hex editor, but could work as low level ?disk editor too. If you have problems with your HDD or partition, you ?can recover your data from HDD or from partition via editing sectors ?in raw hex.

?

You can edit your partition tables or you could recover ?files from File System by hand with help of wxHexEditor. Or you might ?want to analyze your big binary files, partitions, devices…

wxHexEditor screenshot

💠

🔵 Best-selling data storage everyone's buying.

Fast, reliable, and on sale now. Thousands pick these weekly — don't miss Amazon's lowest storage prices.

Top 10 Bestsellers
🏆 4.7★+ Reviews
📦 Prime Shipping
👉 See today's best-selling hard drives, USB flash drives & SSDs on Amazon.com HDD · USB Flash Drives · SSD · External Drives
🛒
✅ Updated hourly — Amazon real-time ranking 🔥 Limited stock deals 🔗 Affiliate
⭐ Click to see complete best-selling list ⭐