Formatting pendrive through command prompt without losing data

Date:

2018-09-03 13:00:55

Views:

759

Rating:

1Like 0Dislike

Share:

Table of contents:

Without flash it is hard to imagine modern life office or the ordinary user. To transfer data from computer to computer, hand in the report or to save something important and unseen - all this is possible thanks to the removable media. All flash drives are shipped from the factory already formatted. As a rule, their file system-FAT32. In today's world it is outdated, as it has several significant disadvantages. Among them are the inability to move the stick files larger than 4 GB, and a limit on the size of partitions on your hard drives.

A Little about file systems and their differences

The Range of Windows since the release uses the FAT file system. Its a more advanced version is FAT32. After it is NTFS introduced in Windows XP.

formatting pendrive through command prompt

The differences of these representatives file systems is the limitation on the size of the hosted files and partitions. FAT16 can use up to 2 GB, FAT32 — up to 4 GB for file and 8TB volume. The more modern NTFS can manage files and partitions up to 16 exabytes. However, it has a limit on the path length that must be less than 255 characters.

Apple uses HFS+ for its technology. It also has a limit on the length of the path name or file of 255 characters. It is worth remembering for the automatic creation of documents or to preserve them. The sizes of files and partitions can be up to 8 000 petabytes.

Linux distributions use line file systems ext. The latest version — the ext4 file system implemented so far in 2008.

formatting pendrive through command prompt diskpart

Interestingly, the Linux system can easily work with file systems FAT, FAT32, and NTFS. But Windows does not even see the ext partition and derived without any additional software.

How to spend formatting pendrive through command prompt

Newer and More modern is considered to be the NTFS file system. It can work effectively with large sections and files. Besides, its speed is much higher than its predecessor. Also reliability in placement of data on the partition and indexing help to take the place of more optimized for performance and volume.

Recommended

How to get out of

How to get out of "Skype" on the "Android" and not only

How to get out of "Skype" "Android"? This question bothers many users. The thing is that the messenger is not so difficult. But there are features that are only for mobile versions. To log out of Skype in this case more difficult than it seems. But i...

Kingo ROOT: how to use the program to gain administrative rights on Android

Kingo ROOT: how to use the program to gain administrative rights on Android

The Gadgets on the platform Android regained the lion's share of the market. Developers are continually perfecting the OS, trying to fit the needs of the users, but from year to year admit palpable mistake: forbid the owner to "stuffing" of his gadge...

How to get from Stormwind to Tanaris: practical tips

How to get from Stormwind to Tanaris: practical tips

World of Warcraft is an iconic MMORPG, uniting millions of players around the world. There are many locations and puzzles, secret trails and larger, but rather dangerous paths. Sooner or later, every player chose the side of the Alliance, we have to ...

formatting pendrive through command prompt without losing data

In order to format pendrive using command prompt from FAT32, to NTFS there are several ways.

Standard tools of the operating system

Operating system families Linux and Windows are equipped with standard utilities, capable to carry out the formatting pendrive through command prompt. First you need to understand the Windows system. It has a utility to format a pendrive using command prompt-diskpart. Since it is a system program and affects important areas of the OS, then you need to run it as administrator.

Run in Windows is it possible by going to the menu “start” then “All programs” - “Standard”. Here you need to right click on the item “Command prompt” and choose “Run as administrator”.

Opens a command prompt window. It is enough to type diskpart and press “Enter”. Now enter further commands will be transmitted via the utility and run it.

formatting pendrive through command prompt fat32

To begin the formatting process, you need to type format Z: /FS:NTFS. Here Z is the drive letter of the USB drive. And the key FS and an indication of NTFS utility says that you need to format the disk in NTFS.

The Only disadvantage of this method is that if the flash drive had the files, they will be hopelessly lost.

Formatting pendrive through command prompt without losing data

In fact, to perform this task impossible. You cannot format the drive, not erasing the data. But you can convert from one file system to another. Here also can help the utility diskpart. As it is run from the administrator described above. Next you need to enter the command list volume. It will display a list of all available partitions and disks with their letters and volumes. Following the team — list disk. It will show all physical drives in the system. Disks can be marked with numbers 0, 1, 2, and so on.

formatting pendrive through command prompt windows 7

Now a command select disk 1 will choose the correct drive. Then convert to ntfs. Then Specified the drive to increaseET NTFS.

Other methods

Prior To this were shown how to format pendrive using command prompt Windows 7. But what if you need to perform this procedure on Ubuntu or Debian? Next will be described a method of formatting the stick using Linux command line.

Actually, in Linux it is called terminalor console. You can open it with Ctrl+Alt+T. Then you need to look at the list of connected devices. This allows you to do the command fdisk-l.

In this case, the flash drive is listed under the name /dev/sdb1. In Linux, for changing partition or disk should unmount them. It is necessary in order to access the data, which can be busy at the moment.

But in order to accurately verify that the drive tontitown, you need to dial a simple command:

Df-h

After pressing Enter the screen will display a list of all devices which are mounted at the moment. If something like /dev/sdb1 is present in him, it means that you will have to disconnect. This is done with the command umount /dev/sdb1.

