udev randomly loses?

I don’t know if this is entirely udev’s fault but the backups to the new 2T external USB hard drive had been failing the last few days.  So I went to check it out today.  I found out that I had no /dev/sdc1 device.  Ooookay.  But I did have a /dev/sdc device so I ran fdisk /dev/sdc and it printed the normal single whole-disk partition with proper 0x83 partition type.  So I exited and created a device node manually using mknod.  But ioctl() refused to read the device telling me it was a bad address.  WTF??  So I went into fdisk again and this time rewrote the partition table without altering it.  Then fdisk called ioctl() for me to update the kernel’s device table and after that the fsck and backups worked.

In retrospect I don’t think it was udev’s fault at all but I don’t know why the kernel would suddenly just *lose* a disk slice.  That doesn’t make much sense to me.


  1. #1 by Andrew D. on January 22, 2011 - 10:23 PM

    Was the /dev/disk/by-uuid/ location still there? I rely on that a lot more than /dev/sd*.

  2. #2 by Joshua on January 23, 2011 - 6:44 AM

    You know, I never thought to look it up by uuid. That may have shed more light on the situation. I’ll keep it in mind for next time. Thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: