Bug 176290 - RHEL3: raw(8) manpage has old information about dd
RHEL3: raw(8) manpage has old information about dd
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: util-linux (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Karel Zak
Ben Levenson
: 146685 (view as bug list)
Depends On:
Blocks: RHEL3U8CanFix
  Show dependency treegraph
Reported: 2005-12-20 16:54 EST by Buck Huppmann
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version: RHBA-2006-0456
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-07-20 10:46:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Buck Huppmann 2005-12-20 16:54:42 EST
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):

How reproducible:

Steps to Reproduce:
1. man 8 raw

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
Comment 1 Karel Zak 2006-02-15 05:47:18 EST
There's same report for RHEL4: #181549.
Comment 4 Bob Johnson 2006-04-11 11:55:27 EDT
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.
Comment 8 Red Hat Bugzilla 2006-07-20 10:46:11 EDT
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.

Comment 9 Karel Zak 2006-08-10 08:02:12 EDT
*** Bug 146685 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.