From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11) Gecko/20021120 Netscape/7.01 Description of problem: also wrong in RHE 4 package raw(8)'s BUGS section says: The Linux dd (1) command does not currently align its buffers cor- rectly, and so cannot be used on raw devices. coreutils-4.5.3/src/dd.c says: The page alignment is necessary on any linux system that supports either the SGI raw I/O patch or Steven Tweedies raw I/O patch. It is necessary when accessing raw (i.e. character special) disk devices on Unixware or other SVR4-derived system. */ real_buf = xmalloc (input_blocksize + 2 * SWAB_ALIGN_OFFSET + 2 * page_size - 1); and dd Works for Me Version-Release number of selected component (if applicable): util-linux-2.11y-31.11 How reproducible: Always Steps to Reproduce: 1. man 8 raw 2. 3. Additional info: it certainly seems to work (before it runs off the end of the disk): % sudo /bin/raw /dev/raw/raw1 /dev/sda /dev/raw/raw1: bound to major 8, minor 0 % sudo /bin/raw /dev/raw/raw2 /dev/sdb /dev/raw/raw2: bound to major 8, minor 16 % sudo dd if=/dev/raw/raw1 of=/dev/raw/raw2 bs=512k dd: reading `/dev/raw/raw1': No such device or address 140014+1 records in 140014+1 records out % head -1 /proc/partitions; grep -w sda /proc/partitions major minor #blocks name rio rmerge rsect ruse wio wmerge wsect wuse running use aveq 8 0 71687372 sda 1400125 68297763 282492438 1896570 16901 24763 334640 533560 0 1249410 2430030
There's same report for RHEL4: #181549.
This issue is on Red Hat Engineering's list of planned work items for the upcoming Red Hat Enterprise Linux 3.8 release. Engineering resources have been assigned and barring unforeseen circumstances, Red Hat intends to include this item in the 3.8 release.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0456.html
*** Bug 146685 has been marked as a duplicate of this bug. ***