LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 02:34 PM   #1
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,972

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
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, 02:41 PM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,604

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
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, 02:44 PM   #3
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,972

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

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

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

Rep: Reputation: Disabled
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, 05:46 PM   #5
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,944

Rep: Reputation: 967Reputation: 967Reputation: 967Reputation: 967Reputation: 967Reputation: 967Reputation: 967Reputation: 967
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, 10:03 PM   #6
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 876

Rep: Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825
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, 12:18 PM   #7
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 393

Rep: Reputation: 41
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, 12:20 PM   #8
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 393

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

Alex
 
  


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


All times are GMT -5. The time now is 08:30 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration