Python Forum
find my system is single boot or dual boot using python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
find my system is single boot or dual boot using python
#1
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
Reply
#2
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/4706...ing-python
Reply
#3
ok thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  help to boot application on computer startup jacksfrustration 3 706 Jan-22-2025, 07:43 AM
Last Post: chaebol2th
  Create dual folder on different path/drive based on the date agmoraojr 2 1,376 Jan-21-2024, 10:02 AM
Last Post: snippsat
  FileNotFoundError: [WinError 2] The system cannot find the file specified NewBiee 2 3,091 Jul-31-2023, 11:42 AM
Last Post: deanhystad
  python sql query single quote in a string mg24 1 2,177 Nov-18-2022, 08:01 PM
Last Post: deanhystad
  python Multithreading on single file mg24 3 3,497 Nov-05-2022, 01:33 PM
Last Post: snippsat
  python 3 raspberry pi 4 dual control motor programming problem yome 0 2,653 Mar-21-2021, 05:17 PM
Last Post: yome
Exclamation "System cannot find path specified"(Geany) kiwi99 2 5,238 Mar-18-2021, 07:37 PM
Last Post: kiwi99
  Difference between os.system("clear") and os.system("cls") chmsrohit 7 19,792 Jan-11-2021, 06:30 PM
Last Post: ykumar34
  Running from boot Murray6301 5 4,575 Nov-07-2020, 05:41 PM
Last Post: snippsat
  Script won't run at boot ebolisa 6 3,795 Mar-21-2020, 08:18 PM
Last Post: ebolisa

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020