Just on a hunch how much does it copy if you give it a BS=1GB?

This might be an uncaught 32 bit int on only the block size value.

{^_^}

On 2012/02/01 09:58, Andrey Y. Shevel wrote:
Hi Stephen,

thanks for the reply.

I am not sure that I do understand you (sorry for my stupidity).

I have
=======================================
[root@pcfarm-10 ~]# yum list | grep coreutil
Failed to set locale, defaulting to C
coreutils.x86_64 5.97-34.el5 installed
policycoreutils.x86_64 1.33.12-14.8.el5 installed
policycoreutils-gui.x86_64 1.33.12-14.8.el5 installed
policycoreutils-newrole.x86_64 1.33.12-14.8.el5 installed
[root@pcfarm-10 ~]# rpm -q --file /bin/dd
coreutils-5.97-34.el5
=============================================

Presumably all packages are appropriate (they have suffix x86_64) as shown by 
yum.

At the same time rpm does show packages without above suffixes

=========================
[root@pcfarm-10 ~]# rpm -qa | grep coreutil
policycoreutils-1.33.12-14.8.el5
policycoreutils-newrole-1.33.12-14.8.el5
coreutils-5.97-34.el5
policycoreutils-gui-1.33.12-14.8.el5
=========================




On Wed, 1 Feb 2012, Stephen J. Gowdy wrote:

Date: Wed, 1 Feb 2012 11:32:40 +0100 (CET)
From: Stephen J. Gowdy <[email protected]>
To: Andrey Y Shevel <[email protected]>
Cc: [email protected]
Subject: Re: coreutils for 64 bit

It says it only copied 2.1GB. You are runnig a 64bit OS. You reinstalld the
same coreutils package. You need to change the format of the package names
from "rpm -qa" if you want to see the architecture ("man rpm" should help you
figure out how).

On Wed, 1 Feb 2012, Andrey Y Shevel wrote:

Hi,

I just paid attention that utility 'dd' uses just 2 GB even I use greater
block size (BS). For example

=====
[root@pcfarm-10 ~]# dd if=/dev/zero of=/mnt/sdb/TestFile-S1 bs=12GB
count=1
0+1 records in
0+1 records out
2147479552 bytes (2.1 GB) copied, 15.8235 seconds, 136 MB/s
============

BTW,

[root@pcfarm-10 ~]# uname -a
Linux pcfarm-10.pnpi.spb.ru 2.6.18-274.17.1.el5xen #1 SMP Tue Jan 10
16:41:16 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@pcfarm-10 ~]# cat /etc/issue
Scientific Linux SL release 5.7 (Boron)
Kernel \r on an \m




I decided to reinstall coreutils:

[root@pcfarm-10 ~]# yum reinstall coreutils.x86_64
Failed to set locale, defaulting to C
Loaded plugins: kernel-module
Setting up Reinstall Process
Resolving Dependencies
--> Running transaction check
---> Package coreutils.x86_64 0:5.97-34.el5 set to be updated
--> Finished Dependency Resolution
Beginning Kernel Module Plugin
Finished Kernel Module Plugin

Dependencies Resolved

===========================================================================================

Package Arch Version
Repository
Size
===========================================================================================

Reinstalling:
coreutils x86_64 5.97-34.el5 sl-base
3.6 M

Transaction Summary
===========================================================================================

Remove 0 Package(s)
Reinstall 1 Package(s)
Downgrade 0 Package(s)

Total download size: 3.6 M
Is this ok [y/N]: y
Downloading Packages:
coreutils-5.97-34.el5.x86_64.rpm | 3.6
MB
00:05
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : coreutils
1/1

Installed:
coreutils.x86_64 0:5.97-34.el5


Complete!
=========================

However after that I see


[root@pcfarm-10 ~]# ls -l /bin/dd
-rwxr-xr-x 1 root root 41464 Jul 26 2011 /bin/dd
[root@pcfarm-10 ~]# rpm -q --file /bin/dd
coreutils-5.97-34.el5


[root@pcfarm-10 ~]# rpm -qa | grep coreutils
policycoreutils-1.33.12-14.8.el5
policycoreutils-newrole-1.33.12-14.8.el5
coreutils-5.97-34.el5
policycoreutils-gui-1.33.12-14.8.el5


i.e. no package with name coreutils.x86_64

I failed to find anything on the topic in scientific linux mailing list.

Does somebody know about dd for 64 bit ?

Many thanks in advance,

Andrey




Reply via email to