I cannot run the dd command on a raw device to test it, I am getting an error message 'dd: writing '/dev/raw/raw1': Invalid argument'. What is wrong?

Updated -

Raw devices provide direct raw access to sectors on a block device. To write to a raw device using the dd command you need to specify the bs ( block size ) to dd to be an exact multiple of the real devices sector size.

For example, if a raw device is created on a device that has a sector size of 512, the bs value must be an exact multi...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.