Skip to content
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

ERROR: None Windows locations found, use --win MOUNT to point actual Windows location #18

Open
Harshalrathore007 opened this issue Jul 12, 2023 · 9 comments

Comments

@Harshalrathore007
Copy link

Installation step

Tool could not be installed from sudo pip install because of below error

Error message
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try 'pacman -S
    python-xyz', where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Arch-packaged Python package,
    create a virtual environment using 'python -m venv path/to/venv'.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip.
    
    If you wish to install a non-Arch packaged Python application,
    it may be easiest to use 'pipx install xyz', which will manage a
    virtual environment for you. Make sure you have python-pipx
    installed via pacman.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

So installed from AUR with
❯ yay -S bt-dualboot

Commands outputs

❯ sudo bt-dualboot -l
ERROR: None Windows locations found, use `--win MOUNT` to point actual Windows location

❯ sudo bt-dualboot --list-win-mounts 
ERROR: None Windows locations found, use `--win MOUNT` to point actual Windows location

OS

Window 10 Home
EndeavourOS

How do I get the path to pass for --win parameter?

@Konfekt
Copy link

Konfekt commented Jul 14, 2023

Use lsblk --fs to look for the NTFS disk and then mount to mount it to a folder, say \mnt. This folder can be passed to --win (but should also be autodetected once mounted).

@HarshalRathore
Copy link

The output of that command is

NAME        FSTYPE    FSVER LABEL    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
nvme0n1                                                                                  
├─nvme0n1p1 vfat      FAT32 SYSTEM   E6FB-790E                             230.3M    10% /boot/efi
├─nvme0n1p2                                                                              
├─nvme0n1p3 BitLocker 2                                                                  
├─nvme0n1p4 BitLocker 2                                                                  
├─nvme0n1p5 ntfs            RECOVERY 722CFC0A2CFBC75F                                    
├─nvme0n1p6 ntfs            RESTORE  3AE882EEE882A7A9                                    
├─nvme0n1p7 vfat      FAT32 MYASUS   4C82-DC0A                                           
├─nvme0n1p8 ext4      1.0   swap     e4da591b-04dc-448a-9114-124b3cf54a75                
└─nvme0n1p9 ext4      1.0   root     8843633f-ff56-46db-b66a-a1464f39dc96  140.6G    35% /

as you can see there are 2 ntfs partition found, which one is the correct one ? @Konfekt

@Konfekt
Copy link

Konfekt commented Jul 18, 2023

Probably neither as you seem to have Bitlocker enabled. Follow a guide to mount those partitions and add them after --win.

@HarshalRathore
Copy link

Well, the tool in that article did not work for me (and looks like for many others too) so I just had been left with one option according to my understanding which was to turn off the encryption on Windows sadly I wanted to keep Windows encrypted but as my research concluded that BitLocker encryption and Linux dual boot can not go hand in hand as BitLocker requires SECURE_BOOT turned on otherwise it will ask for recovery_key on every boot and without secure boot disabled we arch guys can not boot to Linux (jealousy towards those Ubuntu guys) but oh well the BitLocker encryption isn't that good it seems cause there have been successful bypassing of them as I found somewhere (PS I don't even have the real BitLocker actually no windows 10 home edition does :( ).

BTW thanks for your prompted reply my friend @Konfekt

@DanteDragan
Copy link

I've never used BitLocker, Secure Boot is off, I am using Arch, but bt-dualboot --list-win-mounts shows this:
ERROR: None Windows locations found, use `--win MOUNT` to point actual Windows location
lsblk -fs:

