From: Bill Davidsen <davidsen@tmr.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Disk copy, last sector problem
Date: Tue, 29 Jun 2004 18:16:25 -0400 [thread overview]
Message-ID: <cbspbv$f56$2@gatekeeper.tmr.com> (raw)
In-Reply-To: <600B91D5E4B8D211A58C00902724252C01BC071A@piramida.hermes.si>
David Balazic wrote:
>>From: Andries Brouwer[SMTP:aebr@win.tue.nl]
>>
>>On Tue, Jun 22, 2004 at 09:52:54AM -0700, Philippe Troin wrote:
>>
>>>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/...
>>
>>If I understand correctly David is not reporting a problem, but
>>vaguely recalls that there was a problem in this area long ago,
>>and asks whet the current status is.
>>
>>(Yes, today things are better, but not perfect yet :-))
>>
>
> So the copy will still miss the last sector ?
> But the blockdev command is a working workaround ?
> Are there any downsides of setting the block size to
> 512 bytes right at boot for all hard drives ?
> What about 8kb sectors, do they work ?
Given that the change from 1k to 4k, I suspect that going to 512 will
suck rocks off the bottom of the ocean in terms of performance. I don't
think that 8k works in 2.4, it didn't work in my 2.6, but the error was
"device busy" so it may not be related to anything but having no spare
drive.
--
-bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
next prev parent reply other threads:[~2004-06-29 22:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-24 7:32 Disk copy, last sector problem David Balazic
2004-06-29 22:16 ` Bill Davidsen [this message]
2004-06-29 22:19 ` viro
-- strict thread matches above, loose matches on Subject: below --
2004-06-22 9:30 David Balazic
2004-06-22 16:52 ` Philippe Troin
2004-06-23 17:59 ` Andries Brouwer
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='cbspbv$f56$2@gatekeeper.tmr.com' \
--to=davidsen@tmr.com \
--cc=linux-kernel@vger.kernel.org \
/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