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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content