PDA

View Full Version : [ubuntu] How to get/make UUID numbers in /etc/fstab



orangep
February 26th, 2009, 10:08 PM
The most recent upgrade of Debian Linux for 64-bit cpus destroyed my system and left it unbootable, so I was finally forced to really give Ubuntu a try.
I cleared a disk drive and installed the latest stable version of
64-bit desktop Ubuntu onto it.

Installation went well. No major hassles except this:

I have multiple disk drives, and cannot list them in /etc/fstab correctly. The old style of listing them by drive names like /dev/sda1, /dev/sdb1, etc. no longer works as the various disk drives come up with different identifiers with every reboot. It's like identifier roulette.

I see that the installation routine has created a new kind of identifier for the root disk drive. All of the boot disk's partitions are
identified with labels like
"UUID=ab3e8667-10cf-4c60-af7a-38a22a0ba3ee",

So how do I get such UUID numbers for the partitions on the other
disk drives?

TIA.

Pumalite
February 26th, 2009, 10:30 PM
blkid

orangep
March 3rd, 2009, 04:48 AM
blkid

Yes, that's it. Thank you.

orangep
March 3rd, 2009, 04:54 AM
Well, one more question:
I have a secondary disk drive that also has a swap partition on it. Might as well use it. But it has no UUID number. Is there a way to create or assign one?

Pumalite
March 3rd, 2009, 10:47 AM
You meed only one /swap per computer. (the kernel finds it)

HavocXphere
March 3rd, 2009, 01:58 PM
Is there a way to create or assign one?
UUIDs are assigned during partitioning. So unless its unpartitioned space it should already have a uuid.