IIRC windows save volume name as well as driver letter somewhere on the boot
disk and they are retrived by Ntdetect or Ntloader. That is why different
boots pick up the same driver letter and volume name on the same PC.
MBR contains code that leads you to OS loader. If you install LILO, it
replace the MBR code to its own mini-OS loader, upon user selection, it them
jumps to whatever the OS loader the user selected.
Bi
-----Original Message-----
From: Moreira, Alberto [mailto:xxxxx@compuware.com]
Sent: Thursday, January 09, 2003 12:22 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Boot & System Volumes revisited
But in that case, how does for example LILO know where to boot from, when we
choose the Windows partition instead of the Linux one ?
-----Original Message-----
From: Peter Wieland [mailto:xxxxx@windows.microsoft.com]
Sent: Thursday, January 09, 2003 3:12 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Boot & System Volumes revisited
(using ravi's terminology here)
A drive with multiple partitions could have \Windows directories on
multiple of those partitions. My test machines are all setup with two
partitions, each of which has an installation. The system partition can
be found in this case by checking the active flag in the partition
information, but the boot volume cannot be derived from the partition
table alone.
In a system with multiple drives each of those drives could have a
partition set as active. In that case even examining the partition
tables doesn't tell you which is the system partition.
-p
-----Original Message-----
From: Moreira, Alberto [mailto:xxxxx@compuware.com]
Sent: Thursday, January 09, 2003 11:55 AM
To: NT Developers Interest List
This is an ignorant's question - I don't know much about Windows file
systems - but can't we know the boot volume by looking at the partition
table ? That's what I might do in a Linux system.
Alberto.
-----Original Message-----
From: Ravisankar Pudipeddi [mailto:xxxxx@windows.microsoft.com]
Sent: Thursday, January 09, 2003 2:49 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Boot & System Volumes revisited
"Boot volume" is the volume on which %SystemRoot% resides.
"System volume" is the volume off which the OS boots (i.e. containing
NTLDR and the boot sector).
Yes, the terminology is a bit misleading, but unfortunately, that's the
way it is.
If you find MS documentation indicating contrary, please send the link
to me, I'll forward it to our doc folks to fix.
Ravi
-----Original Message-----
From: Phil Barila [mailto:xxxxx@Seagate.com]
Sent: Thursday, January 09, 2003 10:49 AM
To: NT Developers Interest List
Subject: [ntdev] Boot & System Volumes revisited
I'm trying to ensure that a destructive disk utility I'm doing doesn't
whack disks that the OS depends on. I've figured out how to make sure I
don't wipe a volume with a page file, and the volume containing
%SystemRoot% is easy, too. However, the volume containing the boot
files is not, as far as I've been able to gather. I've seen a some
messages describing the definitions of Windows Boot & System Volumes,
and I've found a few things which don't seem to fit the models described
by others, so I'm hoping that someone can fill in the blanks.
I've seen reference to the boot volume being the place where ntldr,
NTDETECT.COM, and boot.ini reside, and the system volume being
%SystemDrive%, or the volume containing %SystemRoot%. Those don't seem
to be consistent with the display in Disk Management.
I did a test, as follows: I took an XP system, on which everything was
installed on C:, which is the Primary Master ATA device, NTFS. The XP
installation had all current updates, including SP1. There was a FAT32
D:, Primary Slave ATA device. The system also had a SCSI HBA with an
unformatted disk attached. If I looked at Disk Management, C: showed
"Healthy (System)".
I enabled INT13 on the SCSI HBA, but didn't change the BIOS boot order,
so the BIOS still orders the ATA drives ahead of the SCSI drive. Then I
took my handy-dandy MSDN DVD, put it into the DVD drive, and selected
Install XP Pro. I selected the unpartitioned SCSI disk space, installed
XP, then booted into the new installation, expecting to find that the
SCSI drive had become the system drive. I was quite surprised when I
looked at Disk Management. Now the old C: and D: are the same,
including C: showing (System). The SCSI drive is now F:, and it shows
(Boot). The single page file this installation is using is on F:, and
there is no ntldr, NTDETECT.COM, or boot.ini, in the root of F:. The
ntldr & NTDETECT.COM in
C: are now the RTM versions, and of course, C:\boot.ini was changed to
add the path to the new installation.
Just out of curiosity, I moved the ntldr, NTDETECT.COM, and boot.ini to
D:, then booted from a floppy with the same files. Same display in
Disk Management. Then I disabled the disk where C: resides, and it went
offline just fine. F: still shows (Boot). I restarted, and D: now
shows (System). I removed the boot files from D:, and restarted again.
D: still shows (System). Here's where I am at a loss to explain how the
"system" drive is determined. For this particular "Windows Session",
the "System" volume, if that is where the boot files reside, is A:.
More info, with C:\boot.ini unavailable, System Properties complains
that it can't find it when I click the Startup and Recovery button, and
then the default selector and the timeout editor are disabled.
I have a theory about the "System" volume, that Windows is defining the
first volume (partition) of whatever comes up as "\Device\HardDisk0" as
the "System" volume. Can anyone confirm this?
With all of this info, it appears that the most reliable way to keep
from whacking the voume where the boot files reside is to simply search
for them, and mark any partitions on which they are found as off-limits.
Anyone have a better idea?
Thanks,
Phil
Philip D. Barila
Seagate Technology, LLC
(720) 684-1842
As if I need to say it: Not speaking for Seagate.
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
The contents of this e-mail are intended for the named addressee only.
It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or
disclose
it to anyone else. If you received it in error please notify us
immediately
and then destroy it.
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.
You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to xxxxx@lists.osr.com