multbootusb quit after clicking 'All Drives'
Create multi boot live Linux on a USB disk...
Brought to you by:
multibootusb
... well before it quits I shortly see a black windows diskpart.exe.
System is Win7 x64 german
diskpart.exe /s data\tools\gdisk\list-disk.txt
output looks like this:
Microsoft DiskPart-Version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
Auf Computer: JO-PC
Datenträger ### Status Größe Frei Dyn GPT
--------------- ------------- ------- ------- --- ---
Datenträger 0 Online 465 GB 9 MB
Datenträger 1 Kein Medium 0 B 0 B
Datenträger 2 Kein Medium 0 B 0 B
Datenträger 3 Kein Medium 0 B 0 B
Datenträger 4 Kein Medium 0 B 0 B
okay ya really using the windows commandline tools and parsing it's output.
multibootusb-8.9.0\scripts\usb.py
def gpt_device(dev_name):
if platform.system() == 'Windows':
diskpart_cmd = 'diskpart.exe /s ' + os.path.join('data', 'tools', 'gdisk', 'list-disk.txt')
dev_no = get_physical_disk_number(dev_name)
cmd_out = subprocess.check_output(diskpart_cmd)
cmd_spt = cmd_out.split(b'\r')
for line in cmd_spt:
line = line.decode('utf-8')
if '**Disk **' + dev_no in line:
if '*' not in line.split()[-1]:
config.usb_gpt = False
gen.log('Device ' + dev_name + ' is a MBR disk...')
return False
else:
config.usb_gpt = True
gen.log('Device ' + dev_name + ' is a GPT disk...')
return False
Guess that's not a good idea on windows.
Commandline output is localised and that'll create problems.
on some English system it is 'Disk ' but on German the same string your are looking for will be 'Datenträger '....
So use API's or that crappy WMI.
like this
wmic.exe logicaldisk get
Sorry I forgot to mention that is problem was 'introduced' with multibootusb-8.9.0
multibootusb-8.8.0 still works fine.