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
  python 3 raspberry pi 4 dual control motor programming problem yome 0 588 Mar-21-2021, 05:17 PM
Last Post: yome
Exclamation "System cannot find path specified"(Geany) kiwi99 2 1,040 Mar-18-2021, 07:37 PM
Last Post: kiwi99
  Difference between os.system("clear") and os.system("cls") chmsrohit 7 8,714 Jan-11-2021, 06:30 PM
Last Post: ykumar34
  Running from boot Murray6301 5 1,036 Nov-07-2020, 05:41 PM
Last Post: snippsat
  Script won't run at boot ebolisa 6 998 Mar-21-2020, 08:18 PM
Last Post: ebolisa
  Matplotlib graphing help (dual y axis, groupby, filter) keml 0 1,089 Feb-07-2020, 02:35 AM
Last Post: keml
Question Difference between Python's os.system and Perl's system command Agile741 13 2,739 Dec-02-2019, 04:41 PM
Last Post: Agile741
  Make dual vector dot-product more efficient technossomy 3 1,178 Nov-28-2019, 09:27 PM
Last Post: Gribouillis
  [split] FileNotFoundError...System cannot find the path specified powerrocker 1 1,014 Oct-03-2019, 09:09 AM
Last Post: buran
  FileNotFoundError...System cannot find the path specified alex9745 28 14,250 Jul-23-2019, 05:14 AM
Last Post: alex9745

Forum Jump:

User Panel Messages

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