All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@turbolabs.com>
To: farmer dude <farmerduderl@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: dd failure odd sectors, block addressing of 1024 question
Date: Thu, 3 Jan 2002 23:45:58 -0700	[thread overview]
Message-ID: <20020103234558.K12868@lynx.no> (raw)
In-Reply-To: <20020104054648.77014.qmail@web14311.mail.yahoo.com>
In-Reply-To: <20020104054648.77014.qmail@web14311.mail.yahoo.com>; from farmerduderl@yahoo.com on Thu, Jan 03, 2002 at 09:46:48PM -0800

On Jan 03, 2002  21:46 -0800, farmer dude wrote:
> I have a question regarding the use gnufileutils 'dd'
> wherein it fails to image completely in certain
> circumstances.  I've tossed this around a bit, and so
> far the best answer seems to be not a DD problem, but
> rather block addressing within the kernel itself
> (currently it is 1024bytes???).  Someone has suggested
> I post to this list to see a) if this is a known issue
> and/or b) what is being done to correct it (say,
> changing to 512bytes for example)?

Yes, this is a long standing and well known issue with Linux.  As you
mention later in your email, this does not affect Linux directly, because
it never uses the last sector of odd-sized disks or partitions.  The only
place it has been noticed is with the Linux NTFS driver (which is unable
to store the MFT backup in the last sector of the partition) and the NT
LDM driver which breaks when odd-sized volumes are concatenated together
(one sector is missing out of the middle of the volume).

> Also, why would *BSD not puke on this same scenario?

Because BSD != Linux, they do not really have any code in common.

> Source disk setup:	Windows 2000 with NTFS & Fat32
> Disk: E4 N   Start LBA Length    Start C/H/S End C/H/S
>   boot Partition type  1 P 000000063 006152832
> 0000/001/01 0382/254/63 Boot 0B Fat32  2 X 008193150
> 009735390 0510/000/01 1023/254/63      0F extended  4
> x 002056320 001237005 0638/000/01 0714/254/63      05
> extended  5 S 000000063 001236942 0638/001/01
> 0714/254/63      07 NTFS  6 x 005349645 001638630
> 0843/000/01 0944/254/63      05 extended  7 S
> 000000063 001638567 0843/001/01 0944/254/63      17
> other  8 x 008498385 001237005 1023/000/01 1023/254/63
>      05 extended  9 S 000000063 001236942 1023/001/01
> 1023/254/63      1B other  	

You may want to use an email program which doesn't screw up the
formatting so badly, not that it really matters in this case.

In the end, this has been discussed several times on l-k, and while
people have expressed a desire to fix it, it has never been done.
This is probably because anyone who knows enough about Linux to fix
it uses Linux all the time, and at that point they don't need to fix
it anymore...

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/


  reply	other threads:[~2002-01-04  6:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-04  5:46 dd failure odd sectors, block addressing of 1024 question farmer dude
2002-01-04  6:45 ` Andreas Dilger [this message]
2002-01-04  7:28   ` Daniel Phillips
2002-01-04 11:00   ` Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2002-01-04 14:14 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=20020103234558.K12868@lynx.no \
    --to=adilger@turbolabs.com \
    --cc=farmerduderl@yahoo.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.