How to make a UUID for a new hard drive

Rashkae ubuntu at tigershaunt.com
Mon Apr 23 02:23:35 UTC 2007


Craig Hagerman wrote:

> tune2fs -l /dev/sdb1
> tune2fs 1.40-WIP (14-Nov-2006)
> Filesystem volume name:   <none>
> Last mounted on:          <not available>
> Filesystem UUID:          <none>
> Filesystem magic number:  0xEF53
> Filesystem revision #:    1 (dynamic)
> Filesystem features:      has_journal needs_recovery
> Default mount options:    (none)
> Filesystem state:         clean
> Errors behavior:          Continue
> Filesystem OS type:       Linux
> **
> 
> So this disc apparently has no UUID.
> 
> Yet another way to find out what a UUID is:
> 
> *ls -l /dev/disk/by-uuid
> 
> *I know UUID has benifits over the previous fstab system, but it is sure
> frustrating to set up and use. How do I make a new UUID for a new hard
> drive?
> 

How did you create that filesystem in the first place?  Normally, the 
UUID would be randomly created when you create the file system, but 
according to tune2fs, this one has no volume UUID, was never mounted, 
but the journal needs recovery?

If you have no data on this partition, maybe it would be best to just 
re-create the filesystem





More information about the ubuntu-users mailing list