Please support VectorLinux!

Author Topic: Directory /dev Changes  (Read 1464 times)

Pita

  • Vectorian
  • ****
  • Posts: 1323
Directory /dev Changes
« on: August 15, 2011, 10:42:34 pm »
This happened now the second time while in VL7 that on a reboot the files in
directory /dev have changed. /dev/sdb* on which my second hard drive is based
including VL7 distro no longer exist instead it is now /dev/sdc*.
Change all the settings accordingly in fstab and lilo.conf and I am back in business
untill for whatever reason /dev/sdb* has come back and /dev/sdc* is gone. Back
to changing the settings.

BIG question how and why will that happen that /dev files change?

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4072
Re: Directory /dev Changes
« Reply #1 on: August 16, 2011, 04:06:46 am »
I've often run into that with SATA drives. They "move around" with configuration changes, like if you have a USB stick plugged in on boot or not. Or if one drive fails, the other ones move up to fill the gap.

Workaround is to use disk uuid. To find drives and their associated uuid's, run:
Code: [Select]
ls -al /dev/disk/by-uuid
Then you replace the disk identifier by the uuid in the boot loader configuration, replace
root = /dev/sda1
with something like
root = "UUID=/dev/disk/by-uuid/18843936-00f9-4df0-a373-000d05a5dd44"

Only done this with GRUB, but looks like LILO should do it too.

Pita

  • Vectorian
  • ****
  • Posts: 1323
Re: Directory /dev Changes
« Reply #2 on: August 16, 2011, 07:42:11 pm »
Thanks I will try this. So, I have my swap on the second HD. It's never being
used anyhow therefore no problem I think.

I am still on old IDE drives, MoBo has no SATA connection. I guess this
happening is with the newer UDEV programs.

On booting this morning /dev/sdb* were all back.  ???
Back to changing. :)