LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-28-2013, 10:02 PM   #1
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 570

Rep: Reputation: 58
GRUB 2.00 ramdisk boot in Slackware 14.1?


I have Slackware 14.1, and I use GRUB 2.00. I also have tons of RAM. Is it possible to use GRUB 2.00 to, upon booting, load the OS (all the kernel modules, etc.) into a ramdisk so my system runs faster?

I read about initrd in the GRUB manual, but are there any tutorials on how to do this?

Is what I'm asking what this describes?

thanks

Last edited by Geremia; 12-28-2013 at 10:15 PM.
 
Old 12-28-2013, 10:35 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
please read down half way on the webpage here http://docs.slackware.com/slackware:beginners_guide

the script to generate the command for you is already in Slackware . after you run that command it will output some text then copy paste that text in the terminal. it will create the intrid.gz which is your ram disk. then you will use the generic kernel make sure you edit your lilo and run /sbin/lilo
 
1 members found this post helpful.
Old 12-28-2013, 10:44 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If you want to run the complete OS in a RAM-disk you will have to manually change the startup scripts and change the boot process.
I have already done that, it is not that difficult if you are willing to learn about the bot process , but I am not doing that anymore, because I think it is a waste of time. You will get slower boot times in exchange for faster application startup times, but usually only for the first start of an application, after that it will be cached in RAM and not start from the slower harddisk anymore (if you have enough RAM). You will get much better boot times and almost similar application startup times with just using a SSD. Firefox on my main system starts in about 2 seconds, the time added to the boot process with the "boot to RAM" approach would be a multiple of that.

If you still are interested how to load the system into RAM and run it from there have a look at this thread: http://www.linuxquestions.org/questi...om-ram-904942/
 
1 members found this post helpful.
Old 12-30-2013, 12:29 PM   #4
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 570

Original Poster
Rep: Reputation: 58
Quote:
Originally Posted by Drakeo View Post
please read down half way on the webpage here http://docs.slackware.com/slackware:beginners_guide
Interesting
I'll look into mkinitrd.

Although, why exactly can't a make a ramdisk with the "huge" kernel?
 
Old 12-30-2013, 12:37 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You can make a RAM-disk with the huge kernel. Though there is no point in it. One has to separate what you want (running the complete OS in RAM) with the purpose of an initrd (which is also a RAM-disk). The purpose of the latter is to enable the OS to load drivers from that RAM-disk (the initrd) before being able to access the harddisk. Some type of hen and egg problem, how can I access the disk if the drivers for the filesystem reside on the disk and have to be loaded first. This has nothing to do with your aim.
 
Old 12-30-2013, 03:03 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,361

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
I was thinking the OP wanted to boot to loader and then copy an entire OS to a ramdrive. I've done that a long time ago. Yes, running from ramdrive is way fast. Many of the live cd's offer a way to copy the compressed filesystem to ram. One could copy that or use a more traditional create ramdrive and copy file by file the partitions they want to be in ram.

IBM page is more of a topic for pxe boot.
 
Old 12-31-2013, 11:57 AM   #7
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 570

Original Poster
Rep: Reputation: 58
Quote:
Originally Posted by jefro View Post
I was thinking the OP wanted to boot to loader and then copy an entire OS to a ramdrive. I've done that a long time ago. Yes, running from ramdrive is way fast. Many of the live cd's offer a way to copy the compressed filesystem to ram. One could copy that or use a more traditional create ramdrive and copy file by file the partitions they want to be in ram.
Yes, but this sounds like something I'd have to manually write a script to do?
Quote:
Originally Posted by jefro View Post
IBM page is more of a topic for pxe boot.
What's a pxe boot?
thanks
 
Old 01-02-2014, 07:58 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Geremia View Post
Yes, but this sounds like something I'd have to manually write a script to do?
You will have to manually change some scripts in any way.
Quote:
What's a pxe boot?
PXE is the standard method for booting over the network.
 
  


Reply

Tags
boot up, grub, performance, ramdisk, slackware


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
How to boot Slackware with GRUB? autior Linux - Newbie 4 04-05-2012 02:17 PM
[SOLVED] How come I can't edit /boot/grub/grub.conf or /boot/grub/menu.lst in Fedora 14? trien27 Fedora 4 01-22-2011 04:02 PM
RAMDISK: couldn't find valid ramdisk image starting at 0. iotc247 Slackware 10 12-10-2010 03:08 PM
grub can not boot slackware? shanenin Linux - Software 5 11-28-2003 04:46 PM
How to boot Slackware 9 (install) with Grub ? piraxter Slackware 1 03-24-2003 11:55 AM

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

All times are GMT -5. The time now is 02:21 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