<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hello,<br>This morning, when i powered on my machine, it failed to boot into archlinux.<br><br>The windows partition still loaded properly.<br><br>After concluding my morning business, I dug out my arch recovery CD and loaded into the live system.  I was able to mount both my root and home partitions, i was able to establish a chroot environment (although, I hadn't upgraded any packages over the weekend so it just demonstrated that it worked).<br><br>After some investigation, I determined with fsck that my root partition has a filesystem error.  My home partition came out clean.<br><br>I'm not overly knowledgeable about the filesystem or fsck.  I went through the interactive prompts, but selected the options that effectively changed nothing.<br><br>I wrote down some of the (hopefully) relevant output:<br><br><br>>> fsck /dev/sda4<br>...<br>[ 596.198487] Buffer I/O error on device sda4, logical block 8394655<br>Error reading block 107933, (Attempt to read block from filesystem resulted in short read) while getting next inode from scan.  Ignore error<y>? y<br>fore rewrite<y>? n<br>Pass 2: checking directory structure<br>Entry 'chcpu' in /sbin (262691) has deleted/unused node 272187.  Clear<y>? n<br>...<br>[ 1199.718449] Buffer I/O error on device sda4, logical bloc 8394655<br>Error reading block 1049331, (Attempt to read block from filesystem resulted in short read) while getting next inode from scan.  Ignore error<y>? y<br>force rewrite<y>? n<br>Entry 'chcpu' in /sbin (262691) has an incorrect filetype (was 1, should be 0).<br>fix<y>? n<br>...<br>Entry 'poweroff' in /sbin (262691) has deleted/unused inode 272188 clear <y>? n<br>Entry 'poweroff' in /sbin (262691) has incorrect filetype (was 1, should be 0).<br>fix<y>? n<br>Entry 'reboot' in /sbin (262691) has deleted/unused inode 272188. clear <y>? n<br>Entry 'reboot' in /sbin (262691) has incorrect filetype (was 1, should be 0).<br>fix<y>? n<br>Entry 'eog.mo' in /usr/share/locale/sv/LC_MESSAGES (263153) has deleted/unused inode 272179. clear <y>? n<br>...<br>Error reading block 1049331, (Attempt to read block from filesystem resulted in short read) while getting next inode from scan.  Ignore error<y>? y<br>force rewrite<y>? n<br>...<br><br><br><br>and it kept going on in this manner.  Eventually I said "no" to one of the "Error reading block ..." options and aborted the remainder of the check.<br><br><br>First after the "Error reading block ..." lines when it prompts "force rewrite" what is it rewriting?  Is this to be embraced or feared?<br><br>Second, on the deleted/unused inode prompts, What is it clearing (the inode itself, or the sign pointing to the inode)?<br><br>On the entries about the incorrect filetype, I presume it's actually safe to just trust fsck on this one?  Just double-checking so I don't put my system into an unrecoverable state.<br><br>Lastly, would the proper way of invoking fsck on the live-CD be <br><br>fsck -a /dev/sda4<br><br><br>If I'm reading the manual correctly, that will autofix the "safe" options, correct?<br><br>Thanks in advance:-)                                          </div></body>
</html>