From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3) Gecko/20050104 Red Hat/1.4.3-3.0.7 Description of problem: The raw man page says: The Linux dd (1) command does not currently align its buffers correctly, and so cannot be used on raw devices. Yet the info on dd section gives the following example: disk=/dev/rdsk/c0t1d0s2 tape=/dev/rmt/0 # Copy all but the label from disk to tape. (dd bs=4k skip=1 count=0 && dd bs=512k) <$disk >$tape # Copy from tape back to disk, but leave the disk label alone. (dd bs=4k seek=1 count=0 && dd bs=512k) <$tape >$disk disk=/dev/rdsk/c0t1d0s2 tape=/dev/rmt/0 # Copy all but the label from disk to tape. (dd bs=4k skip=1 count=0 && dd bs=512k) <$disk >$tape # Copy from tape back to disk, but leave the disk label alone. (dd bs=4k seek=1 count=0 && dd bs=512k) <$tape >$disk I see two problems here. First, dd seems to run just fine when talking to raw devices, but the man page for raw says not to do this. Either fix the dd program or update your documentation. Second, the dd info page has an example from a System V type Unix (I'm judging by the device path names. It is certainly not the goofy device names used for raw devices i n linux.) environment. But this example is using both a raw disk and a raw tape drive! Is this a good example for linux people to follow, knowing that dd does not work with raw devices? I would redo these documents to reflect a linux device file naming convention for a disk and a tape drive bound to raw device names. ---jjh Version-Release number of selected component (if applicable): coreutils-4.5.3-26 How reproducible: Always Steps to Reproduce: 1. info dd 2. man raw 3. Additional info:
The dd(1) command in Red Hat Enterprise Linux 3 does in fact align buffers correctly for raw devices, and so the error is in the raw(8) man page.
*** This bug has been marked as a duplicate of 176290 ***