Page 1 of 1

Init script does not check for USBFLASH media

Posted: Thu 24 Aug 2006, 02:21
by NicolasHoTaylor
The script /initrd/sbin/init has a function called loadpupsfsfunc(). It checks for flash drives with a
[ "$PMEDIA" = "ideflash" ] && SIZETESTK=$SIZEFILLK

- however lots of people have PMEDIA of "usbflash", so the init script should test for that too.

The impact of this is that users who have copied PUP_202.SFS to a USB flash drive, or done a USB flash drive install, lose about 70Mb of RAM, and their boot-up takes 30-45 seconds longer.

This bug report follows on from the Beginners Help question I posted here:
http://www.murga.org/~puppy/viewtopic.php?t=8615

Posted: Thu 24 Aug 2006, 14:10
by BarryK
The reason it was done that way is that usb is slower than the ide interface,
especially usb1. I haven't actually tried it, but I think for usb1, leaving
pup_202.sfs on the flash drive would make application startup times very
slow indeed.
Loading it into ram does slow the boot time, but then you win later, for the
app startup times. As far as loosing some ram, yes, but a swap partition can
fix that, or 256M or more leaves plenty of free space.