You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用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.

1. First, Confirm Your USB Drive Identifiers (Critical!)

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.
2. Ensure All USB Partitions Are Unmounted

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
3. Use the Official 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 process
  • status=progress: Shows real-time progress so you don’t wonder if the command is stuck
  • sync: Ensures all data is fully written to the USB before the command exits
4. Troubleshoot Common Errors

Since you hit an error earlier, here are fixes for the most frequent issues:

  • Permission denied: You forgot to prepend sudo to 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 the of path 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).
5. Verify the Bootable USB

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.

6. Alternative: Use Etcher (GUI Tool)

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 10:13:40