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.
|
 |
12-28-2013, 10:02 PM
|
#1
|
Member
Registered: Apr 2011
Distribution: slackware64-current
Posts: 570
Rep:
|
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.
|
|
|
12-28-2013, 10:35 PM
|
#2
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
|
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.
|
12-28-2013, 10:44 PM
|
#3
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
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.
|
12-30-2013, 12:29 PM
|
#4
|
Member
Registered: Apr 2011
Distribution: slackware64-current
Posts: 570
Original Poster
Rep:
|
Quote:
Originally Posted by Drakeo
|
Interesting
I'll look into mkinitrd.
Although, why exactly can't a make a ramdisk with the "huge" kernel?
|
|
|
12-30-2013, 12:37 PM
|
#5
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
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.
|
|
|
12-30-2013, 03:03 PM
|
#6
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
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.
|
|
|
12-31-2013, 11:57 AM
|
#7
|
Member
Registered: Apr 2011
Distribution: slackware64-current
Posts: 570
Original Poster
Rep:
|
Quote:
Originally Posted by jefro
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
IBM page is more of a topic for pxe boot.
|
What's a pxe boot?
thanks
|
|
|
01-02-2014, 07:58 AM
|
#8
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by Geremia
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.
PXE is the standard method for booting over the network.
|
|
|
All times are GMT -5. The time now is 02:21 AM.
|
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
|
|