Команда 'dd' в Damn Small Linux?

903
adam10603

Я посмотрел на список пакетов DSL и не вижу «dd». Например, я хотел бы восстановить /dev/sdbфайл .img следующим образом:

dd bs=1M if=/home/myname/image.img of=/dev/sdb 

Какую команду я использую в DSL для этого? Или встроена команда 'dd'? Потому что его нет в списке пакетов.

0

1 ответ на вопрос

0
krowe

Update I just installed it to confirm but dd is installed with the default installation of DSL. The following only applies if you've somehow removed it (if that is the case then you may have a lot of other important stuff missing too, you may be better off starting fresh too because this could be really difficult to fix manually.

--

Open a terminal. At the prompt, type the following:

wget http://distro.ibiblio.org/pub/linux/distributions/damnsmall/mydsl/gnu-utils.dsl 

This will download the gnu-utils.dsl file onto /home/dsl. If this did not work, your problem is probably your internet connection. Check if the file was downloaded properly by confirming that its size is around 1.2 MB ( ls -lh ~/gnu-utils.dsl ).

Then at the prompt, type the following:

mydsl-load gnu-utils.dsl 

This will load the extension. Check this by executing the following command:

dd --help 

If everything is working you can delete ~/gnu-utils.dsl.

A full listing of programs which can be installed this way is on the DSL site: http://distro.ibiblio.org/damnsmall/mydsl/system/

Благодарю. Оказалось, что в DSL есть dd, его просто нет в списке пакетов. adam10603 9 лет назад 0

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