Results 1 to 3 of 3

Thread: Identify and format usb drive

  1. #1
    Join Date
    Nov 2008
    Posts
    183
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Identify and format usb drive

    Hello,

    Looking for advice on how to identify and format usb thumb drive. Actually, my code currently monitors the /media directory and correctly handles insert/remove. The problem is you need the physical device to format.

    Target is Linux only. (initially Ubuntu, but different Debian based distro for final.)

    I have lots of command line instructions for fat formatting a usb device, but, I need the /dev/whatever path for that. I'm poking around with the udev stuff, but documentation seems a bit sparse.

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Identify and format usb drive

    D-Bus should contain all information you need. I can see org.freedesktop.UDisks2 interface might contain what you need.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Identify and format usb drive

    Or check how KDE's Solid framework or rather its Linux backend handle that

    Cheers,
    _

Similar Threads

  1. Replies: 2
    Last Post: 3rd June 2011, 07:39
  2. Identify mimetype
    By estanisgeyer in forum Qt Programming
    Replies: 1
    Last Post: 7th March 2011, 06:16
  3. How to identify Num pad keys
    By sanjayshelke in forum Qt Programming
    Replies: 1
    Last Post: 2nd September 2008, 17:43
  4. identify QGraphicItem
    By avis_phoenix in forum Qt Programming
    Replies: 5
    Last Post: 24th September 2007, 06:16
  5. How to identify the process
    By vishesh in forum Qt Programming
    Replies: 1
    Last Post: 28th April 2007, 16:18

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.