Jump to content











Photo
- - - - -

Grub4dos "vol" command and label (and label)


  • Please log in to reply
No replies to this topic

#1 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15337 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 11 November 2019 - 02:04 PM

Only for information, it just came out that the "vol" command of recent grub4dos behaves like the "label" command of XP (and later) and unlike the "label" command of DOS/Win9x.

 

Namely:

  1. DOS/Win9x label command BOTH creates a "special entry" in the filesystem (in root directory for FAT12/16) with attribute 0x28 AND changes the label in the bootsector (11 character field, [SPACE] aka 0x20 padded at offset 0x2B)  
  2. NT based systems (surely 2K/XP, probably also NT 3.x/4) ONLY creates a "special entry" in the filesystem (in root directory for FAT12/16) BUT with attribute 0x08 instead

Seemingly grub4dos vol --write command behaves like #2 above.

 

More info here:

https://msfn.org/boa...e-on-usb-drive/

and (tangentially) here:

https://msfn.org/boa...at-b-and-label/

 

This is NOT a "bug", only a characteristic, though it would be nice if in a next release of grub4dos a "modifier" to the vol command could be added to emulate (optionally) the DOS/Win9x behaviour, i.e. besides the:

--write

 there could be an additional 
--bs_also

and/or a

attr_type=0x08 | 0x28

 

:duff:

Wonko






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users