Author Topic: {Solved} Re-create initrd file  (Read 775 times)

Offline timeth

  • Hero Member
  • *****
  • Posts: 829
  • G'day mate-Link for big GIF^ http://db.tt/SUIL4CtK
{Solved} Re-create initrd file
« on: May 04, 2011, 01:03:16 AM »
Hi folks,

I think I've seen this before somewhere on the forum but cannot find it now by searching.

Could someone please give me instructions on how to re-create the initrd file?  
I'm creating/installing/testing/editing Plymouth themes and I've read that each time I install a new one, initrd doubles in size. Simply installing a theme at this point is now taking 9-10min! I'm hoping re-creating the initrd file will cut the install time back down to normal (<30secs?)

Thanks  :]  
« Last Edit: May 04, 2011, 04:02:43 AM by timeth »
宜しくお願いします > Yoroshiku Onegaishimasu > I humbly and respectfully ask for your kindness.  |   My graphics blog

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Re-create initrd file
« Reply #1 on: May 04, 2011, 01:42:52 AM »
Are you looking for # plymouth-set-default-theme <theme_name> --rebuild-initrd ?
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Re-create initrd file
« Reply #2 on: May 04, 2011, 01:48:48 AM »
Use the mkinitrd command:
Quote
mkinitrd -f /boot/initrd-kernel-pclos(1).bfs.img kernel-pclos(1).bfs

Replace kernel-pclos(1).bfs with the kernel you are using.

edit: Didn't see Archie's post. His command will be easier to use. :)

Offline timeth

  • Hero Member
  • *****
  • Posts: 829
  • G'day mate-Link for big GIF^ http://db.tt/SUIL4CtK
Re: Re-create initrd file
« Reply #3 on: May 04, 2011, 04:02:12 AM »
Thank you fellows, Archie and Neal  :)

I checked my /boot folder before running the command Archie suggested, and I had 3 old kernels in there that I don't use anymore and each one has it's own initrd file. Their sizes were ridiculous!! 100MB, 260MB! No wonder the last plymouth theme install I did took 11min! ( I timed it  :D )

Anyway, I cleaned out the old kernels, and ran the command and now the initrd file is 3.5MB.

BUT, after ONE install of a new plymouth theme (only took about 10sec), it's up to 5MB. Definitely something to keep an eye on.

 

宜しくお願いします > Yoroshiku Onegaishimasu > I humbly and respectfully ask for your kindness.  |   My graphics blog

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: {Solved} Re-create initrd file
« Reply #4 on: May 04, 2011, 04:10:32 AM »
Yes, it is something to be watched. I've taken to keeping no more than 2 kernels, except for the first few days after installing a new one. This gives me a few days with 3 kernels to be sure the newest works with my set up before I uninstall an older kernel.