Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How find mounted point on linux by qt?
QtWS25 Last Chance

How find mounted point on linux by qt?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tmtt66
    wrote on last edited by
    #1

    how find mounted point on linux by qt?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      In general you can read /etc/mtab or parse the output of the mount command. You can also use findmnt to target a search and provide a more parser friendly output.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tmtt66
        wrote on last edited by
        #3

        I need a cross platform method!

        1 Reply Last reply
        0
        • JohanSoloJ Offline
          JohanSoloJ Offline
          JohanSolo
          wrote on last edited by
          #4

          You asked how to do it on linux...
          AFAIK there is no cross-platform method, since mounting disk is very different from one OS to the next. I'm rather confident that the linux method can be used on mac as well, but I'm sure it will not work on M$.

          `They did not know it was impossible, so they did it.'
          -- Mark Twain

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved