Results 1 to 8 of 8

Thread: addressing usb devices

  1. #1
    Join Date
    Jun 2011
    Location
    Raleigh NC
    Beans
    89

    addressing usb devices

    How do find the name of a usb device in xtrm? I plug in a 16 bg usb "thumbdrive" and wait for it to load, then it shows on the GUI, but i can' identify it in xterm.
    I want to do a copy from the usb to home directory.

  2. #2
    Join Date
    Apr 2012
    Beans
    4,596

    Re: addressing usb devices

    pluggable devices should mount by default in /media/<label> , or /media/<user>/<label> from 12.10 I think

    Code:
    $ ls /media
    7062-065B

  3. #3
    Join Date
    Jun 2011
    Location
    Raleigh NC
    Beans
    89

    Re: addressing usb devices

    when i do cd /media it returns wray (me)

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

    Re: addressing usb devices

    There are a lot of different commands you can use to list information on all mounted filesystems. For example here I'm using 'lsblk -f'.
    Code:
    rob@arch:~$ lsblk -f
    NAME   FSTYPE LABEL     UUID                                 MOUNTPOINT
    sda                                                          
    ├─sda1                                                       
    ├─sda2 ext4   arch-root d750d77a-f9f8-4b88-86ea-7e1648482339 /
    └─sda3 ext4   arch-home 770ecba1-aa95-4033-b96b-54c75138d938 /home
    sdb                                                          
    └─sdb1 ext4   data      af1162b3-ebf6-4681-8908-a6bc1ddd39de /mnt/data
    sdc                                                          
    ├─sdc1 ext4   emulation c190cf99-1749-4f7b-878d-de20914d3c57 /mnt/emulation
    └─sdc2 swap   swap      e6cd40fe-acbc-4667-975b-162298028119 [SWAP]
    sdd    vfat             2CEE-983B                            
    └─sdd1 vfat             38CE-31E0                            /run/media/rob/38CE-31E0
    You can see from the last line that my flash drive /dev/sdd1 is mounted on the /run/media/rob/38CE-31E0 directory and is a vfat (FAT32) partition. Running the command on your machine will show something similar (it wont be in /run/media on Ubuntu, I'm on my Arch machine at the minute).
    Last edited by Cheesemill; January 9th, 2013 at 10:24 PM.
    Cheesemill

  5. #5
    Join Date
    Aug 2008
    Beans
    1,835
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: addressing usb devices

    Quote Originally Posted by Wray View Post
    when i do cd /media it returns wray (me)
    The newer versions of Ubuntu mount usb drives under /media/<your usercode>

    Try

    Code:
    ls /media/wray

  6. #6
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    5,926
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: addressing usb devices

    you can use the "mount" command to show mounted filesystems. just type in mount on the command line and hit enter, it'll show each device mounted and where it's mounted
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

  7. #7
    Join Date
    Jun 2011
    Location
    Raleigh NC
    Beans
    89

    Re: addressing usb devices

    Thanks
    Ceesemill that did it for me... identified my usb stick as CRUZER...command for me is:
    cd /media/wray/CRUZER/'Removable Disk'...capital letters and spaces continue to throw me.
    I finally remembered the single quote thing for spaces. I have done only a tiny bit of coding and that was DOS and some machine coding about 35 yrs ago, so progress is slow...

    If i try your patience, it is not wilful, but from abysmal ignorance

  8. #8
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    5,926
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: addressing usb devices

    when using the command line, you can use the tab key to auto-complete directories and files. for example, start typing
    Code:
    /media/wray/
    and you could hit tab at that point and it would show you the files and directories within media, then once you type the first letter like "C", you can hit tab again and it will auto-complete, then again, hit tab and it will show you the directories and files in that directory, then type the first letter again and hit tab, and it will auto-complete the directory path and escape the spaces for you correctly. Hope that helps you in the future.
    Last edited by dannyboy79; January 10th, 2013 at 03:22 PM.
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

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
  •