История изменений
Исправление bormant, (текущая версия) :
Почитаем README_USB.TXT:
Create a bootable USB stick non-destructively
---------------------------------------------
If you do not want to sacrifice a USB thumb drive for this (note that
dumping the image file on the USB stick will destroy all data already
present on the stick), there is a solution: Slackware also ships with a
script usbimg2disk.sh since the 13.0 release (actually, it is the file
/usb-and-pxe-installers/usbimg2disk.sh ). This script extracts the content
from the 'usbboot.img' image file and uses this to transform a regular USB
thumb drive into a bootable Slackware installer non-destructively (i.e. any
existing files on the stick will not be touched). The only requirement is,
that there is at least 30 MB of available free space on the stick.
The usbimg2disk.sh script is also convenient if your computer refuses to
boot from a USB stick loaded with the usbboot.img file. The BIOS of some
computers will not understand the format of the default Slackware USB
image. Using the usbimg2disk.sh script, you create an alternative bootable
USB stick that will be recognized by your computers BIOS.
Запытаем usbimg2disk.sh
# bash usbimg2disk.sh --help
#
# Purpose #1: to use the content of Slackware's usbboot.img and
# transform a standard USB thumb drive with a single vfat partition
# into a bootable medium containing the Slackware Linux installer.
#
# Purpose #2: to use the contents of a Slackware directory tree
# and transform a standard USB thumb drive with
# a single vfat partition and 2GB of free space into
# a self-contained USB installation medium for Slackware Linux.
#
#
# Your USB thumb drive may contain data!
# This data will *not* be overwritten, unless you have
# explicitly chosen to format the drive by using the '-f' parameter.
#
# usbimg2disk.sh accepts the following parameters:
# -h|--help This help
# -e|--errors Abort operations in case of any errors
# -f|--format Format the USB drive before use
# -i|--infile <filename> Full path to the usbboot.img file
# -l|--logfile <filename> Optional logfile to catch fdisk output
# -o|--outdev <filename> The device name of your USB drive
# -s|--slackdir <dir> Use 'dir' as the root of Slackware tree
# -u|--unattended Do not ask any questions
# -L|--label <labelname> FAT label when formatting the USB drive
#
# Examples:
#
# usbimg2disk.sh -i ~/download/usbboot.img -o /dev/sdX
# usbimg2disk.sh -f -s /home/ftp/pub/slackware-13.0 -o /dev/sdX
#
# The second example shows how to create a fully functional Slackware
# installer on a USB stick (it needs a Slackware tree as the source).
#
Вспомним, что в Slackware собственно установочное окружение и источник пакетов сущности весьма разные, на одном носителе быть не обязаны, но могут. Если делаем полный установщик, то указывается ключом -s источник пакетов, и -i не обязателен.
В сухом остатке, например, для подготовки полного установщика на /dev/sdb будет что-то вроде:
# cd /tmp
# wget http://mirror.yandex.ru/slackware/slackware-iso/slackware64-14.2-iso/slackware64-14.2-install-dvd.iso
# mkdir /tmp/iso
# mount -o loop /tmp/slackware64-14.2-install-dvd.iso /tmp/iso
# bash /tmp/iso/usb-and-pxe-installers/usbimg2disk.sh -s /tmp/iso -o /dev/sdb
Исходная версия bormant, :
Почитаем README_USB.TXT:
Create a bootable USB stick non-destructively
---------------------------------------------
If you do not want to sacrifice a USB thumb drive for this (note that
dumping the image file on the USB stick will destroy all data already
present on the stick), there is a solution: Slackware also ships with a
script usbimg2disk.sh since the 13.0 release (actually, it is the file
/usb-and-pxe-installers/usbimg2disk.sh ). This script extracts the content
from the 'usbboot.img' image file and uses this to transform a regular USB
thumb drive into a bootable Slackware installer non-destructively (i.e. any
existing files on the stick will not be touched). The only requirement is,
that there is at least 30 MB of available free space on the stick.
The usbimg2disk.sh script is also convenient if your computer refuses to
boot from a USB stick loaded with the usbboot.img file. The BIOS of some
computers will not understand the format of the default Slackware USB
image. Using the usbimg2disk.sh script, you create an alternative bootable
USB stick that will be recognized by your computers BIOS.
Запытаем usbimg2disk.sh
# bash usbimg2disk.sh --help
#
# Purpose #1: to use the content of Slackware's usbboot.img and
# transform a standard USB thumb drive with a single vfat partition
# into a bootable medium containing the Slackware Linux installer.
#
# Purpose #2: to use the contents of a Slackware directory tree
# and transform a standard USB thumb drive with
# a single vfat partition and 2GB of free space into
# a self-contained USB installation medium for Slackware Linux.
#
#
# Your USB thumb drive may contain data!
# This data will *not* be overwritten, unless you have
# explicitly chosen to format the drive by using the '-f' parameter.
#
# usbimg2disk.sh accepts the following parameters:
# -h|--help This help
# -e|--errors Abort operations in case of any errors
# -f|--format Format the USB drive before use
# -i|--infile <filename> Full path to the usbboot.img file
# -l|--logfile <filename> Optional logfile to catch fdisk output
# -o|--outdev <filename> The device name of your USB drive
# -s|--slackdir <dir> Use 'dir' as the root of Slackware tree
# -u|--unattended Do not ask any questions
# -L|--label <labelname> FAT label when formatting the USB drive
#
# Examples:
#
# usbimg2disk.sh -i ~/download/usbboot.img -o /dev/sdX
# usbimg2disk.sh -f -s /home/ftp/pub/slackware-13.0 -o /dev/sdX
#
# The second example shows how to create a fully functional Slackware
# installer on a USB stick (it needs a Slackware tree as the source).
#
Вспомним, что в Slackware собственно установочное окружение и источник пакетов сущности весьма разные, на одном носителе быть не обязаны, но могут. Если делаем полный установщик, то указывается ключом -s источник пакетов и -i не обязателен.
В сухом остатке, например, для подготовки полного установщика на /dev/sdb будет что-то вроде:
# cd /tmp
# wget http://mirror.yandex.ru/slackware/slackware-iso/slackware64-14.2-iso/slackware64-14.2-install-dvd.iso
# mkdir /tmp/iso
# mount -o loop /tmp/slackware64-14.2-install-dvd.iso /tmp/iso
# bash /tmp/iso/usb-and-pxe-installers/usbimg2disk.sh -s /tmp/iso -o /dev/sdb