Usbstick

From Remeis-Wiki
Revision as of 14:18, 11 April 2018 by Niu (talk | contribs) (Created page with "=== Mounting USB sticks === In order to mount a USB stick, check (before plugging it in!) cepheus:~> ls /dev/sd* /dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4 /d...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Mounting USB sticks

In order to mount a USB stick, check (before plugging it in!)

  cepheus:~> ls /dev/sd*
  /dev/sda  /dev/sda1  /dev/sda2  /dev/sda3  /dev/sda4  /dev/sda5

then plug you stick to any empty USB port. After waiting a few seconds, do again

  cepheus:~> ls /dev/sd*
  /dev/sda  /dev/sda1  /dev/sda2  /dev/sda3  /dev/sda4  /dev/sda5  /dev/sdc  /dev/sdc1

and look for a newly appeared entry with a number at the end (in this example: /dev/sdc1)

In order to mount the device and give it the name "Foo", type

  pmount /dev/sdc1 Foo

If everything worked fine, the files on your stick should now be available in /media/Foo and in your file manager.

Unmounting USB sticks

Before removing the USB stick it is highly recommended to unmount it to avoid loss of data or damage of your file system. Removing a USB stick without unmounting it can kill it! Therefore, always unmount your device using

  pumount Foo

before unplugging it!


Using USB sticks and CDs in KDE

WARNING: This manual does not seem to work on Ubuntu 16.04 anymore! Use the description above, instead.

it may happen (especially after the upgrade of the operating system) that you can no longer use an USB stick or CDs, i.e. they are not recognized by KDE and not automatically mounted by the system. In this case, there is usually something wrong with your KDE setup.

To automount USB sticks and CDs in KDE, do the following:

  1. click on the KDE menu button
  2. click on "settings"
  3. click on "Desktop"
  4. click on "Behaviour" - a new window opens with a couple of settings
  5. select the "Device Icons" Tab (it should be the third tab)
    You are prompted with a longer list of possible icons and most important the check box "Show device icons".
  6. CHECK THIS BOX
  7. in the long list below, find the entry "Mounted NFS share"
  8. uncheck the box
  9. click "Apply" and "OK"

You should now be able to access your USB sticks.


Removing USB sticks

Furthermore a USB stick style icon will appear on your desktop when you insert the stick or a CD icon when you insert a CD. When the stick is mounted, the icon will feature a small green triangle. To unmount the stick, right click on the stick and select "Safely Remove" and the green triangle is gone indicating that the stick is no longer mounted. You can now simply remove the stick.