From: Philippe Troin <phil@fifi.org>
To: David Balazic <david.balazic@hermes.si>
Cc: "'Linux-Kernel@vger.kernel.org'" <Linux-Kernel@vger.kernel.org>
Subject: Re: Disk copy, last sector problem
Date: 22 Jun 2004 09:52:54 -0700 [thread overview]
Message-ID: <87smcncz6h.fsf@ceramic.fifi.org> (raw)
In-Reply-To: <600B91D5E4B8D211A58C00902724252C01BC0700@piramida.hermes.si>
David Balazic <david.balazic@hermes.si> 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.
next prev parent reply other threads:[~2004-06-22 17:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-22 9:30 Disk copy, last sector problem David Balazic
2004-06-22 16:52 ` Philippe Troin [this message]
2004-06-23 17:59 ` Andries Brouwer
-- strict thread matches above, loose matches on Subject: below --
2004-06-24 7:32 David Balazic
2004-06-29 22:16 ` Bill Davidsen
2004-06-29 22:19 ` viro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87smcncz6h.fsf@ceramic.fifi.org \
--to=phil@fifi.org \
--cc=Linux-Kernel@vger.kernel.org \
--cc=david.balazic@hermes.si \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox