Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
poweroff corrupted disk
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
farmer.ro
Apprentice
Apprentice


Joined: 20 Aug 2016
Posts: 179

PostPosted: Mon Oct 31, 2016 5:56 am    Post subject: poweroff corrupted disk Reply with quote

yesterday my entire neighborhood had a power shut down, resulting in my Gentoo box having a instant power loss.

i had a corrupted disk before, and now i am scared that this power off might have broken my Gentoo system, but how can i know for sure nothing is broken?
Back to top
View user's profile Send private message
snkmoorthy
Guru
Guru


Joined: 19 Nov 2002
Posts: 376

PostPosted: Mon Oct 31, 2016 6:21 am    Post subject: Reply with quote

Boot with https://www.system-rescue-cd.org/SystemRescueCd_Homepage and check.
Back to top
View user's profile Send private message
farmer.ro
Apprentice
Apprentice


Joined: 20 Aug 2016
Posts: 179

PostPosted: Mon Oct 31, 2016 6:34 am    Post subject: Reply with quote

how long would that take?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43400
Location: 56N 3W

PostPosted: Mon Oct 31, 2016 9:33 am    Post subject: Reply with quote

farmer.ro,

You can't check.
All the filesystem checking tools do is verify that the filesystem is self consistent. They say nothing about user data.

For example, if a data block in the middle of a video was altered it would not be detected.
You need to run an application like tripwire with maintained off system checksums to detect changes in user data.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
farmer.ro
Apprentice
Apprentice


Joined: 20 Aug 2016
Posts: 179

PostPosted: Mon Oct 31, 2016 10:06 am    Post subject: Reply with quote

after having the sudden power loss from last night resulting my Gentoo Box been shutdown, what should i do?

how can i make sure that the next time i have a build failure or any other form of failure on my system is not caused by a possible corrupted file system?

do i need to dd my disk and start building Gentoo from scratch again? or can i just continue using my computer?
Back to top
View user's profile Send private message
Akkara
Administrator
Administrator


Joined: 28 Mar 2006
Posts: 6702
Location: &akkara

PostPosted: Mon Oct 31, 2016 10:14 am    Post subject: Reply with quote

Usually the only things that would get corrupted are files that are being written to, or that have been recently written if the buffers haven't been flushed completely out yet. "Completely" means not only to the disk, but the disk itself might be buffering things up (especially a SSD) and that needs to finish too.

Rebuilding it all is one way to make sure it's all good. You'll either succeed, in which case if there had been corruption it will have been quietly fixed. An error in a non-build-essential package can be paved over that way. Or it will fail, if important packages like gcc are corrupt, or if your distfiles are corrupt (in which case removing and re-fetching will help). Odds are they aren't, unless you just happened to be emerging that as the power failed (and more than emerge - it had to be installing at that moment, if not at worst you'll get a corrupted sandbox).

This will ensure the system is good. There's no way of ensuring your own data, except by checking against backups; or having a file of known checksums as Neddy suggested; or - possibly - using a RAID, but a RAID can still have the problem that data in memory got corrupted first.
_________________
Many think that Dilbert is a comic. Unfortunately it is a documentary.
Back to top
View user's profile Send private message
farmer.ro
Apprentice
Apprentice


Joined: 20 Aug 2016
Posts: 179

PostPosted: Mon Oct 31, 2016 10:42 am    Post subject: Reply with quote

i had open ssl handshake error this morning: https://forums.gentoo.org/viewtopic-t-1053889.html

portage complained about some dist files for missing or something, but i am not sure if it is because of the power loss.

i had a corrupted hard disk before where portage itself was broken and mods on the Gentoo confirmed it was because of a corrupted hard disk.

all i would like to know, can i continue using my computer, or do i need to rebuild Gentoo from scratch?

the next time i get a build failure or any other error i might not be able to fix it due to a possible corrupted disk, and have to rebuild anyway.
Back to top
View user's profile Send private message
C5ace
Apprentice
Apprentice


Joined: 23 Dec 2013
Posts: 282
Location: Brisbane, Australia

PostPosted: Tue Nov 01, 2016 10:20 am    Post subject: Reply with quote

I solved my power failure ans lightning strike problems by investing some money in a online UPS to protect my desktop, server, router and phone system.
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1532
Location: KUUSANKOSKI, Finland

PostPosted: Tue Nov 01, 2016 10:24 am    Post subject: Reply with quote

C5ace wrote:
I solved my power failure ans lightning strike problems by investing some money in a online UPS to protect my desktop, server, router and phone system.
Yeah. The word "online" is the key.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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