"[ERROR] Can not get disk, please use fdisk -l to check available disk name!" Displayed During Card Making
Symptom
The error message "[ERROR] Can not get disk, please use fdisk -l to check available disk name!" is displayed during card making, as shown in Figure 9-1.
Possible Causes
- The drive letter entered does not exist.
- The Linux installation language or terminal output is Chinese. In this scenario, the prepared script cannot match the fields related to Chinese. Figure 9-2 shows the displayed information.
Solution
For possible cause 1, run the fdisk -l command to obtain the correct drive letter (for example, /dev/sdb) and make the card again.
For possible cause 2, perform the following operations:
- Run the following command to check the language of the current environment:
echo $LANG
If the following information is displayed, the current environment language is Chinese:
- Run the following command to temporarily change the language of the current terminal to English:
LANG=en_US
- Run the following command to check whether the language of the current environment is changed successfully:
fdisk -l
If the following information is displayed, the language of the current environment is changed to English.