DD сообщает об успехе через несколько секунд, но на самом деле ничего не происходит. Также не удается отформатировать USB (Debian 10)

У меня была такая же проблема с Fedora 28 и Bluetooth-мышью, которая отключалась -в конце концов решил эту проблему, добавив файл правила udev ()в /etc/udev/rules.d/99 -bluetooth -mouse.rules с содержимым:

#
#  stops power saving on bluetooth mouse
#  install in /etc/udev/rules.d/
ACTION=="add", SUBSYSTEM=="hid", ATTR{power/control}="on"
2
02.01.2021, 19:28
2 ответа

Предполагая, что /dev/sdbна самом деле является правильным блочным устройством для вашего USB-накопителя, данные были кэшированы для записи, но еще не записаны на USB-устройство.

Вы можете убедиться в правильности /dev/sdb, проверив, что оно исчезает, когда вы извлекаете USB-накопитель, и снова появляется через несколько секунд после повторной установки флэш-накопителя в компьютер. При необходимости взгляните на последние несколько строк из dmesg, чтобы увидеть, какое устройство ядро ​​назначило вашему USB-устройству.

Установив правильное имя устройства, используйте эту пару команд, чтобы убедиться, что данные полностью записаны на целевое устройство.

sudo dd bs=16M if=Downloads/ubuntu-20.04.1-live-server-amd64.iso of=/dev/sdb
sync
1
18.03.2021, 22:38

Просто используйте cpв соответствии с рекомендациями документации Debian:

cp debian.iso /dev/sdaX
sync

4.3.1. Подготовка USB-накопителя с использованием гибридного образа CD или DVD

Important

Simply writing the CD or DVD image to USB like this should work fine for most users. The other options below are more complex, mainly for people with specialised needs.

С помощью ddнеобходимо определить размер сектора:

isosize -x <device>

Затем;

dd if=<file> of=<device> bs=<sector size>; sync

или:

dd if=<file> of=<device> bs=<sector size> status=progress oflag=sync

Debian FAQ:Как проверить загруженные образы ISO и записанные оптические носители?

Checksums of already written optical media match those found in the checksum files. This is a slightly more difficult operation to describe. The problem with the verification of written optical media is that some media types will possibly return more bytes than those found in the ISO image. This trailing garbage is impossible to avoid with CD written in TAO mode, incrementally recorded DVD-R[W], formatted DVD-RW, DVD+RW, BD-RE, and also with USB keys. Therefore, we need to read exactly the same number of sectors of data from the media as are found in the ISO image itself; reading any more bytes from the media will alter the checksum result.

The isosize program can be used to find out the appropriate amount of bytes to be read from the optical media. It shows the sector count and the sector size from the optical media, where is the device file of the loaded optical media.

$ /sbin/isosize -x <device>
sector count: 25600, sector size: 2048

Then sector count and sector size are passed to dd to read the appropriate amount of bytes from the optical media and the byte stream is then piped to the appropriate checksum tool (sha512sum, sha256sum, etc).

$ dd if=<device> count=<sector count> bs=<sector size> | sha512sum
0
18.03.2021, 22:38

Теги

Похожие вопросы