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
Post a Comment