You are not logged in.

#1 2012-04-08 01:14:19

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Removing e4rat

Hi.  I have e4rat installed.  It does seem to shave some boot time, but I can no longer "Hibernate" my system (seemingly due to e4rat).  Normally I'd just remove packages with pacman -Rs package-name, but installation of e4rat required some modification of grub linux line and an  "e4rat-realloc" command.

So I'm thinking I just do
pacman -Rs e4rat

Then restore my grub linux line to how it was before.  The only thing I'm not sure of is how to undo the e4rat-realloc, or if it is even necessary.

Or even if I could just disable e4rat without removing it my JUST removing the option from my grub linux line?

Thanks for any advice.

Last edited by Pacopag (2012-04-08 01:31:34)

Offline

#2 2012-04-08 01:17:42

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: Removing e4rat

Right, remove the kernel option and the package itself.

Offline

#3 2012-04-08 01:18:25

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: Removing e4rat

Righto.  Thanks.

Offline

#4 2012-04-08 01:19:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,557
Website

Re: Removing e4rat

Yup, just remove it from your kernel line in grub/menu.lst

The realloc procedure just moved some files to more "convenient" places on the drive.  There is a chance that even in the absence of the preloading this relocation may have a benefit in itself.  And the reallocation wouldn't interfere with hibernation or anything else as it is just moving files around on the disk.

EDIT: too slow.

Last edited by Trilby (2012-04-08 01:19:33)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-04-08 01:31:21

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: Removing e4rat

Trilby wrote:

Yup, just remove it from your kernel line in grub/menu.lst

The realloc procedure just moved some files to more "convenient" places on the drive.  There is a chance that even in the absence of the preloading this relocation may have a benefit in itself.  And the reallocation wouldn't interfere with hibernation or anything else as it is just moving files around on the disk.

EDIT: too slow.

Thanks for that.  Not too slow.  Enlightening on the realloc procedure.  But I am noticing a significantly longer boot time without e4rat.  Maybe  it's like when music CDs first came out (if you're old enough to remember that), and you didn't really notice much of a difference in sound quality when you first started listening to CDs.  That is, until you went BACK to listening to music on cassette tapes, at which time you really noticed the difference.  Does this make sense to anyone else?

But seriously.  Since I'm such a loser, I frequently time how long my system takes to boot up.  I gained about 2 seconds with e4rat (yay for me!), but now I seem to have lost about 10 seconds without it.  So it's not the CD <--> tape thing.  What gives?

Edit:  For the record, I haven't introduced any new daemons or anything like that.  Except maybe preload.  I'll check on that.

Last edited by Pacopag (2012-04-08 01:33:37)

Offline

#6 2012-04-08 01:36:47

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: Removing e4rat

Indeed.  preload IS the culprit, but it's worth it.  Thanks to you both for the info.  Cheers.  And happy Easter if you celebrate it.  If not, bake a turkey anyway.  They're cheap this time of year, and delicious with gravy!

Last edited by Pacopag (2012-04-08 01:39:43)

Offline

#7 2012-04-08 01:49:37

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: Removing e4rat

Hey, you what would be sweet, is if you could automatically switch the grub linux e4rat-preload option on and off depending on whether the system was hibernated or not.  How hard would this be so set up?  Any shell bangers feel like showing off their skills? 

If someone pointed me to the sequence triggered by the hibernate and shutdown signals, I might be able to write the script myself.  Not sure though.  I never did much shell programming (I'm assuming that's what this would entail.  Please stop me now if I'm way off track and about to break my system).

Offline

#8 2012-04-08 01:55:24

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: Removing e4rat

Ok.  So it seems that /etc/rc.local.shutdown would be the place to put the script.  Not sure how to check if signal was "Shutdown" or "Hibernate".  If I know that, I could just modify /boot/grub/menu.lst accordingly.

Offline

#9 2012-04-08 02:03:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,557
Website

Re: Removing e4rat

I don't use hibernate, so I can't be a great help here - but I suspect you'd have better luck looking around at resume hooks rather than trying to modify menu.lst.

While it would be easy (but a little risky) to have a script modify menu.lst I'm skeptical as to whether that change would take effect.  I'm not sure that resume from hibernate uses grub.

Last edited by Trilby (2012-04-08 02:04:52)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2012-04-08 02:14:55

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: Removing e4rat

Actually.  Now I have e4rat removed and preload daemon removed from rc.conf, but I still can't hibernate.  It goes too fast for me to catch it all, but at startup after hibernate, at one point during boot it says

ArchLx: recovering journal

ArchLx: clearing orphaned inode [.......]

I've been reading some stuff about pm-utils and hibernating.  I don't remember ever doing anything with this, but I'm quite sure I could hibernate no problem before I started messing with e4rat and preload.  I have pm-utils installed, but it must've come as a dependency for another package, because I don't remember installing that one by hand. I'm using xfce it that has anything to do with it.

Last edited by Pacopag (2012-04-08 02:18:36)

Offline

#11 2012-05-23 18:58:58

pntruongan
Member
Registered: 2011-01-31
Posts: 63

Re: Removing e4rat

Sorry to bring up old topic. But just for the clarification I recently installed and used e4rat. It cut off my login time a from 31 seconds to 6 seconds, which is a lot and I still can hibernate and resume.  Perhaps you should consider update your e4rat rather than remove it.

Offline

#12 2012-05-23 19:05:11

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: Removing e4rat

Hi.  I did decide to reinstall e4rat.  Without preload daemon, my startup was fast with or without e4rat.  But with preload, which I love, e4rat certainly cuts the bootup time down significantly.

But wow, 6 seconds is pretty sweet.  Mine is around 12 seconds, which is great to me.  Did you simply follow the e4rat wiki to install and configure?  Are you using the e4rat-preload from the official repos or e4rat-preload-lite from the AUR?

Offline

#13 2012-05-24 05:21:42

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: Removing e4rat

You got a swap partition, the resume hook in your mkinitcpio.conf and defined the resume partition in grub?


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#14 2012-05-24 10:31:16

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,481

Re: Removing e4rat

If you use hibernation, where's the need to use e4rat-preload?


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB