Jump to content

Do not begin to migrate content here, it may be wiped without notice. More info.

ExampleForChooseADevice

From Debian Wiki

HOWTO guides sometimes need to tell the user to find a specific physical device (e.g. to format it). This template provides standard instructions:

Typing the wrong device name can destroy all information on your hard disk, so follow these instructions to select the right device name: <syntaxhighlight lang="shell">

  1. Make sure your device is disconnected or turned off, then do:

ls /dev/disk/by-id/*

If you did everything right, the head command should only work when the device is plugged in. You can now use $TARGET_DEVICE instead of the name of your device in future commands.

The instructions below often refer to $TARGET_DEVICE. If you create a variable as described above, you can paste those exact instructions. Otherwise, change $TARGET_DEVICE to your actual device name.