Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
oddballOffline
Post subject: lost power during d-u  PostPosted: 16.11.2011, 11:22



Joined: 2010-09-11
Posts: 109
Location: Skåne, Sweden
Status: Offline
Did d-u on several boxes today, one of them lost power in the end of the d-u I think. Will not boot now, stops with
      Code:
grub rescue>
Can I do something to repair this?
 
 View user's profile Send private message  
Reply with quote Back to top
DonKultOffline
Post subject: RE: lost power during d-u  PostPosted: 16.11.2011, 12:55
Team Member


Joined: 2010-09-02
Posts: 482

Status: Offline
Boot from a live cd or alike (any linux system) and chroot into your system (you want to bind-mount a few things before into the chroot, like /dev and /dev/pts). Then run 'dpkg --configure -a' and after that try 'apt-get dist-upgrade' again. Maybe you have to add -f (aka --fix-broken) flag, depending on how the dpkg command worked out before (but you will notice this, apt will complain about that in that case).

After finishing the d-u this way your system should be bootable again and work as usual.

_________________
MfG. DonKult
"I never make stupid mistakes. Only very, very clever ones." ~ The Doctor
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
slhOffline
Post subject: RE: lost power during d-u  PostPosted: 16.11.2011, 13:11



Joined: 2010-08-25
Posts: 766

Status: Offline
The manual has more info about chroot based (grub-) fixing and the required virtual filesystems in particular.
 
 View user's profile Send private message  
Reply with quote Back to top
belzeOffline
Post subject: RE: lost power during d-u  PostPosted: 16.11.2011, 13:27



Joined: 2010-09-13
Posts: 100

Status: Offline
aptosid manual is the BEST resource to rescue a system using live-cd and chroot. I used it several times, and things like these make me proud to use aptosid! Thanks to manual maintainers!
 
 View user's profile Send private message  
Reply with quote Back to top
oddballOffline
Post subject: Re: RE: lost power during d-u  PostPosted: 16.11.2011, 15:39



Joined: 2010-09-11
Posts: 109
Location: Skåne, Sweden
Status: Offline
      DonKult wrote:
Boot from a live cd or alike (any linux system) and chroot into your system (you want to bind-mount a few things before into the chroot, like /dev and /dev/pts). Then run 'dpkg --configure -a' and after that try 'apt-get dist-upgrade' again. Maybe you have to add -f (aka --fix-broken) flag, depending on how the dpkg command worked out before (but you will notice this, apt will complain about that in that case).

After finishing the d-u this way your system should be bootable again and work as usual.
I did all above by following the first part of the manual about reinstalling grub, it didn't work only with completing d-u but after reinstalling grub everything is back to normal Smile

Very much thank you for the help and the good manual
 
 View user's profile Send private message  
Reply with quote Back to top
DeepDayzeOffline
Post subject: RE: Re: RE: lost power during d-u  PostPosted: 16.11.2011, 18:03



Joined: 2010-09-11
Posts: 616
Location: USA
Status: Offline
After you fixed grub you should be able to clean up apt as noted above once you boot back to your normal system. Glad you got your system back at least as losing power during d-u's (particularly when apt is installing packages) is quite irksome.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio