public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* sfdisk man page bug
@ 2013-01-28 14:37 Ulf Zibis
  2013-01-28 20:33 ` Ángel González
  0 siblings, 1 reply; 3+ messages in thread
From: Ulf Zibis @ 2013-01-28 14:37 UTC (permalink / raw)
  To: util-linux

Hi,

from the Manual page sfdisk(8):
"... For example, when there are several primary DOS partitions, DOS assigns C: to the first among 
these that is bootable.)"

This seems to be wrong. I'm not 100 % sure about DOS, but about modern Windows, above statement is 
definitely wrong. Correct is:
"... Windows/DOS assigns C: to the first among these that is visible (=not hidden).)"
"... Windows/DOS typical generic MBR boot code loads and executes the bootloader found on the first 
among these that is bootable.)"

to be sure, I tested following:
- having old WinXP installation on sda1, labelled "WIN_OLD"
- copy this partition by GParted to sda2
- newly install WinXP on sda1, labelled "WIN_NEW"
- set sda2 to active
- boot
--> result:
1. in effect, WinXP from sda1 becomes booted
2. sda1 is named C:, cd1 is named D:, "bootable" sda2 is named E:

As today Windows is the more interesting use case, at least please add correct info for the Windows 
case.

Many thanks for your attention and hopefully answer,

-Ulf


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sfdisk man page bug
  2013-01-28 14:37 sfdisk man page bug Ulf Zibis
@ 2013-01-28 20:33 ` Ángel González
  2013-01-28 23:00   ` Ulf Zibis
  0 siblings, 1 reply; 3+ messages in thread
From: Ángel González @ 2013-01-28 20:33 UTC (permalink / raw)
  To: Ulf Zibis; +Cc: util-linux

On 28/01/13 15:37, Ulf Zibis wrote:
> Hi,
> 
> from the Manual page sfdisk(8):
> "... For example, when there are several primary DOS partitions, DOS
> assigns C: to the first among these that is bootable.)"
> 
> This seems to be wrong. I'm not 100 % sure about DOS, but about modern
> Windows, above statement is definitely wrong. Correct is:
> "... Windows/DOS assigns C: to the first among these that is visible
> (=not hidden).)"
> "... Windows/DOS typical generic MBR boot code loads and executes the
> bootloader found on the first among these that is bootable.)"
> 
> to be sure, I tested following:
> - having old WinXP installation on sda1, labelled "WIN_OLD"
> - copy this partition by GParted to sda2
> - newly install WinXP on sda1, labelled "WIN_NEW"
> - set sda2 to active
> - boot
> --> result:
> 1. in effect, WinXP from sda1 becomes booted
> 2. sda1 is named C:, cd1 is named D:, "bootable" sda2 is named E:
> 
> As today Windows is the more interesting use case, at least please add
> correct info for the Windows case.
> 
> Many thanks for your attention and hopefully answer,
> 
> -Ulf

Well, DOS assigns drive letters only to partitions it can read (although
obvious, this is not explained in the main page). When a partition is
hidden, it appears as having a different type, so it's skipped and thus
not taken into account.

In the Windows NT family (ie. all modern windows versions) it is
possible to assign fixed letters to a drive, so you no longer get the
letter-dancing that happened before.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sfdisk man page bug
  2013-01-28 20:33 ` Ángel González
@ 2013-01-28 23:00   ` Ulf Zibis
  0 siblings, 0 replies; 3+ messages in thread
From: Ulf Zibis @ 2013-01-28 23:00 UTC (permalink / raw)
  To: Ángel González; +Cc: util-linux

Hi Ángel,

Am 28.01.2013 21:33, schrieb Ángel González:
> On 28/01/13 15:37, Ulf Zibis wrote:
>> Hi,
>>
>> from the Manual page sfdisk(8):
>> "... For example, when there are several primary DOS partitions, DOS
>> assigns C: to the first among these that is bootable.)"
>>
>> This seems to be wrong. I'm not 100 % sure about DOS, but about modern
>> Windows, above statement is definitely wrong. Correct is:
>> "... Windows/DOS assigns C: to the first among these that is visible
>> (=not hidden).)"
>> "... Windows/DOS typical generic MBR boot code loads and executes the
>> bootloader found on the first among these that is bootable.)"
>>
>> to be sure, I tested following:
>> - having old WinXP installation on sda1, labelled "WIN_OLD"
>> - copy this partition by GParted to sda2
>> - newly install WinXP on sda1, labelled "WIN_NEW"
>> - set sda2 to active
>> - boot
>> --> result:
>> 1. in effect, WinXP from sda1 becomes booted
>> 2. sda1 is named C:, cd1 is named D:, "bootable" sda2 is named E:
>>
>> As today Windows is the more interesting use case, at least please add
>> correct info for the Windows case.
>>
>> Many thanks for your attention and hopefully answer,
>>
>> -Ulf
> Well, DOS assigns drive letters only to partitions it can read (although
> obvious, this is not explained in the main page). When a partition is
> hidden, it appears as having a different type, so it's skipped and thus
> not taken into account.

By sfdisk it is possible to set the bootable flag to a "hidden" partition, but neither DOS nor 
Windows will see that partition as C:, and won't boot.
If you have 2 full Windows installations in 2 visible partitions (maybe from partition clone action) 
and the 2nd one is marked as bootable, Windows/DOS typical generic MBR boot code loads and executes the
bootloader, found on the 2nd partition, but that then boots the Windows system from the 1st 
partition, which will be assigned C:, regardless which partition is marked bootable. In ths case the 
example from sfdisk man page will not hold :-(
If you have 1 Windows installation in 1st partition and after install a 2nd instance of Windows on 
the 2nd partition (which may be a primary or a logical), a bootloader menu will appear to allow to 
boot one of both. If booting into the 2nd instance, the system volume would be D: (or E: if there is 
a CD-drive) and the 1st partition would also be visible, still as C:. In such constellation, no 
bootloader will be on the 2nd partition, so marking the 2nd as bootable will cause both to be 
unbootable, and there will be no effect whether which volume would be assigned as C:.

> In the Windows NT family (ie. all modern windows versions) it is
> possible to assign fixed letters to a drive, so you no longer get the
> letter-dancing that happened before.

Not really, the letter of the start volume can't be changed.

Do I have missed something?

-Ulf



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-28 23:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-28 14:37 sfdisk man page bug Ulf Zibis
2013-01-28 20:33 ` Ángel González
2013-01-28 23:00   ` Ulf Zibis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox