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
  Create dual folder on different path/drive based on the date agmoraojr 2 459 Jan-21-2024, 10:02 AM
Last Post: snippsat
  FileNotFoundError: [WinError 2] The system cannot find the file specified NewBiee 2 1,597 Jul-31-2023, 11:42 AM
Last Post: deanhystad
  python sql query single quote in a string mg24 1 1,085 Nov-18-2022, 08:01 PM
Last Post: deanhystad
  python Multithreading on single file mg24 3 1,759 Nov-05-2022, 01:33 PM
Last Post: snippsat
  python 3 raspberry pi 4 dual control motor programming problem yome 0 1,991 Mar-21-2021, 05:17 PM
Last Post: yome
Exclamation "System cannot find path specified"(Geany) kiwi99 2 3,908 Mar-18-2021, 07:37 PM
Last Post: kiwi99
  Difference between os.system("clear") and os.system("cls") chmsrohit 7 16,671 Jan-11-2021, 06:30 PM
Last Post: ykumar34
  Running from boot Murray6301 5 3,115 Nov-07-2020, 05:41 PM
Last Post: snippsat
  Script won't run at boot ebolisa 6 2,570 Mar-21-2020, 08:18 PM
Last Post: ebolisa
  Matplotlib graphing help (dual y axis, groupby, filter) keml 0 2,215 Feb-07-2020, 02:35 AM
Last Post: keml

Forum Jump:

User Panel Messages

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