NAME      FSTYPE FSVER LABEL    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda1      ext4   1.0            327a56cd-d362-4032-be9c-0c6bae156749   17.2T     0% /ARCHIVE
└─sda                                                                               
sdb1      ext4   1.0            5b5ae487-95c9-4f05-90cf-16cdce28d0e9  868.9G     0% /DDRIVE
└─sdb                                                                               
sdc1      exfat  1.0   KINGSTON 2230-7EBC                                97G    78% /HYPERXDRIVE
└─sdc                                                                               
nvme0n1p1 vfat   FAT32          50B4-0EF6                              66.3M    31% /boot/efi
└─nvme0n1                                                                           
nvme0n1p2                                                                           
└─nvme0n1                                                                           
nvme0n1p3 ntfs                  80AA28C5AA28B994                      179.8G    62% /mnt/windows
└─nvme0n1                                                                           
nvme0n1p4 ntfs                  62F298A2F2987BCB                                    
└─nvme0n1                                                                           
nvme1n1p1 ext4   1.0            b5a366ea-61c4-41c5-9922-5211087e9f74  856.4G     1% /
└─nvme1n1 

mount shows:

...
/dev/nvme0n1p3 on /mnt/windows type ntfs3 (rw,relatime,uid=0,gid=0,iocharset=utf8)

bt-dualboot --list-win-mounts --win /mnt/windows shows:


Windows locations:
==================

@HimDek
Copy link

HimDek commented Jul 29, 2024

Facing same problem as @DanteDragan

WINDOWS10_REGISTRY_PATH = os.path.join("Windows", "System32", "config", "SYSTEM")

but there is no file or folder such as C:\Windows\System32\config\SYSTEM in Windows 11 Home. But there is C:\Windows\System32\config\system.

@HimDek
Copy link

HimDek commented Jul 29, 2024

Facing same problem as @DanteDragan

WINDOWS10_REGISTRY_PATH = os.path.join("Windows", "System32", "config", "SYSTEM")

but there is no file or folder such as C:\Windows\System32\config\SYSTEM in Windows 11 Home. But there is C:\Windows\System32\config\system.

changing SYSTEM to system made it work on Windows 11

@HarshalRathore
Copy link

I've never used BitLocker, Secure Boot is off, I am using Arch, but bt-dualboot --list-win-mounts shows this: ERROR: None Windows locations found, use `--win MOUNT` to point actual Windows location lsblk -fs:

NAME      FSTYPE FSVER LABEL    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda1      ext4   1.0            327a56cd-d362-4032-be9c-0c6bae156749   17.2T     0% /ARCHIVE
└─sda                                                                               
sdb1      ext4   1.0            5b5ae487-95c9-4f05-90cf-16cdce28d0e9  868.9G     0% /DDRIVE
└─sdb                                                                               
sdc1      exfat  1.0   KINGSTON 2230-7EBC                                97G    78% /HYPERXDRIVE
└─sdc                                                                               
nvme0n1p1 vfat   FAT32          50B4-0EF6                              66.3M    31% /boot/efi
└─nvme0n1                                                                           
nvme0n1p2                                                                           
└─nvme0n1                                                                           
nvme0n1p3 ntfs                  80AA28C5AA28B994                      179.8G    62% /mnt/windows
└─nvme0n1                                                                           
nvme0n1p4 ntfs                  62F298A2F2987BCB                                    
└─nvme0n1                                                                           
nvme1n1p1 ext4   1.0            b5a366ea-61c4-41c5-9922-5211087e9f74  856.4G     1% /
└─nvme1n1 

mount shows:

...
/dev/nvme0n1p3 on /mnt/windows type ntfs3 (rw,relatime,uid=0,gid=0,iocharset=utf8)

bt-dualboot --list-win-mounts --win /mnt/windows shows:


Windows locations:
==================

a simple solution to this is go to your file manager in linux for example nautilus in my case and in '+ other locations' you'll see windows C file system click on it and it will ask for root password give it and viola the C drive was mounted the bt-dualboot --list-win-mounts now should show you the mounted partitions.

@HarshalRathore
Copy link

Facing same problem as @DanteDragan

WINDOWS10_REGISTRY_PATH = os.path.join("Windows", "System32", "config", "SYSTEM")

but there is no file or folder such as C:\Windows\System32\config\SYSTEM in Windows 11 Home. But there is C:\Windows\System32\config\system.

changing SYSTEM to system made it work on Windows 11

I had Windows 10 Home dual booted with arch linux maybe that's why i did not face this issue, glad it worked for you.

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

5 participants