public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andries Brouwer <aebr@win.tue.nl>
To: Matt Domsch <Matt_Domsch@dell.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC][PATCH 2.4] EDD 4-byte MBR disk signature for the boot disk
Date: Tue, 14 Oct 2003 12:45:08 +0200	[thread overview]
Message-ID: <20031014104508.GA5820@win.tue.nl> (raw)
In-Reply-To: <Pine.LNX.4.44.0310100903360.2846-100000@iguana.domsch.com>

On Fri, Oct 10, 2003 at 09:05:47AM -0500, Matt Domsch wrote:

>   There are 4 bytes in the MSDOS master boot record, at offset 0x228,
>   which may contain a per-system-unique signature.

You mean 0x1b8.

Yes, this area is used by some Microsoft systems.
I wrote somewhere:

-------------------------------------------------
Just before the partition table some operating systems save some
interesting stuff. For example, DRDOS stores a password starting
at offset 0x1b6. 

Windows NT stores a 4-byte "disk signature" or "volume ID" starting at
offset 0x1b8. It is used to map drive letters to disks: in the
HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices registry item the drive letter
is coupled with this disk signature. It is used as a disk label to map
disk info to disks in the HKEY_LOCAL_MACHINE\SYSTEM\DISK registry item.
This signature is generated by the Disk Administrator when it initializes
the disk, unless there already was a nonzero value there. 

Grub had a 4-byte stage2 start address at 0x1b8, and a 2-byte version
at 0x1bc, but recent versions preserve 0x1b8-0x1bd. Also LILO v20 and later
preserves this area. 
-------------------------------------------------

Probably you can add to this.

> This is useful in the case where the BIOS is not EDD3.0 compliant,
> thus doesn't provide the PCI bus/dev/fn and IDE/SCSI location of the
> boot disk, yet you need to know which disk is the boot disk.

An old idea to distinguish disks is to store an md5sum of the first sector.
That would partly remove the dependence on one particular boot sector format.

Can you remind me why you want to retrieve the boot disk?
(Maybe we booted from ethernet or CDROM or USB device..)

Andries


  parent reply	other threads:[~2003-10-14 10:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-10 14:05 [RFC][PATCH 2.4] EDD 4-byte MBR disk signature for the boot disk Matt Domsch
2003-10-10 14:51 ` Jamie Lokier
2003-10-10 16:50   ` Matt Domsch
2003-10-10 20:28     ` Jamie Lokier
2003-10-14 10:45 ` Andries Brouwer [this message]
2003-10-14 13:38   ` Matt Domsch
2003-10-25  2:28     ` Herbert Poetzl
2003-10-25  4:56       ` Valdis.Kletnieks

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=20031014104508.GA5820@win.tue.nl \
    --to=aebr@win.tue.nl \
    --cc=Matt_Domsch@dell.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