lkml.org 
[lkml]   [2003]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 2.4] EDD 4-byte MBR disk signature for the boot disk
Matt Domsch wrote:
> There are 4 bytes in the MSDOS master boot record, at offset 0x228,
> which may contain a per-system-unique signature. By writing into this
> signature from a tool that makes real-mode int13 calls a unique
> signature such as "BOOT" for the boot disk (int13 dev 80h), Linux may
> then retrieve this information and use it to compare against disks it
> knows as named /dev/[hs]d[a-z].

If I put a hard disk from another system into my computer, and it has
the "BOOT" signature, Linux will see two disks with the signature. Barf!

Same if I boot from two different disks at different times, and more
so if one of them fails to boot properly so that it's not even
possible for the booted kernel to erase the signature on its boot
disk.

It would be better to have the boot loader pick a likely-unique number
such as the CMOS time in seconds since whenever and store that, and
pass it as boot parameter to the kernel. A few bits could be reserved
to indicate that it was from our boot loaders; it would be good if we
had a list of existing per-system-unique signatures to avoid. Do you
know of such a list?

-- Jamie
-
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 13:49    [W:0.123 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site