to format the flash drive through linux command line

Now you can format the pendrive using the command line. This has a built-in mkfs command. Her entrance need to pass multiple parameters. First, this is a system file. In this case — ntfs. By the way, this utility can hold formatting pendrive through command prompt to fat32. Next you need to specify the name or label for the drive. And finally — the path to the flash drive. In the end it should be like this:

Mkfs.Imamate ntfs /dev/sdb1.

Once the process is complete will the flash drive with the new NTFS file system.

Third-Party program to format

Some manufacturers of removable drives have their own software for fast and reliable formatting in a convenient graphical interface. There are also programs and from third-party developers. The following is a list of commonly used products:

  • HP USB Disk Storage Format Tool. Probably the most well-known program. The interface is simple and resembles the standard Windows operating system.
  • Transcend Autoformat. This utility is primarily used for mobile storage formats-SD, MMC, CF.
  • HDD Low Level Format Tool. Utility that produces a low level format. Sometimes helps to revive a flash drive or hard disk. Supports many devices and has broad functionality.
  • SD Formatter — very simple and easy program. Mainly used to format flash drives for mobile devices. The interface is simple and clear, and the license to use it free.

Conclusion

Many operating systems there are more elegant ways of formatting without command line. Using the GUI, you can also easily perform this task. Formatting a pendrive using command prompt is mainly for low-level process, when other methods do not help.

There are more complex and multi-step methods of resuscitation flash drives. They use special programs Separately per controller Drive. But these details are beyond the scope of this article.


Article in other languages:

AR: https://tostpost.com/ar/computers/5274-formatting-pendrive-through-command-prompt-without-losing-data.html

BE: https://tostpost.com/be/kamputary/9200-farmatavanne-fleshk-praz-kamandnuyu-radok-bez-straty-dadzenyh.html

DE: https://tostpost.com/de/computer/9113-die-formatierung-des-sticks-ber-die-kommandozeile-ohne-datenverlust.html

ES: https://tostpost.com/es/los-ordenadores/9100-formato-de-pendrive-a-trav-s-de-la-l-nea-de-comandos-sin-p-rdida-de-da.html

HI: https://tostpost.com/hi/computers/5205-pendrive.html

JA: https://tostpost.com/ja/computers/5246-pendrive.html

KK: https://tostpost.com/kk/komp-yuterler/9168-p-sh-mdeu-fleshkalar-ar-yly-p-rmen-bez-poteri-dannyh.html

PL: https://tostpost.com/pl/komputery/9327-formatowanie-pendrive-z-poziomu-wiersza-polece-bez-utraty-danych.html

PT: https://tostpost.com/pt/computadores/9332-a-formata-o-do-pendrive-atrav-s-da-linha-de-comando-sem-perda-de-dados.html

TR: https://tostpost.com/tr/bilgisayarlar/9167-bi-imlendirme-bellekten-komut-sat-r-zerinden-herhangi-bir-veri-kayb-ol.html

UK: https://tostpost.com/uk/komp-yuteri/9215-formatuvannya-fleshki-cherez-komandniy-ryadok-bez-vtrati-danih.html






Alin Trodden - author of the article, editor
"Hi, I'm Alin Trodden. I write texts, read books, and look for impressions. And I'm not bad at telling you about it. I am always happy to participate in interesting projects."

Comments (0)

This article has no comment, be the first!

Add comment

Related News

SkyDrive - what is it? Windows SkyDrive

SkyDrive - what is it? Windows SkyDrive

recently the only option to save their documents were voluminous hard disk. For quick backup users to use a CD/DVD, the capacity of which very soon became wholly insufficient.that is why such enthusiasm was met with the appearance...

Working with images: how to open ISO

Working with images: how to open ISO

Working with ISO files is actually not as scary and confusing as it seems at first glance. Today we will look at how to open ISO and how it can continue to work.first, a little theory. Files format ISO – it is an exact copy ...

Avast Free Antivirus: how to remove from PC completely

Avast Free Antivirus: how to remove from PC completely

Free anti-virus software installed on computers, users are not always satisfied, due to the limited capacity of such programs. Usually they contain only the basic tools that integrated protection not provide. Worse – when th...

Free photo editor in Russian language

Free photo editor in Russian language

to Edit a photo, many want: something wrong happened, somewhere not so shadow went... never know the reasons? For this purpose, there are photo editors. The most popular are Adobe Photoshop, which has given the word "photoshop". B...

What video format supports an Android: the default formats and reproducible applications

What video format supports an Android: the default formats and reproducible applications

Program to view the video in "Android" the default is "Video". It depends what video format supports "Android". But besides him there are many common applications where the list of supported formats is significantly expanded. Let ...

Bravado Gauntlet GTA 5 - where to find?

Bravado Gauntlet GTA 5 - where to find?

As everyone knows, the whole story line consists of 69 missions, of which six are key. They are robbing the particular points, each of which becomes harder and harder. Thus, after the sixtieth job you begin to prepare for the fina...