使用sudo dd制作Kali Linux启动盘时遇终端错误,寻求解决方法
Hey there, let’s work through this Kali Linux bootable USB issue step by step. Since you didn’t share the exact commands you ran, error messages you saw, or drive details, I’ll walk you through the standard troubleshooting workflow and correct steps to get this sorted out.
Messing up the drive path can wipe your main system disk, so let’s get this right first:
- Open a terminal and run
sudo lsblk. Look for your USB drive—it’ll show up as something like/dev/sdb(not/dev/sda, which is almost always your internal system drive). Match the size to your USB stick to be sure. - Important: You need to use the whole disk device (e.g.,
/dev/sdb), not a partition like/dev/sdb1.
Even if you think you unmounted it, double-check and unmount all partitions on the drive:
sudo umount /dev/sdb*
Replace /dev/sdb with your actual drive identifier. If you get a "target is busy" error, close any file explorer windows that have the USB drive open, then run the command again. If that still doesn’t work, kill processes using the drive with:
sudo fuser -km /dev/sdb
dd Command to Write the ISO The standard, reliable command to create a Kali bootable USB is dd. Make sure you’ve downloaded the Kali ISO first, then run:
sudo dd if=/path/to/your/kali.iso of=/dev/sdb bs=4M status=progress && sync
Let’s break this down:
if: Points to your downloaded Kali ISO file (e.g.,~/Downloads/kali-linux-2024.1-amd64.iso)of: The target USB drive (again, use the whole disk, no partition number)bs=4M: Uses a larger block size to speed up the write processstatus=progress: Shows real-time progress so you don’t wonder if the command is stucksync: Ensures all data is fully written to the USB before the command exits
Since you hit an error earlier, here are fixes for the most frequent issues:
- Permission denied: You forgot to prepend
sudoto the command—writing to disk requires root privileges. - No such file or directory: Double-check the path to your Kali ISO. If it’s in your Downloads folder, use
~/Downloads/kali.iso(replace with the actual filename). - Invalid argument: You used a partition (like
/dev/sdb1) instead of the whole disk. Correct theofpath to the root drive identifier. - Write error: Your USB drive might be corrupted. Try formatting it first with
sudo mkfs.vfat /dev/sdb1(or use a different USB stick if possible).
Once the dd command finishes, safely eject the USB to avoid data corruption:
sudo eject /dev/sdb
Plug it into the target machine, boot from the USB (you may need to press F12, F2, or Del to access the boot menu), and test if Kali loads correctly.
If the command line is giving you headaches, try Etcher—a simple, graphical tool designed for creating bootable drives:
- Install Etcher via your package manager (search for "balena-etcher") or download the app image from official Kali resources.
- Open Etcher, select your Kali ISO, pick your USB drive, and click "Flash". It handles unmounting and writing automatically, so you don’t have to worry about command syntax.
内容的提问来源于stack exchange,提问作者Emp1

