On Fri, Feb 11, 2011 at 06:41:39AM -0600, Charlie wrote: > I have an i386 machine that has been running lenny. Something > went wrong during a recent upgrade, and the machine now does not > boot, except in single-user mode. > > I think I need to update the device names, but do not know > what is involved in doing this. Is there a link with information > for near-novices? I'm not aware of a guide, but if you do a quick ls -l /dev/disk/by-uuid you can find the UUID associated with all your filesystems. For example: lrwxrwxrwx 1 root root 10 Feb 11 08:32 0C94B42F94B41BE0 -> ../../sdb1 lrwxrwxrwx 1 root root 10 Feb 11 08:32 1b23f104-df48-4f8e-9003-72da69e6d53b -> ../../dm-8 lrwxrwxrwx 1 root root 10 Feb 11 08:32 2020DF8920DE64F6 -> ../../sda1 lrwxrwxrwx 1 root root 10 Feb 11 08:32 e0acf2fb-def0-40c1-8bc3-9faee7fc8a73 -> ../../sda2 You can then replace the device name with the UUID in your /etc/fstab: UUID=e0acf2fb-def0-40c1-8bc3-9faee7fc8a73 /boot ext2 nodev 0 2 In this examples, you can see that /dev/sda2 is my /boot (the UUID matches in the listing and the fstab). So it should just be a case of finding the UUID and then replacing the existing device name with UUID=uuid in /etc/fstab. If your root filesystem is failing to mount, you might also need to pass a UUID as the root filesystem on the kernel command line; note that normally GRUB takes care of all of this for you. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
Attachment:
signature.asc
Description: Digital signature