Skip to content

MakeInstall.bat can't detect my usb drive #266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ffffffffawd opened this issue Jun 20, 2022 · 11 comments
Open

MakeInstall.bat can't detect my usb drive #266

ffffffffawd opened this issue Jun 20, 2022 · 11 comments

Comments

@ffffffffawd
Copy link

just can not detect my usb drive.
sad(

@Masamune3210
Copy link

Try launching the batch file as administrator

@ffffffffawd
Copy link
Author

ye, i try it
still cannot detect my usb
sad(

@wilkergrcv
Copy link

If you are using an external hard drive instead of a flash drive, change this line in the MakeInstall.py file.

By default it will be like this:

def get_disks_of_type(self, disk_list, disk_type=(0,2)):

with this configuration makeinstall will only show removable and unknown devices

now just change that same line with a 3 looking like this

def get_disks_of_type(self, disk_list, disk_type=(0,2,3)):

save the file and run MakeInstall.bat again and be happy.

@RavHilton
Copy link

Same issue here - no drives are shown (Win 11, latest public build, latest public updates, Python 3.11.1, x64) and the addition of disk_type "3" as suggested by https://github.com/wilkergrcv makes no difference at all. Yes, already running elevated as admin...

Even after using option "D", all I see is as follows:

#######################################################

Potential Removable Media

#######################################################

!WARNING! This list includes ALL disk types.
!WARNING! Be ABSOLUTELY sure before selecting
!WARNING! a disk!

Q. Quit

Usage:

@tianyehuakai
Copy link

tianyehuakai commented Dec 23, 2022 via email

@RavHilton
Copy link

I found an old Win 10 laptop hanging about, and tried on that and it looks to be working. So looks like this needs to be updated for Windows 11 users...

@alerion921
Copy link

alerion921 commented Dec 31, 2022

If there is a problem with your drive you could always try to check google for diskpart commands to see if its shown there or using disk manager, could be your drive is in the wrong format to begin with (This happend to me, after deleting the partitions and reformating as ntfs it worked flawless)

Edit: Im on win 11 and have no issues btw

@KuusamoMart
Copy link

Another one having the same issue, Windows 11 x64, Python 3, none of my drives are showing up. Using 'D' doesn't have any effect (other than changing the enabled / disabled status in the menu.

@KuusamoMart
Copy link

See issue 179 where I have carried out some investigations of the diskwin script and why it doesn't work correctly under Windows 11 and later releases of Windows 10

@ibelouis
Copy link

got working on latest win11 (insider preview)
first:
install wmic via cmd line (dont have tab open top copy paste it at moment)
second:
open cmd in gibmacos folder, then type the following into cmd line:
SET PATH=C:\Windows\System32\wbem;%PATH%;
it will have to be done everytime cmd is ran, only softchanges set path varible for that instance of cmd

@ibelouis
Copy link

Screenshot 2024-09-17 165817
Screenshot 2024-09-17 165917
screenshots

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants