* Helmut Jarausch <jarau...@igpm.rwth-aachen.de> [121206 09:27]: > Hi, > > on one of several machines I have a problem with initramfs. > > The machine has a single SATA drive. When the kernel boots it shows > that it is called /dev/sda,.... > Now, within the init script of my initramfs it tries to mount /dev/sda2 > as root but fails. > Since the initramfs spawns a shell (busybox) I can see the device files > for /dev/sda? > but fdisk /dev/sda fails. > As it turns out, the harddisk is now named /dev/sdb with /dev/sdb? > partition names. [..]
I can't tell you why it changed but after my device names got messed around with (after an upgrade) and the next boot mounted /home on /tmp and an initscript blew away a bunch of home directories before I caught it I switched to mounting via UUID. Once you find the UUID to use it's easy and alleviates lots of problems in the future. Todd