28 votes
Accepted

How to get access to USB-storage from an application installed as Snap?

So we need special prepared Snap with support of removable-media connector/interface/plugin. Below is a list of Snap with removable-media plug described in YAML-manifest : vlc - VLC firefox - Firefox ...
  • 95.1k
20 votes

My 'USB flash' does not have write permission. I can't copy files into it via Nautilus?

It is not necessary to format the flash drive or to nuke the partition. You can go to mount and then change the ownership of your flashdrive. On ubuntu : cd /media sudo chown -R username drivename ...
  • 891
20 votes
Accepted

Write bootable BIOS update .ISO to USB stick

I found what may be a solution to the issue at http://positon.org/lenovo-thinkpad-bios-update-with-linux-and-usb. First convert the iso image to an img file: sudo apt-get install genisoimage ...
16 votes

How to get access to USB-storage from an application installed as Snap?

The Ubuntu Software program will now show a Permissions button on the page of each Snap program you have installed. Click on Permissions, and a pop-up window gives you the option 'Read/write files ...
  • 1,489
15 votes
Accepted

What is the best way to format a USB stick such that it can be used with both Linux and Windows?

Currently, the best filesystem to share content between Windows and Linux is exFAT, specially on USB pendrives and SD cards. exFAT is, roughly speaking, a revision of FAT32 without the 4GB max file ...
10 votes
Accepted

Restore an USB and/or microSD card to normal after using it to install Ubuntu

Just format it, bootable USB is nothing more than a setup utility for an operating system, it'll revert back to its original function (act as data storage) after you format it, same goes for MicroSD. ...
  • 15k
9 votes

MiniDLNA doesn't see anything on external USB HDD

I figured it out. I had to sudo nano /etc/default/minidlna and add the USER="root" and the GROUP="root" to that file. I win the day :)
7 votes
Accepted

udev rules to allow only one vendor and model USB drive but no others

I've faced before same problem with non effective ignore_device. I couldn't figure out why then I always go with other solutions. Well, ignore_device removed with udev release 148. See release note ...
  • 46.6k
7 votes
Accepted

How can I find out the EXACT storage space of my USB drive?

Use df -B1 in terminal to show disk size in bytes. It will output list of all disk partitions including your usb.To narrow it down, use df -B1 /dev/sdXY where X and Y are characteristic number and ...
5 votes

How can I fix a USB 3.0 Issue in a Ubuntu 14.04 VirtualBox VM

The USB 3.0 support has been added recently in VirtualBox version 5.0. Please read the release notes here. (For quick search use the search function in your browser and write "USB 3"). In order to ...
  • 17k
5 votes
Accepted

Slow USB transfer when dd direct to device

You should simply increase the block size of dd. The default is 1 single byte, but you can drastically speed the process up with transferring larger data chunks at once. The responsible parameter is ...
  • 104k
5 votes

How to remove read only from usb stick?

Use mkusb to restore your USB drive sudo add-apt-repository universe (use above command only on Stock Ubuntu) sudo add-apt-repository ppa:mkusb/ppa sudo apt-get update sudo apt-get install mkusb ...
4 votes
Accepted

Unable to Mount 128GB Micro SDXC Storage Card

You have to install exfat driver in LINUX to access the exFAT formatted partitions in linux I took this from this post, please see that for more information. In Ubuntu, you have to add a PPA and ...
  • 1,183
4 votes

How to get access to USB-storage from an application installed as Snap?

To access USB storage from a snap, it needs a connection to removable-media. Some snaps are automatically connected to it. If not, you can manually connect it using the following command: snap connect ...
4 votes

Restore an USB and/or microSD card to normal after using it to install Ubuntu

Use disks (gnome-disk-utility). On the left side, choose your USB drive. Then, on the right side you see 2 or three partitions. Select and remove them with the - button below until the stick is ...
  • 25.8k
4 votes

Restore an USB and/or microSD card to normal after using it to install Ubuntu

GParted vs ISO9660 GParted is not too good at ISO9660 file systems. To reformat a flash drive that has been used by Startup Disk Creator, I use Disks to unmount any partitions. I then use GParted - ...
  • 18.3k
3 votes

How can I fix a USB 3.0 Issue in a Ubuntu 14.04 VirtualBox VM

I was facing the same problem. After upgrade my VirtualBox, I just powered off my virtual machine and in its VirtualBox properties I modified the USB controller for USB 3.0 (xHCI). Now, my USB ...
3 votes
Accepted

Ubuntu doesn't automatically mount USB flash drive

The USB flash drive shows in GParted (as some other users suggested I check in the comments). To fix the issue, I loaded the drive using the selector on the upper-right (of GParted), right-clicked ...
3 votes

How do I change the default permissions for automounted USB media?

I guess your USB drive is formatted with VFAT/FAT32. This file format does not support execute permissions which is why chmod +x fails. [Edit] Ok, had a bit of a play and search on the net. Lots of '...
3 votes

How to safely remove a USB external drive?

Gnome Disks Utility has an option to Power off a disk. You can first unmount the partitions as suggested in other answers or using the Gnome Disks Utility as I explained below. access gnome-disk-...
3 votes

How do I disable usb storage?

Solution verified in Ubuntu 16.04 (Kernel 4.4.0-31-generic). We have to blacklist the uas (usb as scsi) driver along with the usb_storage driver in case the just blacklisting the usb_storage driver ...
  • 202
3 votes

Sandisk Cruzer Blade not detected and can't be formatted

I have had some serious problems with my flash drives as well, I ended up utilizing: dd if=/dev/zero of=/dev/sdX bs=4096 status=progress where X is your drive. This is for block size issues ...
3 votes

How to Prevent users from copying files to usb..?

The solution is to blacklist the USB storage driver. Users will not be able to read or write files through USB sticks. This not only protects your corporate information from theft but also reduces ...
3 votes

How to block all USB storage devices in Ubuntu

I found in Ubuntu 16.04, some pendrives trigger pickup of the uas.ko kernel driver (USB Attached SCSI driver). And a kernel driver dependency of uas.ko is usb_storage.ko. Hence, eventhough I had ...
  • 31
3 votes
Accepted

USB 3.0 stick inhibits USB mouse

According this and this good explanation, there is possibility of frequency interfere caused 3.0 usb devices that affecting any of wireless mouse and keyboard. So the possible solution is extending ...
  • 348
3 votes

How to get access to USB-storage from an application installed as Snap?

The interface which needs to be connected is removable-media. Can access files from removable media in /media and /run/media. This can be used to give an app access to mounted USB sticks and external ...
  • 40k
3 votes
Accepted

How can I accurately see how long it takes to write a file to an external medium?

Linux extensively uses buffer memory to read/write files. Thus, a write to a drive may appear to be finished earlier, while in reality, linux continue to commit the data to the drive. To flush the ...
  • 78.2k
2 votes

udev rules to allow only one vendor and model USB drive but no others

NOTE: Obsoleted by Sneetsher's answer. This answer is left here for legacy reasons. So, I sorta solved this, and it was a PAIN to do. I reexamined the restrictions in my rules, and I changed ...
  • 71.1k
2 votes

Stop asking for authentication to mount USB stick

It is not a good solution, to alter .policy files in /usr/share/polkit-1/actions directory, as other answers suggest, since the files may be overwritten on software update. A permanent solution is to ...
2 votes

Write bootable BIOS update .ISO to USB stick

As Arch user said in the comments, the most straightforward way to write a bootable ISO to an USB drive is to dd the image to the drive. First triple-check to which block device your USB drive is ...
  • 35.1k

Only top scored, non community-wiki answers of a minimum length are eligible