website

This is my amazing website!
git clone git://shipwreckt.co.uk/website
Log | Files | Refs | README | LICENSE

FormattingUSB.html (2864B)


      1 <!DOCTYPE html>
      2 <html lang="en-GB">
      3   <head>
      4     <meta charset="UTF-8">
      5     <meta name="author" content="Shipwreckt">
      6     <meta name="viewport" content="width=device-width, initial-scale=1.0">
      7     <title>Formatting USBs with Linux 🔌🔥</title>
      8     <link rel="stylesheet" href="../../../styles.css">
      9     <link rel="icon" href="../../../Images/favi.png" type="image/x-icon">
     10   </head>
     11   <body>
     12     <header>
     13       <nav>
     14         <ul>
     15           <li><a href="../../../index.html">Home</a></li>
     16           <li><a href="../../../links.html">Links</a></li>
     17           <li><a href="../../../projects.html">Projects</a></li>
     18           <li><a href="../../../contact.html">Contact</a></li>
     19         </ul>
     20       </nav>
     21     </header>
     22     <main>
     23       <h1>Formatting USBs With Linux 🔌🔥</h1>
     24       <h3>Date: 23-08-2024</h3>
     25       <hr>
     26       <p>Formatting a USB in Linux is easier then <a href="01BurningIsos">burning an ISO</a> and only needs a few quick commands!</p><hr>
     27       <h2>What you will need 📋</h2>
     28       <ul>
     29         <li>A USB drive</li>
     30         <li>A computer with Linux  🐧🖥</li>
     31         <li>The ability to read instructions and to follow them 🧠</li>
     32       </ul><hr>
     33 
     34       <h2>Formatting the USB</h2>
     35       <p>1) The first thing you want to do is plug in your USB stick and identify the USB stick's name.</p>
     36       <div class="code-box">
     37         <p>lsblk</p>
     38       </div>
     39       <p>Normally the USB will be something like sdX; a tip on identifying it is by looking at the size of the USB in the table that lsblk gives you!</p><hr>
     40 
     41       <p>2) Now you need to use a program called <a href="https://linux.die.net/man/8/fdisk">fdisk</a> that will allow you to create a new partition table for the USB, this will format the USB.</p> 
     42       <div class="code-box">
     43         <p>sudo fdisk /dev/sdX</p>
     44       </div>
     45       <p>You will need to press the following keys to make a new partition table for the USB.</p>
     46       <ul>
     47         <li>o - Creates a new DOS partition table</li>
     48         <li>n - New partition, press enter to all that follows</li>
     49         <li>w - Writes the partition table</li>
     50       </ul>
     51       <p>Give fdisk a minute to write the new partition to the USB.</p><hr> 
     52 
     53       <p>3) Now is the time to give that partition a file system. You should look into this beforehand to see what file system you want, but I will use fat32 because it works with all operating systems.</p>
     54       <div class="code-box">
     55         <p>sudo mkfs.fat -F 32 -n "Backup-USB" /dev/sdXx</p>
     56       </div>
     57       <p>The small x represents the number of the partition; the -L flag is used to give the USB stick a name.</p><hr>
     58 
     59       <h2>Finished ✅</h2>
     60       <p>All done! Now you have an empty USB stick you can use for all your files!</p><hr>
     61 
     62       <center>
     63         <pre text-align=center>  <a href="../../linuxlist.html">Back 🚪</a>
     64     </main>
     65 </body>
     66 </html>
     67