Hello!
Today i download slackware64 current to my usb flash for install on brothers notebook:
lftp -c 'open
http://mirrors.slackware.com/slackwa...kware-current/ ; mirror -c '
then i copy folder
/usb-and-pxe-installers from that flash to my desktop pc, where that flash is inserted ( slackware64 14.1 )
then i umount usb flash drive, and try make them bootable:
/mypath/usb-and-pxe-installers/usbimg2disk.sh -i usbboot.img -o /dev/sdd
then i get that strange error:
bash-4.2# sh usbimg2disk.sh -i usbboot.img -o /dev/sdd
# We are going to use this device - '/dev/sdd':
# Vendor : UFD 2.0
# Model : Silicon-Power8G
# Size : 7681 MB
#
# FDISK OUTPUT:
#
# Disk /dev/sdd: 8054 MB, 8054112256 bytes
# 1 heads, 62 sectors/track, 253720 cylinders, total 15730688 sectors
# Units = sectors of 1 * 512 = 512 bytes
# Sector size (logical/physical): 512 bytes / 512 bytes
# I/O size (minimum/optimal): 512 bytes / 512 bytes
# Disk identifier: 0xc3072e18
#
# Device Boot Start End Blocks Id System
# /dev/sdd1 * 24 15730687 7865332 c W95 FAT32 (LBA)
*** ***
*** If this is the wrong drive, then press CONTROL-C now! ***
*** ***
Or press ENTER to continue:
usbimg2disk.sh: line 363: UFD: command not found
*** usbimg2disk.sh FAILED at line 363 ***
--- Cleaning up the staging area...
bash-4.2# sh usbimg2disk.sh -i usbboot.img -o /dev/sdd1
*** I fail to find a 'vfat' partition: '/dev/sdd11' !
*** If you want to format the USB thumb drive, add the '-f' parameter
see at line 363 and - there is something about a labelling.
ok, try to give label in command:
bash-4.2# sh usbimg2disk.sh -L SLCK64_cur -i usbboot.img -o /dev/sdd
# We are going to use this device - '/dev/sdd':
# Vendor : UFD 2.0
# Model : Silicon-Power8G
# Size : 7681 MB
#
# FDISK OUTPUT:
#
# Disk /dev/sdd: 8054 MB, 8054112256 bytes
# 1 heads, 62 sectors/track, 253720 cylinders, total 15730688 sectors
# Units = sectors of 1 * 512 = 512 bytes
# Sector size (logical/physical): 512 bytes / 512 bytes
# I/O size (minimum/optimal): 512 bytes / 512 bytes
# Disk identifier: 0xc3072e18
#
# Device Boot Start End Blocks Id System
# /dev/sdd1 * 24 15730687 7865332 c W95 FAT32 (LBA)
*** ***
*** If this is the wrong drive, then press CONTROL-C now! ***
*** ***
Or press ENTER to continue:
--- Setting FAT partition label to 'SLCK64_cur'
--- Available free space on the the USB drive is 771332 KB
--- Required free space for installer: 42624 KB
--- Copying boot files to the USB drive...
--- Cleaning up the staging area...
--- Making the USB drive '/dev/sdd' bootable...
*** usbimg2disk.sh FAILED at line 471 ***
--- Cleaning up the staging area...
umount2: No such file or directory
umount: /mnt/img.fVZZE0: not found
bash-4.2#
again get strange error.
in that stage i be very bored, and want to simply install bootimage, as so i get the same script from slackware64 14.1 and copy in the same place, and run:
bash-4.2# sh 14.1_usbimg2disk.sh -i usb
usbboot.img usbboot.img.mirrorlist usbimg2disk.sh usbimg2disk.sh.mirrorlist
bash-4.2# sh 14.1_usbimg2disk.sh -i usbboot.img -o /dev/sdd
# We are going to use this device - '/dev/sdd':
# Vendor : UFD 2.0
# Model : Silicon-Power8G
# Size : 7681 MB
#
# FDISK OUTPUT:
#
# Disk /dev/sdd: 8054 MB, 8054112256 bytes
# 1 heads, 62 sectors/track, 253720 cylinders, total 15730688 sectors
# Units = sectors of 1 * 512 = 512 bytes
# Sector size (logical/physical): 512 bytes / 512 bytes
# I/O size (minimum/optimal): 512 bytes / 512 bytes
# Disk identifier: 0xc3072e18
#
# Device Boot Start End Blocks Id System
# /dev/sdd1 * 24 15730687 7865332 c W95 FAT32 (LBA)
*** ***
*** If this is the wrong drive, then press CONTROL-C now! ***
*** ***
Or press ENTER to continue:
--- Using current FAT partition label 'SLCK64_CUR'
--- Available free space on the the USB drive is 729312 KB
--- Required free space for installer: 42624 KB
--- Your USB drive contains directory 'syslinux'
--- This will be overwritten. Press CTRL-C to abort now!
Or press ENTER to continue:
--- Copying boot files to the USB drive...
--- Cleaning up the staging area...
--- Making the USB drive '/dev/sdd' bootable...
bash-4.2#
as you can see, with script from slack 14.1 all be as it must be.
looks like someone is seriously broken usbimg2disk script in slackware64 current.
i can say - it is ok - broken in trying to get something in script better, but looks like, no one is even testing script after make changes in it, and put that one not-working in to distribution?
it looks like a "redhat", "microsoft" and so way, no slackware way...?