Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
boot failure: "- Restore state"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
unhandyandy
n00b
n00b


Joined: 21 Jul 2011
Posts: 24
Location: Bloomington IN

PostPosted: Fri Aug 26, 2011 4:40 pm    Post subject: boot failure: "- Restore state" Reply with quote

I've been running gentoo kernel 3.6.39-r4 happily for weeks. I had updated via "emerge -uND world" several times with no problem.

Then I
1) ran "emerge -uD world" (don't know if uND versus uD could matter here);
2) forgot to run revdep-rebuild (anything else I should do habitually after updating world?);
3) exited openbox (my desktop environment);
4) noticed the fonts were screwy (all sorts of bizarre characters)
5) tried to type in "sudo shutdown -h now" and I think I succeeded;
6) but the shutdown seemed to fail, not sure why since the messages were illegible;
7) pressed and held the power button till the machine died;
8.) on powering up again I get into grub and start the boot OK;
9) but after a few seconds the machine starts printing "- Restore state" continually 8O;
10) other messages occasionally flash by in the background but too fast to read;
11) I boot from the liveDVD and chroot into my hard drive;
12) I run revdep-rebuild and it reinstalls cairo;
13) I also run grub-install as suggested by someone on #gentoo;
14) same problem when I reboot;
15) back in liveDVD/chroot and I have absolutely no idea what to do next.

Googling "boot failure "restore state" turns up nothing useful.

On #gentoo someone else suggesting a hibernation/pm issue but this is a desktop machine, not a laptop, and I don't think I've pm is even active.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9891
Location: almost Mile High in the USA

PostPosted: Sat Aug 27, 2011 12:01 am    Post subject: Reply with quote

Need more information, yeah at first I'm thinking you have suspend/hibernate/resume working on a desktop (I was elated when I got suspend/hibernate/resume working on my desktop, it definitely speeds up boot time on my really slow BIOS!) and the hibernate partition is corrupted.

Definitely should use -N when doing an update. I got bitten a few times when I didn't do this, but I think Portage will flag issues for you now, thanks Gentoo Devs :)

Key thing is how much of the boot process has it gone through, sounds like it probably got through kernel load, did init start? Did you see the OpenRC/Gentoo logo tag? Did it get past detecting your hard drives (though it's really fast for proper machines and kernels, should still be able to quickly see that since it does pause a second or so before continuing).

Did you update the kernel too or just packages? Updated your config files when updating to baselayout-2? When was the last time you emerged update world (just to get a guess of what packages got pulled in...)

You could also chroot to your harddisk and try to go ahead and revdep-rebuild to see if anything comes up, it's worth a shot if you can't tell what the error message is when trying to do a normal boot.

I'm also starting to get a bit leary of some really weird issues about Gentoo, and they turned out to be hardware issues... hope that's not the case here...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
unhandyandy
n00b
n00b


Joined: 21 Jul 2011
Posts: 24
Location: Bloomington IN

PostPosted: Sat Aug 27, 2011 2:24 am    Post subject: Reply with quote

eccerr0r wrote:
Key thing is how much of the boot process has it gone through, sounds like it probably got through kernel load, did init start?


How do I tell? The flow of boot messages starts.

Quote:

Did you see the OpenRC/Gentoo logo tag?


Don't think so, but i'm not sure I'd recognize it.

Quote:

Did it get past detecting your hard drives (though it's really fast for proper machines and kernels, should still be able to quickly see that since it does pause a second or so before continuing).


Don't think so, there were no real pauses. Just a hiccup at "registering tcp modules", then I'm able to see a string of "usb" messages immediately before the "- Restore state" messages start.

Quote:

Did you update the kernel too or just packages?


Just packages.

Quote:

Updated your config files when updating to baselayout-2?


Oh man, I'm so sorry I installed gentoo, I'm just not geeky enough. What's baselayout-2?

I always run dispatch-config when requested after emerge. I ran it this time also, the only config file that came up was sudoers.

Quote:

When was the last time you emerged update world (just to get a guess of what packages got pulled in...)


Last week. I can tell you exactly what was pulled in - qlop works in the chrooted liveDVD.

libmowgli
editor-wrapper
cronbase
a bunch of emul-linux-x86 stuff
yacc
binutils
busybox
boost and boost-build
vixie-cron
man-pages
sudo
audacious and its plugins

Quote:

You could also chroot to your harddisk and try to go ahead and revdep-rebuild to see if anything comes up, it's worth a shot if you can't tell what the error message is when trying to do a normal boot.


I did that - it reinstalled cairo.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9891
Location: almost Mile High in the USA

PostPosted: Sat Aug 27, 2011 3:04 am    Post subject: Reply with quote

OK ruling out kernel, your kernel probably loaded just fine but not sure how far it got after that. You could try hitting ctrl-s or scroll lock to see if it will stop the spew enough so you can see what's printing.

Ruling out: upgrade from baselayout-1 since you say it's a new install.

Is it ALSA that's trying to restore state perhaps? hmm...can't think of much that saves/restores state between boots...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
unhandyandy
n00b
n00b


Joined: 21 Jul 2011
Posts: 24
Location: Bloomington IN

PostPosted: Sat Aug 27, 2011 4:10 am    Post subject: Reply with quote

eccerr0r wrote:

Is it ALSA that's trying to restore state perhaps? hmm...can't think of much that saves/restores state between boots...


:D That's it!!

A few weeks ago I tampered with /etc/conf.d/alsasound because alsa wasn't retaining settings between sessions. I stupidly deleted the "#" in the line

Code:
# yes - Restore state


and that's what was causing the trouble.

You're a genius. Thanks!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9891
Location: almost Mile High in the USA

PostPosted: Sat Aug 27, 2011 8:24 am    Post subject: Reply with quote

That got a chuckle out of me :) I really had to say that was an interesting stumper...

Great that you got it working again, and yes (intended as a pun) that would have caused the machine to pretty much get stuck on boot :)
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2202

PostPosted: Sat Aug 27, 2011 9:30 am    Post subject: Re: boot failure: "- Restore state" Reply with quote

unhandyandy wrote:
...
2) forgot to run revdep-rebuild (anything else I should do habitually after updating world?);
...

One of etc-update/dispatch-conf/etc-proposals?
_________________
Greybeard
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9891
Location: almost Mile High in the USA

PostPosted: Sat Aug 27, 2011 10:29 pm    Post subject: Re: boot failure: "- Restore state" Reply with quote

Goverp wrote:
unhandyandy wrote:
...
2) forgot to run revdep-rebuild (anything else I should do habitually after updating world?);
...

One of etc-update/dispatch-conf/etc-proposals?

yes that should be done too.
revdep-rebuild handles packages that got replaced but old packages were hard coded to the replaced packages.
etc-update/dispatch-conf/etc-proposals deals with config files that the installed packages inserted, which may be needed as old configs may no longer apply...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum