Discussion:
setup on install disk
(too old to reply)
root
2023-12-01 04:08:34 UTC
Permalink
Shortly after 15.0 came out I made a bootable USB stick
from the installation iso. I used that to install
15.0 on my current machine.

This afternoon I tried to re-use that install USB and
I found that there was no setup command. Any ideas of
what happened?
Rich
2023-12-01 05:11:13 UTC
Permalink
Post by root
Shortly after 15.0 came out I made a bootable USB stick
from the installation iso. I used that to install
15.0 on my current machine.
This afternoon I tried to re-use that install USB and
I found that there was no setup command. Any ideas of
what happened?
We can only guess -- you have the actual stick and could investigate to
determine what happened.

Two guesses:

1) low quality stick that has lost files since it was written.

2) pebkac deleted the setup command from the stick
root
2023-12-01 23:50:03 UTC
Permalink
Post by Rich
1) low quality stick that has lost files since it was written.
2) pebkac deleted the setup command from the stick
The USB stick is a Sandisk USB3.
I only used the stick, exited after the installation
and put it aside.

Thanks for responding.
John Forkosh
2023-12-02 08:58:38 UTC
Permalink
Post by root
Shortly after 15.0 came out I made a bootable USB stick
from the installation iso. I used that to install
15.0 on my current machine.
This afternoon I tried to re-use that install USB and
I found that there was no setup command. Any ideas of
what happened?
I've re-used usb install sticks from various slackware64-current/
dates post-15.0 (most recent was 06Jul2023, don't recall earliest)
without any trouble whatsoever. Exactly how'd you create yours?
My two-step procedure (both as root) is...

(a) download >>everything<<
rsync -av --delete \
rsync://mirrors.kernel.org/slackware/slackware64-current/ \
my_local_slackware64-current_directory/
(b) create the usb stick, let's say mounted on /dev/sdb
(see "Create a bootable USB stick non-destructively" in README_USB.TXT),
cd my_local_slackware64-current_directory/usb-and-pxe-installers/
chmod 755 usbimg2disk.sh
./usbimg2disk.sh -f -s my_local_slackware64-current_directory/ \
-o /dev/sdb
(for help info just run ./usbimg2disk.sh without args,
then use "example#2" as shown, i.e., for those -f -s switches)

...So, exactly and precisely, how did you create your usb stick?
--
John Forkosh ( mailto: ***@f.com where j=john and f=forkosh )
John Forkosh
2023-12-02 11:26:06 UTC
Permalink
John Forkosh <***@panix.com> wrote:
<<snip>>
Post by John Forkosh
(b) create the usb stick, let's say mounted on /dev/sdb
^^^^^^^^^
Sorry, did I say "mounted"? Just plug it in to /dev/sdb,
but don't explicitly mount it. The script will do all that.
<<snip>>
--
John Forkosh ( mailto: ***@f.com where j=john and f=forkosh )
root
2023-12-02 20:12:11 UTC
Permalink
Post by John Forkosh
...So, exactly and precisely, how did you create your usb stick?
I did this shortly after 15.0 came out. As best I can remember, I
downloaded the .iso image, dd to the USB stick. Then booted off
the stick.
John Forkosh
2023-12-03 06:59:29 UTC
Permalink
Post by root
Post by John Forkosh
...So, exactly and precisely, how did you create your usb stick?
I did this shortly after 15.0 came out. As best I can remember, I
downloaded the .iso image, dd to the USB stick. Then booted off
the stick.
Oh, you're using the slackware64-live-current.iso image
from https://download.liveslak.org/slackware64-current-live/ ?
I should have guessed because a while back I had exactly your
same problem with the iso. Can't recall where I found the
answer, but here it is...
note: to use same usb stick several times, cd to its mount point,
cat /dev/null > persistence/var/log/messages
cat /dev/null > persistence/var/log/syslog
(these get filled up, using 100% of the usb stick)
So mount your stick, do a df, and see if its Use% is 100.
Did that work for you, too?
--
John Forkosh ( mailto: ***@f.com where j=john and f=forkosh )
root
2023-12-04 16:19:33 UTC
Permalink
Post by John Forkosh
Post by root
Post by John Forkosh
...So, exactly and precisely, how did you create your usb stick?
I did this shortly after 15.0 came out. As best I can remember, I
downloaded the .iso image, dd to the USB stick. Then booted off
the stick.
Oh, you're using the slackware64-live-current.iso image
from https://download.liveslak.org/slackware64-current-live/ ?
I should have guessed because a while back I had exactly your
same problem with the iso. Can't recall where I found the
answer, but here it is...
note: to use same usb stick several times, cd to its mount point,
cat /dev/null > persistence/var/log/messages
cat /dev/null > persistence/var/log/syslog
(these get filled up, using 100% of the usb stick)
So mount your stick, do a df, and see if its Use% is 100.
Did that work for you, too?
Thanks for responding. I didn't make myself clear, I have
both a 15.0 live and an install usb stick. The live boots
directly into slackware, while the install comes up with
the standard stuff like "in a pinch ...".

I was deinitely using the install.

Petri Kaukasoina
2023-12-02 09:31:04 UTC
Permalink
Post by root
Shortly after 15.0 came out I made a bootable USB stick
from the installation iso. I used that to install
15.0 on my current machine.
This afternoon I tried to re-use that install USB and
I found that there was no setup command. Any ideas of
what happened?
How did you find there was no setup command? If you mount the USB stick and
browse its contents, you shouldn't see it.

You boot your machine from that USB. Its boot loader prints some info and
after the prompt 'boot: ' you press RETURN and then it loads the kernel and
an initrd containing the setup system. Then you select the keyboard and
after pressing another RETURN, you are root in the setup system. Now, you
type 'setup' and you say it doesn't work?

The setup command is in directory /usr/lib/setup of the setup system. The
setup system is extracted from an XZ compressed initrd image (if you mount
the iso9660 partition of the USB stick, the initrd image is in
isolinux/initrd.img).
protozoaire
2023-12-02 17:38:37 UTC
Permalink
Post by Petri Kaukasoina
. . .
The setup command is in directory /usr/lib/setup of the setup system. The
setup system is extracted from an XZ compressed initrd image (if you mount
the iso9660 partition of the USB stick, the initrd image is in
isolinux/initrd.img).
initrd.img is (normally?) a gzip compressed cpio archive, known by
$ file (PathtTo)/initrd.img
Example to extract all files/dirs tree in current dir:
$ gunzip -cd (PathTo)/initrd.img> | cpio -i -d -m -H newc --no-absolute-filenames
For succinct documentation, your friends are, on a slackware with manual pages:
$ man file $ man cpio $ man initrd for more details
Petri Kaukasoina
2023-12-03 09:55:29 UTC
Permalink
Post by protozoaire
initrd.img is (normally?) a gzip compressed cpio archive, known by
$ file (PathtTo)/initrd.img
$ gunzip -cd (PathTo)/initrd.img> | cpio -i -d -m -H newc
--no-absolute-filenames
Insert the USB stick. OK, it's the 3.5G partition, /dev/sdb1 here. initrd is
XZ compressed. bsdtar extracts anything! 'setup' is there. You can even try
to run it from the extracted setup system via chroot. (Won't work correctly
there, of course.)

***@acer:~ # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931.5G 0 disk
|-sda1 8:1 0 931.5G 0 part /
`-sda2 8:2 0 1007K 0 part
sdb 8:16 1 28.6G 0 disk
|-sdb1 8:17 1 3.5G 0 part
`-sdb2 8:18 1 1.4M 0 part
sr0 11:0 1 1024M 0 rom
***@acer:~ # mount -o ro /dev/sdb1 /mnt/memory
***@acer:~ # file /mnt/memory/isolinux/initrd.img
/mnt/memory/isolinux/initrd.img: XZ compressed data, checksum CRC32
***@acer:~ # TMPDIR=$(mktemp -d)
***@acer:~ # cd $TMPDIR
***@acer:/tmp/tmp.Pr2IHKp8O9 # bsdtar xf /mnt/memory/isolinux/initrd.img
***@acer:/tmp/tmp.Pr2IHKp8O9 # ls -l usr/lib/setup/setup
-rwxr-xr-x 1 root root 17982 2022-02-02 10:20 usr/lib/setup/setup
***@acer:/tmp/tmp.Pr2IHKp8O9 # chroot $TMPDIR /usr/lib/setup/setup
root
2023-12-02 20:14:19 UTC
Permalink
Post by Petri Kaukasoina
How did you find there was no setup command? If you mount the USB stick and
browse its contents, you shouldn't see it.
I was trying to use the same stick to install 15.0 on a different
machine. I booted off the stick. After logging in as root, I
typed setup as normal. I got command not found.
Loading...