Re: [oS-EN] Zero bytes /etc/hosts

Masaru Nomiya <[email protected]> Sat, 01 Aug 2026 20:44:03 +0900
Newsgroups gmane.linux.suse.general
Message-ID <[email protected]>
Hello,

In the Message; 

  Subject    : [oS-EN] Zero bytes /etc/hosts
  Message-ID : <[email protected]>
  Date & Time: Sat, 1 Aug 2026 12:48:09 +0200

[CER] == "Carlos E. R. via openSUSE Users" <[email protected]> has written:

CER>  Hi,

CER>  Bumpy morning.

CER>  Power on my laptop, restore from hibernation, it locks with black
CER>  display. Happens too much recently.

CER>  Reboot

CER>  postfix fails.

CER>  localhost fails to resolve.

CER>  /etc/hosts is gone, has zero bytes.

CER>  I try to mount the backup disk - thunar refuses.

CER>  Reboot to previous kernel. Problem persists. Manage to mount
CER>  backup manually, restore /etc/hosts.

CER>  Normality.

CER>  What could have zeroed /etc/hosts? Dated this morning boot time.

I think the system's self-protection mechanism kicked in because the
file system became read-only.

You should be able to determine the cause of the read-only status by
checking the kernel error log (# desag | tail 50).
You should also run a disk health check using 'smartctl'.

However, since you've already performed a recovery, the only thing you
can do now is run a health check on the hard drive.

You should be careful to prevent this from happening again.

Best Regards & Good Night.

--
┏━━┓彡     Masaru Nomiya                   mail-to: nomiya @ ab.auone-net.jp
┃\/彡
┗━━┛       "There is another troubling paradox behind A.I. founders'
	       messaging: If the technology is as formidable as they claim,
	       then they could be leading us toward existential disaster;
	       if the technology proves less transformative, and thus less
	       valuable than the hype suggests, then they are merely setting
	       us up for global economic disaster. "

            -- "A.I. Has a Message Problem of Its Own Making" THE NEW YORKER --