Results 1 to 3 of 3

Thread: Eject usb-device using UUID.

  1. #1
    Join Date
    Jul 2011
    Beans
    34

    Eject usb-device using UUID.

    A simple question, is it possible to eject a usb-device by specifying its UUID insted of the device file? So insted of doing this:

    Code:
    eject /dev/sdb
    You would do this:

    Code:
    eject 31AA-99B8
    I have read the manual page but could not find any options for this, but i would like to ask here just to ne sure.
    Last edited by sebastian.s; May 22nd, 2013 at 06:49 PM.

  2. #2
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Eject usb-device using UUID.

    You should be able to use...
    Code:
    eject /dev/disk/by-uuid/31AA-99B8
    Cheesemill

  3. #3
    Join Date
    Jul 2011
    Beans
    34

    Re: Eject usb-device using UUID.

    Ah just perfect! thanks man I didn't know these types of files was there, i really need to explore the /dev filesystem some more.

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
  •