tiistai 26. tammikuuta 2016

Old school mounting of a USB stick in Debian

Picture this:
  • an old Pentium PC, strong enough to run the latest Debian 8
  • no GUI (Graphical User Interface)
  • no automount of a USB stick
Let's try the "old school". Use the following commands:
  • grep "SCSI removable disk" /var/log/messages
    • can you find [sda] or [sdb]? I got [sdb].
  • mkdir  ~/myflashdrive
    • i.e. create a folder in your home directory
  • su
  • mount -t vfat -o rw,users /dev/sdb1  ~/myflashdrive
  • exit
Now you can enter ~/myflashdrive. cd to the directory you created earlier.

When not needing the stick anymore move away from the folder ~/myflashdrive
  • cd ~
Unmount your USB stick:
  • su
  • umount ~/myflashdrive

Ei kommentteja:

Lähetä kommentti