Page 1 of 1

S15pup64 wait time for finding USB drive set too low (solved)

Posted: Wed Dec 28, 2022 2:49 pm
by Firefly

Boot from usb the boot pause for the usb is to short to find the puppy sfs file, to cure i edit intrid/sbin/usbwait when using fossa.
S15pup does not have the above file so how do i extend time from 5 sec to 20

Thanks


Re: S15pup64

Posted: Wed Dec 28, 2022 3:42 pm
by gychang

have you tried usbwait=* seconds on the boot parameter?, this may help viewtopic.php?t=3220


Re: S15pup64

Posted: Wed Dec 28, 2022 4:39 pm
by Firefly

Hi
usbwait=20 as a kernal option does not work, still get "waiting for a slow usb" for 5 seconds then error of not finding sfs file on hard drive. so usbwait=20 does not effect that part, will see if i can find where the error message is thrown in intrd.zg.


Re: S15pup64

Posted: Wed Dec 28, 2022 5:55 pm
by Firefly

Solved
Expanded intrd file by clicking on file did a search in intrd/init file for slow, (error is "waiting 5 seconds for slow storage devices").

line 32 L_WAITING_FOR_DEV='Waiting %s seconds for slow storage devices.' #printf

search for L_WAITING_FOR_DEV
line737
wait_for_dev() {
echo -n "$(printf "$L_WAITING_FOR_DEV" "$WAITDEV")" > /dev/console

search for WAITDEV

line 860
WAITDEV=5

Changed WAITDEV=20

Then clicked on initrd file to load changes.

Loads and boot fine.

ps how do i marked post title solved??


Re: S15pup64

Posted: Wed Dec 28, 2022 7:39 pm
by mikeslr
Firefly wrote: Wed Dec 28, 2022 5:55 pm

Solved
Expanded intrd file by clicking on file did a search in intrd/init file for slow, (error is "waiting 5 seconds for slow storage devices").

line 32 L_WAITING_FOR_DEV='Waiting %s seconds for slow storage devices.' #printf

search for L_WAITING_FOR_DEV
line737
wait_for_dev() {
echo -n "$(printf "$L_WAITING_FOR_DEV" "$WAITDEV")" > /dev/console

search for WAITDEV

line 860
WAITDEV=5

Changed WAITDEV=20

Then clicked on initrd file to load changes.

Loads and boot fine.

ps how do i marked post title solved??

Having signed in, open to your first post, click on the 'Edit' button, and change the title to include the word 'Solved'.
By the way, nice piece of 'detective work'. :)


Re: S15pup64 wait time for finding USB drive set too low (solved)

Posted: Thu Dec 29, 2022 7:27 am
by Firefly

I have some python experience so code structure is not to strange for me. The trick i used was to look for the error print.

Older puppys have a script that alters the time, even older does not have a time but waits untill sfs found if not boot fails.

So can even alter time when using iso on ventoy or when using grub4dos stick.

Thanks for the solved info