UsingUUID
⇤ ← Revision 1 as of 2007-06-08 19:46:04
1137
Comment: details and howtos on UUID usage
|
1254
add vol_id example
|
Deletions are marked like this. | Additions are marked like this. |
Line 5: | Line 5: |
UUIDs can be determined using the {{{vol_id}}} command. For example: {{{ sudo /sbin/vol_id -u /dev/sda1 }}} |
Since Edgy, Ubuntu requires the use of UUID or LABEL (for filesystems including swap), or udev-created symlinks (for removable media like CDROMs and USB drives). Directly using /dev/hd* or /dev/sd* is no longer supported (since these device assignments can change from boot to boot):
all filesystems should be specified by UUID= or LABEL=
all physical devices should be specified by a symlink (e.g. /dev/cdrom, /dev/disk/by-id/..., etc.)
UUIDs can be determined using the vol_id command. For example:
sudo /sbin/vol_id -u /dev/sda1
The files for which this is most critical are:
/boot/grub/menu.lst
/etc/fstab
/etc/initramfs-tools/conf.d/resume
To perform these renamings (which should have already happened during the Dapper to Edgy upgrade) please use:
/boot/grub/menu.lst:
sudo /usr/sbin/update-grub
/etc/fstab:
sudo rm -f /etc/fstab.pre-uuid sudo /var/lib/dpkg/info/volumeid.postinst configure
/etc/initramfs-tools/conf.d/resume:
Verify that RESUME= matches your swap line in /etc/fstab
After any adjustment, run sudo update-initramfs -u
UsingUUID (last edited 2008-08-06 16:59:35 by localhost)