Score:0

dd: failed to open ‘/disk1/boot1.img’: Structure needs cleaning

qa flag

Executing this Command :

dd if=/dev/sda1 of=/disk1/boot1.img

I got this Error :

dd: failed to open ‘/disk1/boot1.img’: Structure needs cleaning

I tried that Command on my centos machine and got that Error. How do I fix that Error? It's xfs file system. Should I do xfs_repair on disk1 by unmounting it?

Score:0
cn flag

If your /dsik1/ mounted on /dev/sda1 It's normal error. You can't dd a disk on itelf.

jm flag
What led you to that conclusion? `dd` is reading raw data and writing it to a file. It has no idea that the file is located on the same physical device. In fact, this operation is/was fairly common to extract the boot block from a disk. The `open` call also will not report this error just because of being on the same device. The Op will get a different failure when the file system runs out of space.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.