Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264492AbUFVRId (ORCPT ); Tue, 22 Jun 2004 13:08:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264147AbUFVRHH (ORCPT ); Tue, 22 Jun 2004 13:07:07 -0400 Received: from tantale.fifi.org ([216.27.190.146]:49802 "EHLO tantale.fifi.org") by vger.kernel.org with ESMTP id S264895AbUFVQxF (ORCPT ); Tue, 22 Jun 2004 12:53:05 -0400 To: David Balazic Cc: "'Linux-Kernel@vger.kernel.org'" Subject: Re: Disk copy, last sector problem References: <600B91D5E4B8D211A58C00902724252C01BC0700@piramida.hermes.si> Mail-Copies-To: nobody From: Philippe Troin Date: 22 Jun 2004 09:52:54 -0700 In-Reply-To: <600B91D5E4B8D211A58C00902724252C01BC0700@piramida.hermes.si> Message-ID: <87smcncz6h.fsf@ceramic.fifi.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 760 Lines: 18 David Balazic writes: > Hi! > > cat /dev/hda > /dev/hdc > > This would not copy the entire disk as expected, but miss the last sector if > the number of > sectors on hda is odd. ( I used "cat" becasue it has the simplest syntax, > "dd" and other behave the same ). > Has this been fixed recently ? > What about suppport of other sectors sizes, like 8kb ? Have you tried setting the device block size to its sector size? blockdev --setbsz $(blockdev --getss /dev/...) /dev/... Phil. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/