Tag Info

Hot answers tagged

4

Ubuntu has neat command udisksctl which allows looking up information with the info option on a block device specified with the -b flag. Now, if we scan the output of udiskctl for each block device from a to z, and search for the 'usb' string in it, we can be sure it is a USB device. Bellow is a script that does exactly that: #!/bin/bash FOUND=0 for var ...


3

There are two speeds to take into account: one is the bus' speed and the other one is the drive's speed; the lowest of the two is a bottleneck and sets the maximum overall speed you're going to get. USB 3.0 on his own caps at 4.8 Gbps (600 MB/s), but reasonably only SSDs might reach that cap; commercial (even not cheap) USB flash drives are usually way ...


3

It looks like your 4GB USB stick is broken. To ensure no one uses a destructive test and just copy-pastes the stuff without reading the explanation, you have to type the next command all in lower-case. WARNING Never use the -w option on a device containing an existing file system. This option erases data! If you want to do write-mode testing ...


2

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 the partition (which was FAT32), selected "Format to", "FAT32" and then followed the prompts, which appears to have fixed the issue (it now appears in Nautilus ...


1

No, it is not secure. To securely install unetbootin, run the following commands: sudo apt-get update sudo apt-get install unetbootin Alternatively, you can use the cat command like so to copy the .iso file to the usb device: sudo -s cat <file> > <device> exit or you can use the dd command: sudo dd if=<file> of=<device> ...


1

Using find and awk #!/bin/bash # your code ... # The name of your MAXimum 1 drive in /media/$USER maximum1="MAXimum 1" if [ -z "$(find /media/$USER/ -maxdepth 1 ! -path /media/$USER/ -type d |\ awk '! /'"$maximum1"'/')" ] then echo "Hey, the only USB device is $maximum1" else echo "Hey, no USB pendrive in my I/O." fi # your code ... ...


1

In ubuntu there is many method by which you can format your pendrive 1 - by Disk utility see the video // simplest way 2- by Gparted tool see the video you can install it from Ubuntu software center or you can install is by typing sudo apt-get install gparted 3- by using Terminal see the video go to super mode by typing "su" followed by super mode ...


1

I had the same problem today; "all of a sudden" my 14.04 wanted my password for "everything"; including (un)mount of USB sticks. I figured that I installed openssh-server in the morning. After removing it, everything is back to normal; I can insert a USB stick; and it is mounted without asking for a password. Strange. Just tried to repro; installed ...



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