I can't format it. The content it is unreadable and can't find anything on it!
Welcome!
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
This question has been flagged
- Go to the disk manager for linux
- Select the disk
- Format it by clicking the option found in the disk manager
🧭 Step-by-Step Guide to Format a Disk on Linux
1. Identify the Disk
bash
CopyEdit
lsblk
or
bash
CopyEdit
sudo fdisk -l
Look for the correct device name (e.g., /dev/sdb). Make sure it’s the right one.
2. Unmount the Disk (if mounted)
bash
CopyEdit
sudo umount /dev/sdX1
Replace sdX1 with the correct partition (e.g., /dev/sdb1). Do this for all partitions on the disk.
3. (Optional) Wipe Existing Partition Table
bash
CopyEdit
sudo wipefs -a /dev/sdX
or
bash
CopyEdit
sudo dd if=/dev/zero of=/dev/sdX bs=1M count=100
4. Create a New Partition Table
Use fdisk (for MBR) or gdisk/parted (for GPT):
bash
CopyEdit
sudo fdisk /dev/sdX
Inside fdisk, do the following:
- o – create a new empty DOS partition table
- n – create a new partition
- w – write changes and exit
5. Format the Partition
Choose the file system type:
-
ext4 (common for Linux):
bash
CopyEdit
sudo mkfs.ext4 /dev/sdX1
-
xfs:
bash
CopyEdit
sudo mkfs.xfs /dev/sdX1
-
fat32 (for compatibility with Windows/macOS):
bash
CopyEdit
sudo mkfs.vfat -F 32 /dev/sdX1
6. Mount the Formatted Disk
bash
CopyEdit
sudo mkdir /mnt/mydisk sudo mount /dev/sdX1 /mnt/mydisk
✅ Done!
If you want to make the mount permanent, you can edit /etc/fstab.