Skip to main content
Share Your Experience: Take the 2024 Developer Survey
43 votes

Can't format my usb drive. I have already tried with mkdosfs and gparted

Analysis of the problem Memory cards and USB pendrives have the same kind of hardware inside, so the same methods are relevant to both kinds of devices. The term 'drive' can refer to a USB pendrive ...
sudodus's user avatar
  • 46.5k
42 votes
Accepted

How to Fix "Read-only file system" error when I run something as sudo and try to make a folder/file?

This worked for me: First, run this command with sudo permission: sudo fsck -n -f Then reboot the machine. The options -f and -n are documented directly under man fsck, but under the filesystem-...
user639154's user avatar
27 votes

wipefs device or resource busy

Use the -f (force) option: wipefs -af /dev/sdb
Bogdan Adrian Velica's user avatar
24 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 “...
David Foerster's user avatar
21 votes

How to know when formatting disk has finsihed - Ubuntu 16.04?

I had a similar situation where I right clicked a previously created partition on an external drive to reformat it. Once it had started there was no window of any sort to show the progress of the ...
netsurfer38's user avatar
17 votes

How do I identify the partitions of my hard drive in order to then shred them all?

Why not shred then entire device (important! choose the right device to shred!): shred /dev/nvme0n1 ... rather than shred /dev/nvme0n1p1
Eric Mintz's user avatar
  • 2,516
14 votes

How to format Ubuntu bootable USB?

Neither of the two existing answers solved my problem. I needed to go to the Disks app and hit Ctrl-F to get a prompt to actually format the USB drive. Thanks to this answer.
Zhanwen Chen's user avatar
14 votes

How to Fix "Read-only file system" error when I run something as sudo and try to make a folder/file?

If you are dual booting Windows with Ubuntu and you do not have any error in dmesg, then the problem could very well be caused by Windows. In Windows go to Control Panel → Power Options and disable ...
Prejith P's user avatar
  • 251
14 votes

Ubuntu server 20.04 - time format 24 hours on shell with date command

The easiest way is to change LC_TIME variable to locale that uses desired time formatting. en_GB uses 24h clock for example. You can set it system-wide using localectl: localectl set-locale LC_TIME="...
Mateusz's user avatar
  • 419
13 votes

How to customize the font style in notify-send?

The issue might be that the summary string is not parsed, whereas the body string is parsed. The format should be notify-send <OPTIONS summary body> You will notice in the code below the summary (...
Hunter Frazier's user avatar
13 votes

wipefs device or resource busy

Unmount the disk and all the partitions on it: sudo umount /dev/sdb* Then retry the wipe.
12 votes

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

The best way to do is... Open Terminal sudo fdisk -l This will list your all mounted/unmounted device.. Look for your USB device ... you can cross-verify it by from the Disk utility...It may list ...
EngineSense's user avatar
11 votes
Accepted

How do I fix NTFS from Ubuntu?

You can try to use ntfsfix in order to repair the NTFS volume. This is a 'solution' in that it can fix simple errors such as the MFT and MFTMirror not matching up, and some minor filesystem ...
Thomas Ward's user avatar
  • 75.4k
10 votes

Why unmount a partition before overwriting the disk?

umount un-mounts file systems. This is needed here because it would be bad if you overwrote the partition while it is still mounted and possibly accessed by any application. You'd get errors. See ...
Byte Commander's user avatar
  • 108k
9 votes

How to Fix "Read-only file system" error when I run something as sudo and try to make a folder/file?

When accessing an HDD from different OS (Windows & Linux) the disk could contain an unclean file system. So the metadata cached in the OS, deny mounting the disk To try to correct the mistakes, ...
Braian Coronel's user avatar
9 votes

Formatting an ext4 partition with a 16KB block, possible?

You need to use mkfs.ext4 with -C 16384 and also -O bigalloc. From man mkfs.ext4: -C cluster-size Specify the size of cluster in bytes for filesystems using the bigalloc feature. Valid ...
GreenReaper's user avatar
8 votes

Cannot format my SD card

You can use the included Disks application Click on the target partition. Now you can create new partitions, format the disk or change partition type.
Hamed's user avatar
  • 790
8 votes

How to format a booteable usb made by Startup Disk Creator

Install mkusb sudo add-apt-repository universe sudo add-apt-repository ppa:mkusb/ppa sudo apt-get update sudo apt-get install mkusb Run mkusb and select restore to a standard storage device
Ronald Tudu's user avatar
7 votes

Thunderbird date format?

How to get YYYY-MM-DD HH:MM date format in Thunderbird 60 sudo ln -s /usr/share/i18n/locales/en_DK /usr/share/i18n/locales/root echo 'root.UTF-8 UTF-8' | sudo tee -a /etc/locale.gen sudo locale-gen ...
Håkon A. Hjortland's user avatar
7 votes
Accepted

Boot message about disk clean: Can it indicate bad disk?

The message you see comes from the output of fsck filesystem checking and repairing utility (see the last line): $ sudo fsck -V /dev/sdb6 ...
Sergiy Kolodyazhnyy's user avatar
7 votes

Why unmount a partition before overwriting the disk?

Please correct me if I do not use the most appropriate terms here. Within Linux/Ubuntu all devices are represented as files under the directory /dev. In the first answer of the linked question ...
pa4080's user avatar
  • 30k
7 votes

Why can't Ubuntu mount my exfat pen drive?

You should install the optional exfat filesystem on Ubuntu so that it can recognize it on your pen drive sudo apt-get install exfat-fuse exfat-utils Afterwards, just mount it normally.
user3138373's user avatar
7 votes

How do I identify the partitions of my hard drive in order to then shred them all?

I like lsblk, it show device name and partition inside it, as well the mounted partition. :~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 465,8G 0 disk ├─sda1 8:1 0 ...
Liso's user avatar
  • 15.4k
6 votes

How to format Ubuntu bootable USB?

I know I am late. But hoping this will help somebody. This method is same for every ubuntu versions. First follow the method 1 in this link to format the usb drive. I recommend the erase method as ...
Arjun Ajith's user avatar
6 votes

How to wipe up all partitions on disk and do a clean install of Ubuntu

Yes, if you select "Erase disk and install Ubuntu", this will delete all partitions on the entire disk and create and format new ones for Ubuntu. This is good enough for personal use if you have no ...
Byte Commander's user avatar
  • 108k
6 votes

USB Pendrive not mounting after formating

That's to be expected. By zeroing it out, you've overwritten the partition table and filesystem. You need to use Gparted or the Included "Disks" program to create a new partition table and ...
You'reAGitForNotUsingGit's user avatar
6 votes
Accepted

Does running dd if=/dev/zero often can damage the drive?

dd is not a low level format, it's just writing all zeroes to the entire disk. A low level format would be like running ATA Secure Erase. Additionally, there are also an even lower level format to ...
Lie Ryan's user avatar
  • 652
6 votes
Accepted

ICO or PNG Format?

Icons in Ubuntu Fixed size icons are usually in png format (can be viewed with most image viewers). Scalable icons are usually in svg format (can be viewed with for example eog, Eye of Gnome, and ...
sudodus's user avatar
  • 46.5k
5 votes

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

I had this problem before and i fix it like this: install GParted and open it. from upper-right part select your USB Flash Memory. select your storage from list box and create a partition table (menu ...
MH314K's user avatar
  • 51
5 votes
Accepted

How to format a new disk using command?

1.format /dev/sdb fdisk /dev/sdb enter: n enter: p ( primary ) enter: default -> press enter enter: default-> press enter enter:w ( write ) to save the changes if you type fdisk -l : you ...
Alpy's user avatar
  • 565

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