How to Format Drives in Linux

About: I am currently a Junior in high school involved in theater and I am constantly playing with my arduino and love to mod things around the house

Intro: How to Format Drives in Linux

Skip to the next paragraph if you don't want the story. So a while back I was riding around my neighborhood and found a computer in someones trash so I took it home and dismantled it.I took out the hard drive and graphics card, thankfully it was a SATA drive so I could easily plug it into my computer which is a desktop and took a look at it. Whoever it was that last owned the computer was obviously not aware that they had to run a virus scanner once in a while because when I tried to boot from the drive I got the blue screen of death and when I ran the virus scanner it found over 10 viruses and malware. In the end I formatted the drive in windows plugged IN my Linux flash drive and flashed Linux Mint to my new drive. And this is how I came to get Linux on my computer and to why I am writing this instructable

So this came about because i could not find an ible' on formatting flash/thumb drives in Linux so with a little research and some trial and error i got it to work.

Step 1:

Step 2: Linux

If you don't already have Linux installed I recommend Linux mint that is the distro that I run other popular ones are Ubuntu, Fedora, Debian, Open Suse, and Arch Linux.

some basic knowlege for those that mostly run windows, terminal is a command-line interface much like cmd.exe. to install a few small programs type sudo apt-get install this where this is the program you want to install for instalnce type this sudo apt-get install gimp this will install gimp an open source image editing program that i used to make the picture on this step with.

other commands include cd .. to move up in the directory tree dir to see what is in the file you are at cd FileName to change to that directory obviously the FileName is what file you are changing to. though we will not be using these as much as the apt-get command they can still be of use in the future.

Step 3: Install the Program

the program to install is called Parted Magic to install parted magic type sudo apt-get install gparted and press enter Linux might ask you for a password if so type it in and hit enter after a second it should be done. if you look in the administration tab in the menu you should find it called gparted.

Step 4: Open It

if you still have terminal open or you cant find it in the menu you can type sudo gparted to open it. because it is an administrative program you most likely will need to give your password

Step 5: Select a Flash Drive and Format

when you have gparted open look up in the top right corner you should see a drop down menu that lets you select the drive the button will be labeled /dev/sdx x is whatever the drive is labeled as click on that button and find your drive by size be careful it would be easy to mess up your hard drive. after you select your drive right click on it and select unmount if you haven't done so already when right click again and select format to than decide which format you want it to be than click apply. you can also use gparted to rename drives

congrats you have formatted a flash drive in Linux. if you have any questions, remarks, or criticisms please comment or PM me.

Share

    Recommendations

    • Tiny Home Contest

      Tiny Home Contest
    • Metalworking Contest

      Metalworking Contest
    • Audio Contest 2018

      Audio Contest 2018

    9 Discussions

    0
    None
    Ida140

    27 days ago

    I am new to Linux and fed up with MS. I understand there is a big learning curve to use Linux but I understood this article. It helped me to get started.

    Would you point me to easily understood site that explains more for a newbie dummie.

    1 reply
    0
    None
    Ryan HebronIda140

    Reply 25 days ago

    https://www.tecmint.com/

    tecmint is great for tutorials and stuff and even though I've been a Linux user for years I still visit it.

    https://www.reddit.com/r/linuxquestions

    https://www.reddit.com/r/linux4noobs/

    there are a lot of great people that are willing to help on reddit but I do suggest using google as much as possible. the better you get at your google-fu the easier it will be to find solutions down the road and whatever you dont find on google ask reddit.

    0
    None
    Ryan HebronTonyC273

    Reply 25 days ago

    For manjaro it would be `pacman -S` I think. Manjaro is a sub-distro of arch so I would assume it would use the same package manager.

    0
    None
    HunterP11

    2 years ago

    Did you forget a zero on the virus count? Ten's not a whole lot... Great guide though!

    0
    None
    AndrewF75

    2 years ago

    Really helpful article

    http://howtouselinux.net

    0
    None
    Ryan Hebron

    4 years ago on Introduction

    from what ive read mac will recognize fat32 and ext2 formats along with the norm hfs+ for mac

    0
    None
    Ryan Hebron

    4 years ago on Introduction

    form what i found windows will NOT recognize btrfs, ext2, ext3, ext4, jfs, linux-swap, reiserfs, and xfs, however linux mint will not mount drives formatted to linux-swap

    what windows will recognize is most fat file systems and ntfs

    0
    None
    lathe_makeatio

    4 years ago

    If you format in a file system that Windows can read. VFAT or Ntfs will work. Win is not able to read Linux Filesystems out of the box.