Skip to main content

Steps on how to format your flash drive on Windows, Linux and Mac Operating System.





Windows Operating System:

1. Insert the flash drive into the computer.

2. Open the Command Prompt. You can do this by searching for "cmd" in the Start menu or by pressing the Windows key + R, typing "cmd" and pressing Enter.

3. Type the following command and press Enter: "diskpart"

4. Type the following command and press Enter: "list disk"

5. for the flash drive in the list of disks. It will be identified by its size and the "Removable" attribute. Make a note of the disk number.

6. Type the following command and press Enter: "select disk <number>" (replace <number> with the number of the flash drive you identified in step 5)

7. Type the following command and press Enter: "clean"

8. Type the following command and press Enter: "create partition primary"

9. Type the following command and press Enter: "select partition 1"

10. Type the following command and press Enter: "active"

11. Type the following command and press Enter: "format fs=fat32 quick" (if you want to format it to NTFS use "format fs=ntfs quick" instead)

12. Once the format is complete, type the following command and press Enter: "assign"

13. Exit diskpart by typing "exit" and then press Enter.

The flash drive should now be formatted and ready for use.

Note: that formatting a drive will erase all data on the drive, so make sure to backup any important files before formatting.


Linux Operating System:

1. Insert the flash drive into a USB port on your Linux

computer.

2. Open a terminal window.

3. Use the command "lsblk" to list all of the storage devices connected to your computer. Look for the device that represents your flash drive. It will be listed as a "sdX" device, where "X" is a letter such as "a" or "b".

4. Unmount the flash drive using the command "umount/dev/sdX", replacing "X" with the letter that represents your flash drive.

5. Use the command "fdisk /dev/sdX" to open the fdisk utility and create a new partition table on the flash drive.

6. Type "o" to create a new empty DOS partition table.

7. Type "n" to create a new partition.

8. Type "p" to create a primary partition.

9. Press "Enter" to accept the default partition number.

10. Press "Enter" to accept the default first sector.

11. Press "Enter" to accept the default last sector and create a partition that fills the entire flash drive.

12. Use the command "mkfs.ext4 /dev/sdX1" to format the partition as ext4 file system.

13. Use the command "mount /dev/sdX1 /mnt" to mount the flash drive to a directory /mnt.

14. Type "sync" to write all buffered data to the drive, and then safely remove the flash drive.

Note: Be very careful when working with disk partitioning and formatting commands, as it is possible to accidentally delete important data or damage your computer's storage devices.



Mac Operating System:

1. Insert the flash drive into a USB port on your Mac.

2. Open Finder and locate the flash drive on the left sidebar under "Devices" or "External".

3. Right-click (or control-click) on the flash drive and select "Erase" from the context menu.

4. In the "Format" drop-down menu, choose the file system you want to use (ex: "MS-DOS (FAT)" or "ExFAT").

5. Enter a name for the flash drive in the "Name" field.

6. Click "Erase" to begin formatting the flash drive.

7. Once the formatting is complete, the flash drive will be ready for use.

Note: Be very careful when working with disk partitioning and formatting commands, as it is possible to accidentally delete important data or damage your computer's storage devices. Also be aware that if the flash drive has important data that you need, formatting will erase all data on the flash drive.


Comments

Popular posts from this blog

The Origin of Programming

  The origin of programming can be traced back to the late 19th century and early 20th century, when mechanical calculators and punched card systems were developed. The idea behind these machines was to automate repetitive mathematical calculations and data processing tasks, making them faster and more accurate than manual methods. One of the earliest forms of programming was machine language, which was used to communicate directly with the hardware of these machines. However, this language was difficult for humans to use, as it involved writing code in binary, a series of 0s and 1s that represented instructions for the machine. The first programming language that was designed for human use was Fortran, which was developed in the 1950s by IBM. Fortran was used to program scientific and engineering applications, and was designed to be easy for scientists and engineers to use. It was a high-level language, meaning that it used commands and syntax that were closer to human languag...