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 431 Jan-21-2024, 10:02 AM
Last Post: snippsat
  FileNotFoundError: [WinError 2] The system cannot find the file specified NewBiee 2 1,562 Jul-31-2023, 11:42 AM
Last Post: deanhystad
  python sql query single quote in a string mg24 1 1,052 Nov-18-2022, 08:01 PM
Last Post: deanhystad
  python Multithreading on single file mg24 3 1,725 Nov-05-2022, 01:33 PM
Last Post: snippsat
  python 3 raspberry pi 4 dual control motor programming problem yome 0 1,974 Mar-21-2021, 05:17 PM
Last Post: yome
Exclamation "System cannot find path specified"(Geany) kiwi99 2 3,858 Mar-18-2021, 07:37 PM
Last Post: kiwi99
  Difference between os.system("clear") and os.system("cls") chmsrohit 7 16,609 Jan-11-2021, 06:30 PM
Last Post: ykumar34
  Running from boot Murray6301 5 3,069 Nov-07-2020, 05:41 PM
Last Post: snippsat
  Script won't run at boot ebolisa 6 2,537 Mar-21-2020, 08:18 PM
Last Post: ebolisa
  Matplotlib graphing help (dual y axis, groupby, filter) keml 0 2,192 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