[vox-tech] Calculating partition sizes
Charles Polisher
vox-tech@lists.lugod.org
Wed, 14 May 2003 21:35:10 -0700
On Wed, May 14, 2003 at 12:45:29PM -0700, Mark K. Kim wrote:
> There's no hda0 ^_^
>
> -Mark
>
> On Wed, 14 May 2003, Micah J. Cowan wrote:
>
> > On Tue, May 13, 2003 at 07:51:02PM -0400, Mike Simons wrote:
> > > On Tue, May 13, 2003 at 04:32:22PM -0700, Micah J. Cowan wrote:
> > > > On Tue, May 13, 2003 at 03:49:29PM -0700, Mark K. Kim wrote:
> > > > > I'm trying to calculate the exact size of each partition (so I can dd it).
> > > >
> > > > I could be wrong, but can't you just dd 'em without specifying the
> > > > size? won't e.g. /dev/hda2 EOF when it reaches the end of the 3rd
> > > > partition?
> > >
> > > Micah,
> > >
> > > Yes, you can just dd the partition... and it will stop with EOF.
> > > However, it will stop at the last block of hda2 not at the end of hda3.
> >
> > Wouldn't hda3 be the *Fourth* partition? (what's hda0?)
{ /proc/partitions is a quick way to check on # blocks and
to identify what partitions are defined on all drives.
}