• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
KaliTut

KaliTut

Kali Linux tutorial and Linux system tips

  • Home
  • Raspberry Pi
  • Privacy Policy
  • About us

Raspbian Automatically mount/unmount USB stick

Last Updated on July 16, 2020 by Kalitut Leave a Comment

A computer is not good enough if you can not extend it to storage. Raspberry Pi is best suited for USB sticks. However, those under Raspbian Wheezy are not automatically included, such as on Windows, Mac OS or other Linux systems. we will learn today How to mount a usb drive raspbian

raspbian mount usb drive

Therefore, the possibility should be established that USB sticks are automatically integrated and that also files can be stored on it.

  • Basics: mount /unmount volumes, drives, and file systems
  • Automatically mount / unmount a USB stick or hard disk

Task

  • Set up the possibility that USB sticks are automatically “mounted” when plugged in.
  • Make sure that you can also save files to the USB stick.

Raspbian auto mount usb drive

Solution: Automatically mount/unmount USB sticks (Raspbian Wheezy)
It is about a USB stick to “mount” automatically. This means “unmount” or “mount” so that you can access it via the directory system. To do this, we will install the software “usbmount”, which is specially designed to “automatically mount” USB sticks.

sudo apt-get install usbmount

After installation, a directory named “media” is created in the root directory. In it are further directories with the names “usb0” to “usb7”, as well as a link with the name “usb”, which points to “usb0”. If a USB stick is now plugged in, it is automatically mounted.

Unfortunately, one can not write to the USB sticks as a normal user. For this you have to configure a little something. To do this, open the following file.

sudo nano /etc/usbmount/usbmount.conf

Here you look for the following option:

FS_MOUNTOPTIONS = ""

and change it into

FS_MOUNTOPTIONS = "- fstype = vfat, gid = users, dmask = 0007, fmask = 0117"

Then save the file: Ctrl + O, Enter, Ctrl + X. Then reboot the system:

sudo reboot

Then you have access as a user writing on the inserted USB sticks.

To test, insert a USB stick, create and save the following file.

nano /media/usb/test.txt

Show if the file really exists:

cd /media/usb
ls

Then you can delete the file:

rm test.txt

Filed Under: Raspberry Pi Tagged With: Raspbian USB stick

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Follow us

  • Facebook
  • Twitter
  • YouTube

Categories

  • Android pentesting tools
  • Arduino
  • Books
  • Darknet
  • database
  • General
  • Github Tools
  • Hacking
  • Kali Linux
  • Linux
  • Linux Commands
  • Network Administrator
  • Penetration Testing
  • Penetration Testing Tools
  • PowerShell
  • Raspberry Pi
  • resources
  • Review
  • Termux
  • Tutorials
  • Ubuntu
  • Uncategorized
  • Video Tutorials
  • vmware
  • WiFi Adapter
  • WiFi Pentesting
  • Wireless Router
  • Wireshark

Recent Posts

  • Hijacked Wi-Fi? Thorough explanation of hacking techniques
  • Windows PowerShell tutorial for beginners
  • Learn to Hack Steps from Beginner to Hacker
  • PowerShell Tutorial – GUIDE introduction with basics
  • Top Hacking Tools
  • Home
  • About us
  • Privacy Policy
  • Affiliate disclaimer

Copyright © 2023