LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-07-2013, 01:34 PM   #1
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,231

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
initrd.img takes a long time to load when booting Slackware from USB


I have a USB boot disk created with usbimg2disk.sh. The "loading initrd.img" step (the one with the row of horizontal dots) takes a long time. How can I speed it up?

I'm using a USB3 boot disk on a USB2 system, and my USB BIOS settings should be correct (i.e. not crippled).
 
Old 11-07-2013, 01:41 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,314

Rep: Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327
sounds like initrd is massive. You really only need the root filesystem, usb & usb storage, motherboard chipset & anything else to get your root drive mounted & being read. Then it can grab the module tree. Fedora has 31MB of modules on my initrd. Every driver for every system ever made :-/.
 
1 members found this post helpful.
Old 11-07-2013, 01:44 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,231

Original Poster
Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
You're right.

Code:
syslinux  du -h initrd.img 
30M	initrd.img

Last edited by dugan; 11-07-2013 at 01:45 PM.
 
Old 11-07-2013, 02:54 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Well the initrd is so big because it contains the Slackware installer... it needs to support everything.
The long loading times are caused by your USB stick - it's quite common. Buying one with faster read speeds will help.

Eric
 
Old 11-07-2013, 04:46 PM   #5
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
I'm often setting up HP Proliant Microservers. This kind of hardware has no optical drive, so I have to install Slackware using a USB stick. Loading the initrd takes up to five minutes on these machines.
 
Old 11-07-2013, 09:03 PM   #6
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,508

Rep: Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472
One nice thing about UEFI is that the kernel/initrd load much faster from USB.
 
1 members found this post helpful.
Old 11-08-2013, 11:18 AM   #7
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Rep: Reputation: 153Reputation: 153
I always change usbimg2disk.sh to remove the -s flag to syslinux. Here's a diff

Code:
diff usbimg2disk.sh.bak usbimg2disk.sh
472c472
< /usr/bin/syslinux -s -d /syslinux $TARGETPART 1>>$LOGFILE 2>&1
---
> /usr/bin/syslinux -d /syslinux $TARGETPART 1>>$LOGFILE 2>&1
Speeds things up considerably

Alexc
 
Old 11-08-2013, 11:20 AM   #8
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Rep: Reputation: 153Reputation: 153
btw. If it works for others perhaps we can have it as an optional flag to usbimg2disk.sh

Alex
 
  


Reply



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
[SOLVED] one of the website takes a very long time to load tkmsr Linux - Server 31 04-11-2018 10:01 PM
GRUB2 takes a long time to load squirrel-the-tire Linux - Software 10 03-03-2010 04:47 PM
grub takes long time to load matrix13 Linux - Software 1 01-16-2009 02:19 AM
ndiswrapper module takes an awfully long time to load xiang83 Slackware 1 12-17-2005 11:24 AM
takes long time to load the KDE bruse Linux - Newbie 14 10-03-2005 03:29 PM

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

All times are GMT -5. The time now is 09:58 PM.

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