Python Forum
find my system is single boot or dual boot using python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: find my system is single boot or dual boot using python (/thread-6005.html)



find my system is single boot or dual boot using python - Sachin_d - Nov-02-2017

import platform
platform.uname()


This code gives me my current running os but i want to know whether my system is single boot or dual boot


RE: find my system is single boot or dual boot using python - heiner55 - Nov-02-2017

I think, there is no general method.
For Windows, you could see into boot.ini (bcdedit.exe)
For Linux, you could see into the grup etc files, if your system uses grup.

For others answers, see
https://stackoverflow.com/questions/47068319/how-to-find-my-system-is-single-boot-or-dual-boot-using-python


RE: find my system is single boot or dual boot using python - Sachin_d - Nov-02-2017

ok thanks