LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-28-2016, 04:59 AM   #1
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Rep: Reputation: 68
How to make the default/install Slackware memory stick boot faster?


I have the default Slackware install memory stick "burned" onto several memory sticks, but I almost never end up using them - as they are extremely slow to load. Specifically the copying of hugesmp and initrd.img takes a long time. In my tests, using a few different laptops and desktops and different memory sticks, I get the following results:

hugesmp - 10s-50s
initrd.img - 57s-5min!

The above times are before the actual booting process starts.

On the same machines, booting off an optical disc is so much faster - with the initial copying of the above two files always taking a matter of a few seconds. Even when I plug an external optical drive into the same usb ports and boot off it, it still loads several times faster than off the memory stick.

Is there anything that can be done to boot off the standard memory stick image faster?

Last edited by xj25vm; 10-31-2016 at 05:25 AM.
 
Old 10-28-2016, 07:51 AM   #2
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
xj25vm --

Not an expert, but I do occasionally boot a USB Stick on a Zotac ZBox to run a transmission torrent Server and I havn't noticed long boot times.

I do have a couple Qs ...

Q1: Why an initrd when you're running hugesmp ?

Q2: if you're running lilo, have you tried unpounding the compact line in /etc/lilo.conf ?

HTH ...

-- kjh
 
Old 10-28-2016, 08:12 AM   #3
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Original Poster
Rep: Reputation: 68
Quote:
Q1: Why an initrd when you're running hugesmp ?

Q2: if you're running lilo, have you tried unpounding the compact line in /etc/lilo.conf ?
As per my original message, I'm not referring to booting off a usb flash drive in general - I'm referring to the usb images shipped with Slackware in the "usb-and-pxe-installers" directory. They are images, they are already built - all you do is just dd them to a usb flash drive. No option to reconfigure things. I would like to use them instead of the Slackware DVD, when installing new machines or troubleshooting things. But their slow boot times (sometimes very slow) detracts from their usefulness.
 
Old 10-28-2016, 01:29 PM   #4
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Dooh !

I completely missed that subtlety.

And now that you mention it, when installing to an older laptop from a USB thumb drive a couple weeks ago, it did seem slow to boot.

Sorry about the noise.

-- kjh
 
Old 10-29-2016, 08:53 AM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Have you tried just writing the entire iso to the usb drive? It's what I've done for the past several years (which led me to remove my dvd drives from my desktop as that was the only thing I was using them for) and I don't remember any slowness on booting them. The iso images starting with 14.1 are already prepped for usb, so there's no need to run isohybrid on it like some online guides might suggest. You just need to dd it onto the device. (NOTE: make sure you select the correct device as this will destroy any data on it)

Code:
dd if=/location/to/slackware64-14.2-install-dvd.iso of=/dev/sdX
 
2 members found this post helpful.
Old 10-29-2016, 01:22 PM   #6
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
I saw one or two machines that spent too much time reading kernel and initrd.img from installation media.
But I don't remember details about m/b or BIOSes.
 
Old 10-29-2016, 04:15 PM   #7
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Arrow

Apparently it is a BIOS issue:
Check the bios release dates and compare to fast USB booters out there :/

I had even a BIOS that refused to "see" a non floppy-emulation USB thumbdrive.

Verify times:
Boot off an Optical medium and install the "full" system
Boot off an USB storage and install the "full" system
Boot off an Optical medium but point the install to pull packages form USB storage

My guess:
You'll find out the USB is faster than Optic (even SATA ones) yet boots painstakingly slow on said motherboards?

I think floppy emulation could speed this up

and/or maybe the plop boot manager as the initial booter?
 
Old 10-30-2016, 02:23 AM   #8
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Rep: Reputation: 153Reputation: 153
I had a similar problem years ago. See thread http://www.linuxquestions.org/questi...sb-4175483766/

It's probably not applicable anymore as so much time has elapsed!
 
Old 10-30-2016, 10:21 AM   #9
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Question

Quote:
Originally Posted by aikempshall View Post
I had a similar problem years ago. See thread http://www.linuxquestions.org/questi...sb-4175483766/

It's probably not applicable anymore as so much time has elapsed!
What does the syslinux -s switch do?
 
Old 10-30-2016, 10:31 AM   #10
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Rep: Reputation: 153Reputation: 153
According to the syslinux manual

Quote:
-s, --stupid
Install a "safe, slow and stupid" version of SYSLINUX. This version may work on some very buggy BIOSes on which SYSLINUX would otherwise fail. If you find a machine on which the -s option is required to make it boot reliably, please send as much info about your machine as you can, and include the failure mode.
If the -s option is there take it out and see if that speeds things up.
 
Old 10-30-2016, 02:08 PM   #11
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Original Poster
Rep: Reputation: 68
Quote:
Originally Posted by bassmadrigal View Post
Have you tried just writing the entire iso to the usb drive? It's what I've done for the past several years
Hmm - I've just created an ISO image of -current using Alien Bob's script (http://www.slackware.com/~alien/tool...are-current.sh) and dd'ed to a memory stick - but I can't boot from it. Does anybody know if the iso images made by Alien Bob's script are different from the standard ones?
 
Old 10-30-2016, 03:12 PM   #12
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
I think they are?
 
Old 10-30-2016, 04:18 PM   #13
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Rep: Reputation: 153Reputation: 153
Quote:
Hmm - I've just created an ISO image of -current using Alien Bob's script (http://www.slackware.com/~alien/tool...are-current.sh) and dd'ed to a memory stick - but I can't boot from it. Does anybody know if the iso images made by Alien Bob's script are different from the standard ones?
Before the dd you might have to do an isohybrid on the iso.
 
Old 10-30-2016, 04:58 PM   #14
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by xj25vm View Post
Hmm - I've just created an ISO image of -current using Alien Bob's script (http://www.slackware.com/~alien/tool...are-current.sh) and dd'ed to a memory stick - but I can't boot from it. Does anybody know if the iso images made by Alien Bob's script are different from the standard ones?
You need to either run the script with the -u option (see quote below) or run isohybrid on the iso after the script is done.

Code:
echo "  -u            Create a hybrid ISO (can be dd-ed to USB stick)."
 
2 members found this post helpful.
Old 10-31-2016, 05:24 AM   #15
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Original Poster
Rep: Reputation: 68
Quote:
You need to either run the script with the -u option (see quote below) or run isohybrid on the iso after the script is done.
Thank you for that. Indeed, after re-running the script with -u and dd'ing the resulting iso image to the usb flash drive, it is bootable.

Quote:
Have you tried just writing the entire iso to the usb drive?
I can confirm that writing the iso directly to the memory stick with dd fixes the problem. I've re-tested on the same machines, using the same usb flash drives. Most machines are now loading bzimage and initrd almost instantly - or in a matter of seconds at worst. Only one machine is still slow (but faster than before - 1.5 minutes for initrd, instead of 5 minutes) - but this is an old machine - with either usb 1.1 onboard, or a buggy BIOS.

Somehow it seems that the usb image bundled in the usb-and-pxe-installers directory uses a different booting method than the iso. Thank you for the tip! Maybe this post will be seen by one of the Slackware bigwigs - and the usb images will be modified to boot equally fast.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Install Debian Linux from USB boot memory stick LXer Syndicated Linux News 0 04-09-2010 06:10 AM
Install and boot from usb memory stick Owenbeg Linux - Newbie 2 11-11-2009 05:47 AM
Inquiry:Can I make use of external memory stick as a media for RedHat 7.2 install? hadimotamedi Linux - Newbie 2 09-06-2009 07:42 AM
How to install Linux Mint (or others if recomended) to run and boot on Memory Stick jszeliga Linux - Newbie 5 08-12-2009 02:33 AM
How can I make my memory stick work KiwiPingu Linux - Newbie 18 07-24-2004 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration