Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-07-2013, 01:34 PM
|
#1
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,352
|
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).
|
|
|
11-07-2013, 01:41 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,427
|
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.
|
11-07-2013, 01:44 PM
|
#3
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,352
Original Poster
|
You're right.
Code:
➜ syslinux du -h initrd.img
30M initrd.img
Last edited by dugan; 11-07-2013 at 01:45 PM.
|
|
|
11-07-2013, 02:54 PM
|
#4
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
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
|
|
|
11-07-2013, 04:46 PM
|
#5
|
MLED Founder
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453
|
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.
|
|
|
11-07-2013, 09:03 PM
|
#6
|
Slackware Maintainer
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 3,057
|
One nice thing about UEFI is that the kernel/initrd load much faster from USB.
|
|
1 members found this post helpful.
|
11-08-2013, 11:18 AM
|
#7
|
Member
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 906
Rep: 
|
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
|
|
|
11-08-2013, 11:20 AM
|
#8
|
Member
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 906
Rep: 
|
btw. If it works for others perhaps we can have it as an optional flag to usbimg2disk.sh
Alex
|
|
|
All times are GMT -5. The time now is 12:44 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|