can't boot, problem possibly hard drive

4 réponses [Dernière contribution]
chaosmonk

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/07/2017

Trisquel froze while compiling a program. Since I couldn't get the system to respond, I powered down. Upon attempting to boot, I get stuck with this message.


ata1.00: exception Emask 0x0 SAct 0x0 action 0x6 frozen
ata1.00: ST_FIRST: DRQ=1weith device error, dev_stat 0x7F
ata1.00: cmd a0/00:00:00:08:00/00:00:00:00:00:/a0 tag 0 pio 16392 in
Get event status notification 4a 01 00 00 10 00 00 00 01 00res 74/74:74:74:74:74:/00:00:00:00:00:/74 Emask 0x3 (HSM violation)
ata1.00: status { DRDY DF }
ata1.00: revalidation failed (errno=-2)

I've found a couple of threads with similar error messages in the context of not being able to boot. They were inconclusive but suggested that the hard drive is to blame. Perhaps powering down without unmounting could have screwed something up. I am able to boot into a Trisquel live USB, and access my file system from a live session, which makes me suspect that whatever might be wrong is at the OS level, as opposed to the hardware level. I don't know much about hardware though. Since I can back up my files from a live session, reinstalling Trisquel is an option if there's a chance that will help.

Thanks.

chaosmonk

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/07/2017

I reinstalled. All is well.

jxself
Hors ligne
A rejoint: 09/13/2010

This shows why you should never just force the computer to reboot, even if it's frozen.

The magic SysRq key is your friend.

https://en.wikipedia.org/wiki/Magic_SysRq_key

https://www.thegeekstuff.com/2008/12/safe-reboot-of-linux-using-magic-sysrq-key/

unRaw (take control of keyboard back from X11,
tErminate (send SIGTERM to all processes, allowing them to terminate gracefully),
kIll (send SIGILL to all processes, forcing them to terminate immediately),
Sync (flush data to disk),
Unmount (remount all filesystems read-only),
reBoot.

"Raising Elephants Is So Utterly Boring", "Reboot Even If System Utterly Broken" like Wikipedia says is a great way to remember it.

chaosmonk

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/07/2017

> The magic SysRq key is your friend.

Thanks! I wish I'd known this a long time ago...

aloniv

I am a translator!

Hors ligne
A rejoint: 01/11/2011

Rather than rebooting or shutting down I recommend killing the process with the most memory usage whenever the computer is unresponsive - something like alt+ctrl+printscreen+f should get this done.