Skip to main content

Format Linux Bootable Drive To Normal Pendrive

 

Format Linux USB drive in Windows


Format Linux USB drive in Windows (not visible in file explorer)

Launch the command prompt or Powershell, run the command diskpart. The Diskpart command line application will open.

First, type list disk to show all of the disks connected to the PC. Now determine which of these is your Linux disk. You can usually identify it based on the sizes listed. You will want to be 100% sure of your selection here because the following commands will wipe ALL DATA from whichever disk you select.

Select the disk by using the command select disk X where X is the number of your disk from the previous command. Once you have selected your disk, use clean it to remove all existing partitions.

Create a new partition  create partition primary and then mark it as active. Finally, we can format the disk with format fs=Fat32 quick. Now your USB drive or SD card is ready to be used again.

For quick reference, here are all of the commands in order:

  diskpart
  list disk
  select disk X
  clean
  create partition primary
  active
  format fs=Fat32 quick
  
  

Comments

Popular posts from this blog

Arch Linux Installation

 First Connect to network ================ iwctl device list station wlan0 get list station wlan0 connect "Home" ========== timedatactl set-ntp true Set partitions ======== fdisk -l fdisk /dev/sdX p o n p t a w  fdisk -l Creating Physical Volumes ================= pvcreate --dataalignment 1m /dev/sda1 vgcreate volgroup0 /dev/sda1 lvcreate -L 30GB volgroup0 -n lv_root lvcreate -l 100%GB volgroup -n lv_home Load New Volume to Memory ================== modprobe dm-mod vgscan vgchange -ay Format Partitions ========== mkfs.ext4 /dev/volgroup0/lv_root  mount /dev/volgroup/lv_root /mnt mkfs.ext4 /dev/volgroup0/lv_home mkdir /mnt/home  mount /dev/volgroup/lv_home /mnt/home mkdir /mnt/etc genfstab -U -p /mnt >> /mnt/etc/fstab cat /mnt/etc/fstab Installing Arch Linux ============= pacstrap -i /mnt base arch-chroot /mnt pacman -S linux linux-headers linux-lts linux-lts-headers vim base-devel openssh systemctl enable sshd pacman -S networkmanger wpa_supplicant wireless_too...

A Minimal Ubuntu Setup

 How do I setup my Linux Distro Ubuntu After Installing It. First update and upgrade ========================     sudo apt update     sudo apt upgrade git Installation ================     sudo apt install git Github Desktop Installation ============================  sudo wget                                    https://github.com/shiftkey/desktop/releases/download/release-2.6.3-linux1/GitHubDesktop-linux-2.6.3-linux1.deb sudo apt-get install gdebi-core sudo gdebi GitHubDesktop-linux-2.6.3-linux1.deb Curl Installation =================      sudo apt instal -y curl nodejs =======      sudo apt install -y nodejs npm ====      sudo apt install npm Installation of cargo =====================     sudo apt install cargo gcc and g++ =========== ...

Jakarta Servlets

  Jakarata Servlets Information and Jstl <!-- https://mavenlibs.com/maven/dependency/org.glassfish.web/jakarta.servlet.jsp.jstl --> < dependency > < groupId >org.glassfish.web</ groupId > < artifactId >jakarta.servlet.jsp.jstl</ artifactId > < version > 3.0.1 </ version > </ dependency > mysql : mysql-connector-java <!-- https://mavenlibs.com/maven/dependency/mysql/mysql-connector-java --> < dependency > < groupId >mysql</ groupId > < artifactId >mysql-connector-java</ artifactId > < version > 8.0.32 </ version > </ dependency >