Software & AppsOperating SystemLinux

How To Fix a USB Stick That Can’t Be Mounted in Ubuntu

Ubuntu 20

In this article, we will discuss some of the common issues that prevent a USB stick from being mounted in Ubuntu, and provide detailed solutions to help you resolve these problems.

Quick Answer

If your USB stick can’t be mounted in Ubuntu, there are several steps you can take to resolve the issue. First, check the USB stick on a different computer to determine if the problem is with the USB stick or the computer. Next, make sure the ntfs-3g driver is installed on your Ubuntu computer. If necessary, forcefully mount and format the USB stick using commands in the terminal. Finally, if none of these solutions work, it’s possible that the USB stick itself is faulty or damaged.

1. Check the USB Stick on a Different Computer

Before delving into more complex solutions, it’s important to verify if the issue is with the USB stick itself or the computer. Connect the USB stick to another computer and see if it can be mounted and accessed. If it works on another computer, then the issue might be with the Ubuntu computer’s USB ports or drivers.

2. Install the ntfs-3g Driver

Ubuntu uses the ntfs-3g driver to read and write to NTFS drives, which is the default file system for most USB sticks. If this driver is not installed on your computer, it could be the reason why you can’t mount your USB stick.

You can install it by running the following command in the terminal:

sudo apt-get install ntfs-3g

In this command, sudo is used to execute the command as an administrator, apt-get is the package handling utility in Ubuntu, install is the command to install a package, and ntfs-3g is the name of the package to be installed.

3. Forcefully Mount and Format the USB Stick

If the USB stick is not being recognized properly, you can try forcefully mounting and formatting it.

First, create a directory to mount the USB stick by running the following command in the terminal:

sudo mkdir /media/usbdrive

Then, try mounting the USB stick using the following command:

sudo mount -t vfat /dev/sdd /media/usbdrive

In this command, sudo is used to execute the command as an administrator, mount is the command to mount a file system, -t vfat specifies the file system type as VFAT, /dev/sdd is the device to be mounted, and /media/usbdrive is the directory where the device will be mounted.

If the USB stick still can’t be mounted, you can try using the dd command to write zeros to the USB stick’s partition table:

sudo dd if=/dev/zero of=/dev/sdd bs=512 count=1

In this command, dd is a command-line utility for Unix and Unix-like operating systems whose primary purpose is to convert and copy files, if=/dev/zero specifies the input file as /dev/zero which is a special file that produces null bytes when read, of=/dev/sdd specifies the output file as the USB stick, bs=512 sets the block size to 512 bytes, and count=1 specifies that only one block should be copied.

After that, you can try formatting the USB stick using the mkfs.vfat command:

sudo mkfs.vfat /dev/sdd

In this command, mkfs.vfat is a command to create an MS-DOS filesystem under Linux on a device, and /dev/sdd is the device to be formatted.

4. Check for Hardware Issues

If none of the above solutions work, it is possible that the USB stick itself is faulty or damaged. Try using a different USB stick or connecting the current USB stick to a different USB port on the computer to rule out any hardware issues.

Remember to always backup any important data before attempting to format or repair a USB stick, as it may result in data loss.

In conclusion, there are several reasons why a USB stick might not be mountable in Ubuntu, and several solutions to try. If none of these solutions work, it might be time to consider professional data recovery services.

How can I check if the USB stick is mounted in Ubuntu?

You can check if the USB stick is mounted by opening the file manager (such as Nautilus) and looking for the USB stick in the sidebar. If it is mounted, you should see it listed there. Alternatively, you can open a terminal and run the command mount to see a list of all mounted devices, including the USB stick.

What should I do if the USB stick is not recognized on any computer?

If the USB stick is not recognized on any computer, it is likely that the USB stick itself is faulty or damaged. In this case, you may need to consider replacing the USB stick or contacting professional data recovery services if you have important data on it.

Can I use a different file system other than VFAT to format the USB stick?

Yes, you can use a different file system to format the USB stick. The mkfs command allows you to create different file systems. For example, you can use mkfs.ext4 to create an ext4 file system. Just replace mkfs.vfat with the appropriate command for the desired file system in the formatting step mentioned in solution #3.

Will formatting the USB stick erase all my data?

Yes, formatting the USB stick will erase all data stored on it. Therefore, it is important to make sure you have a backup of any important data before attempting to format the USB stick.

Leave a Comment

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