lkml.org 
[lkml]   [2004]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: Disk copy, last sector problem
Date
> 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 ?

Thanks for your time ;-)
David
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.050 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site