This creates a mountpoint named " 1tb" and you can mount it there. I use the -p so that you can make an additional subdirectory named "notmounted". To mount the drive (and since it is an external drive), once it's successfully formatted, make a directory such as /1tb to mount it when needed.
If this (for whatever reason) doesn't work - download GParted, write the ISO file to a CD/DVD or USB stick.īoot from the created medium and format the external USB drive from within the GParted GUI application.įirst create a new partition table and then create a new partition and format the partition with a file system.īe extremely careful with what you're doing - double-check everything before you run the given commands.įor the original poster who goes by " IT Support" Replace mkfs.vfat with mkfs.ext4 or mkfs.ntfs, if you want one of those formats. The last command formats the disk with FAT32, the commonly used format for USB disks. Replace 'Y' with the partition number (partition you've created before - usually number 1). Note : Replace 'X' with the letter of the USB disk you've identified with the first command. Format the USB drive - execute : sudo mkfs.vfat /dev/sdXY.Press "n" and Enter | Press "p" and Enter | Press "w" and Enter.Prepare the USB drive - execute : sudo fdisk /dev/sdX.Unmount the USB drive - execute : sudo umount /dev/sdX.First identify the USB drive - execute : sudo parted -l.