132 votes
Accepted

How do I copy a file larger than 4GB to a USB flash drive?

This is due to FAT32 limitation. Files larger than 4GB cannot be stored on a FAT32 volume. Formatting the flash drive as exFAT or NTFS will resolve this issue. WARNING: Back up your data. Formatting ...
  • 1,838
101 votes

How do I copy a file larger than 4GB to a USB flash drive?

If you don't want to reformat your USB drive or need it to be FAT32 you can simply split your big file into parts. Most archive managers come with the split option and for the command line there's ...
  • 38.7k
68 votes
Accepted

Check real size of USB thumb drive

f3 - Fight Flash Fraud There is only one alternative I found, but I think this is even a better one than the original h2testw tool for MS Windows. Fortunately, it is really easy to use, even from ...
  • 2,774
66 votes

How do I mount an encrypted /home directory on another Ubuntu machine?

You can use ecryptfs-recover-private. ecryptfs-recover-private /media/<UUID>/home/.ecryptfs/<USERNAME>/.Private It will promt for the mount password, unlock the wrapped-passphrase and ...
58 votes
Accepted

Why is it that I am unable to format my pendrive in exfat using gparted?

Gparted doesn't[UPD 210609] support creation of exfat file systems. You can use mkfs.exfat utility from the terminal like: sudo mkfs.exfat -n LABEL /dev/sdXn Replace LABEL with the label that you ...
  • 20.3k
57 votes

How do I tell if a USB thumb drive is USB 3.0?

Make sure that you have a USB flash Drive plugged in. Open terminal. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below: lsusb That will list USB ...
  • 106k
50 votes

Mount Flashdrive: Not Authorized to perform operation

In Ubuntu 18, this error is caused by Chrome Remote Desktop. The solution is: Stop the Chrome Remote Desktop Service: /opt/google/chrome-remote-desktop/chrome-remote-desktop --stop Open all ...
48 votes

How do I copy a file larger than 4GB to a USB flash drive?

Problem: FAT32 has a 4GiB limit for file size Different scenarios and files systems are examined looking for alternatives taking into account the file size problem which operating systems that should ...
  • 44k
46 votes

How do I change the "label" reported by lsblk?

Since the label is a property of the filesystem there are individual ways to set the label for different file systems. for ext2/ext3/ext4 filesystems you use: e2label /dev/XXX <label> for btrfs:...
  • 561
44 votes

fail to install ubuntu server 14.04 64bit LTS from USB drive

This is how i got it to work. When it gets the CD-ROM error, move the install USB stick from one port, to another USB port on your PC. Then retry. This worked. I don't know why. Not only that ...
43 votes

16GB pen drive showing 2MB space after formatting on windows 7

If you want, you can even fix that in windows, run cmd as administrator then type diskpart list disk select disk 1 (make sure its the right one) clean (if it complains about permission, just type ...
  • 431
40 votes
Accepted

How to turn off hard drive in Ubuntu?

sudo hdparm -Y /dev/sdX where /dev/sdX is the device you'd like to turn off. You can also run sudo blkid to determine the device's 'fingerprint' (UUID), which would allow you to more reliably ...
  • 10.8k
40 votes
Accepted

Can I boot memtest86+ if I'm using UEFI?

Memtest86+ Edit 1: { Memtest86+ version 6 (and newer) can be downloaded as a standalone zip file, which contains an iso file. This iso file can be cloned directly into a USB drive to make a bootable ...
  • 44k
31 votes

How do I rename a USB drive?

None of the given answers worked for me on my 14.10 system. I used gparted as described in https://help.ubuntu.com/community/RenameUSBDrive. sudo apt-get install gparted open gparted choose the ...
31 votes

dd doesn't work

Your command creates a file named sdc in the current directory. You want of=/dev/sdc. So the complete correct command is: sudo dd if=./memtest86-usb.img of=/dev/sdc Run sync afterwards to ...
  • 25.8k
29 votes

Is there any way to turn off a USB HDD manually?

Try this: udisksctl unmount -b /dev/sdXY udisksctl power-off -b /dev/sdX on Linux Mint or Ubuntu
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
27 votes
Accepted

How to properly copy files from hard drive to USB flash drive in tty4 terminal?

Plug in the device lsblk to find the device name of your usb device. Naming is /dev/sdXY. Where X is any english letter and Y is integer, typically 1. If the device was mounted, you will see the ...
23 votes

How to encrypt external devices?

CLI cryptsetup -v --verify-passphrase luksFormat $1 # Answer YES in CAPITAL - case matters! cryptsetup luksOpen $1 backup mkfs.ext4 /dev/mapper/backup cryptsetup luksClose /dev/mapper/backup where $...
  • 8,276
23 votes

I can't format my live-USB pendrive (udisks-error-quark, 11)

If you don't have any valuable data on that drive you can create a new partition table with Gnome Disks if it doesn't like the current one: Click on the cogwheel for drive operations and select “...
20 votes
Accepted

How to maximize the life of a pendrive which has a full installation of Ubuntu MATE 18.04 on it

To increase the lifespan of your USB stick, minimising the number of read/writes in various ways: Disable Swap Swapping is the process of using part of the USB stick as volatile memory. This will ...
  • 906
18 votes

How to access a usb flash drive from the terminal?

Use udisksctl from package=udisks2 (in both Ubuntu and Debian). Procedure is: Find the ID of the block device you want to mount, using lsblk: user@machine:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE ...
  • 291
17 votes

Is there any way to turn off a USB HDD manually?

Running hdparm -y /dev/sdb as root will cause the disk to stop spinning. If anything access the disk, it will spin up again. The man page suggest this is only useful for IDE drives. However I have ...
  • 1,659
17 votes

Why is it that I am unable to format my pendrive in exfat using gparted?

Workaround: use gnome-disks This is the default pre-installed disk manager tool on Ubuntu that shows on the Dash as "Disks". You can also launch if from the terminal with: gnome-disks ...
16 votes

How do I monitor disk activity on a specific drive?

Using iostat from the sysstat package provides a single snapshot of results since startup. Use of the interval parameter will append the results for only the last interval to the output. Example, ...
  • 165
16 votes

fail to install ubuntu server 14.04 64bit LTS from USB drive

Problem is that the new image isn't meant to be used with unetbootin or any of the normal USB creators. Just use dd like: dd if=ubuntu-14.04.2-server-amd64.iso of=/dev/sdb bs=16M (obviously, ...
  • 161
16 votes

Flashing Ubuntu ISO to USB stick with dd: recommended block size

My standard dd block size is bs=4096 Some years ago I tested different block sizes, and found that bs=4096 is a good value for most cases. It made no big difference to increase the block size to ...
  • 44k
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

Live USB on a 2-partition usb-drive

I found an alternative way which is more straightforward. There are 2 important pieces of information one needs to understand about why this works. The first is about the boot process and how the ...
  • 326
15 votes
Accepted

Why isn't Ubuntu delivering USB images instead of ISO ones?

The current iso image is ddable and the images have been ddable for quite some time now as far as I know. sudo dd if=./ubuntu.iso of=/dev/sdx bs=16M Where ./ubuntu.iso is the path to the actual file ...
  • 41.1k

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