img_18203 crw_9439.jpg img_18925 img_18311 crw_9876 img_17142 img_1651 img_16930 img_14864 D1278-026 img_16443 img_14116 img_14469 img_15794 crw_9459.jpg green bubbles D1278-015 crw_10148 IMG_5697 img_1373

@antonpiatek on twitter

Posting tweet...

Powered by Twitter Tools

Error reading drive c:\

So about a week ago I was deleting some files from my USB key, and the delete failed. So I tried the command line, then with sudo on the command line. I was surprised to see a message like “UID 1000 does not exist in password file”, so I opened a new shell only to be told by my computer that I don’t have a username.

Switching to a pure console I found I couldn’t log in with root, and after rebooting I found that /etc/passwd no longer existed.

At this point I was wondering if I had any data left at all. I figured that either a)my disk has died, or b)my OS decided to scramble the file system. I was sadly hoping that it was a disk failure, as that is just bad luck with hardware…
After a thorough disk scan with the manufacturers disk tools I realised that my system must have done the damage to itself – oh dear!

I am not reinstalling my Debian box from scratch (thankfully my home dir mount seems to be fine) in a new LVM logical volume. I was suprised that had to mark the partition as a LVM physical volume, and write the partition table to the disk before the installer would let me choose LVM volumes to use as filesystems, but thankfully it worked fine.

It will still be a while before my system is back to its usual state, but at least a fsck check of my home parition came up perfectly clean. The old root parition however looks a mess. /etc/ looks rather sparse, which is not good.
I am still unsure exactly how this sort of thing can happen – anyone want to pose a theory?

Related posts

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">