Questions tagged [uuid]
55 questions
185
votes
14 answers
How to create a UUID in bash?
In Java it is possible to create a random UUID:
UUID uuid = UUID.randomUUID();
How to do this in Bash?
raoulsson
- 4,633
- 10
- 32
- 29
16
votes
4 answers
is it possible to simultaneously mount 2 LVM volumes that are exact copies of each other (same UUIDs)?
I have cloned (using dd) the hard drive in a live system onto several multiple backup hard drives. The root partition in the live system is a LVM volume. The backup copies are intended to be drop-in replacements for the original and this means they…
laramichaels
- 263
- 1
- 2
- 6
14
votes
7 answers
How to create a randomly keyed, encrypted swap partition, referring to it "by-uuid", on Debian?
It is sensible that if you have any sort of block device encryption implemented on your GNU/Linux system, to encrypt your swap partition too, as any decrypted data may be written in cleartext at any time to the swap.
Looking at the debian man page…
Geeb
- 241
- 1
- 2
- 5
10
votes
2 answers
Where does Ubuntu store partition UUIDs on disk?
Exactly what part of the disk is a UUID stored on? MBR? Somewhere within the partition? Is it a calculated value, or randomly generated and recorded?
jldugger
- 14,122
- 19
- 73
- 129
9
votes
2 answers
Change the UUID of a VHD
How can I change the UUID of a VHD-file?
My problem is that VirtualBox won't accept the VHD-file if it has already been added. But I am moving VHD disks between work/home and cloning them (and keeping them as VHD, not VDI) "at random".
The…
Tedd Hansen
- 654
- 4
- 8
- 17
7
votes
2 answers
Is there a way to find out what cluster or vcenter an ESX server is on?
I need to be able to identify which cluster or vCenter instance some ESX servers are part of, but need to get this information directly from the ESX server itself. Is this information available in the vSphere API on the host system?
Background:
I…
Dave Kirby
- 171
- 3
7
votes
3 answers
LVM: regenerate a UUID?
I have some virtual machines which were clones of the same original disk image, which contained some LVM volumes. When I clone these, I end up with multiple LVM volumes (albeit on different hosts) which have the same 'unique' ID. Is there any way…
kdt
- 1,360
- 3
- 22
- 34
7
votes
4 answers
How to get the mount point of flash drive by using uuid?
I am beginner in ubuntu linux and i need to write simple bash script, that can identify necessary flash drive(which contains only one vfat partition) using uuid of this partition, and get the mount point of this flash drive.The /etc/fstab file…
teddypickerfromul
- 71
- 1
- 3
6
votes
3 answers
Using UUIDs for passwords
Does anyone have an opinion on using UUIDs as passwords? This is intended for accounts created for external users, such as customer access to private SFTP folders. Or are people using public key instead? These users don't have a shell and are…
user1804
6
votes
1 answer
How to reference an NFS share by UUID in the client's /etc/fstab
I have the following NFS export on my server, with fsid set to a newly generated UUID.
/etc/exports:
/mnt/data client(ro,fsid=b07f5af6-6b10-11e3-b4c1-00248115724d)
I would then run exportfs -rav which returns no errors, but I don't know how to…
v25
- 748
- 1
- 6
- 13
6
votes
3 answers
is there any advantage mounting an LV by UUID instead of by path?
I know I can specify mounts in fstab by either putting their path (like /dev/sda1 or /dev/mapper/myvg-logicalVolume1) or by fs label (LABEL=root) or by UUID (UUID=1234-5678-...).
I see a clear advantage in terms of reliability using the UUID for…
Carlos Campderrós
- 763
- 2
- 6
- 17
5
votes
1 answer
Refresh uuid of physical device
I'm trying to clone a LUN on a server and present it to the same server and am running into UUID oddities. I don't create partitions on the LUN, just create a PV and then LVM on top of that so I can grow it online as needed. The cloned LUN has the…
darkside
- 51
- 4
5
votes
1 answer
Will UUID be the same if a disk moved from one machine to another?
While in Linux every disk got a UUID.
I just wondering will the UUID be the same if I moved the same disk from one Linux box to another?
Is it the same UUID in different machines with the same disk?
Or for a disk the UUID will change with attached…
Sunry
- 209
- 2
- 10
5
votes
2 answers
Repurposed disk - Linux blkid command returns incorrect information
I'm working with an SSD drive removed from a VMware ESXi installation. I'm trying to reuse the disk in an existing Linux installation (CentOS 6.2). The drive sits behind an HP Smart Array P410 RAID controller and is configured as a separate logical…
ewwhite
- 194,921
- 91
- 434
- 799
4
votes
2 answers
Change Instance UUID for VM in ESXi
Background
I'm running ESXi 6.0.0 in free mode. I created one VM and then copied its files to another folder in the datastore to create the next machine (almost like a template). I wound up with two working VM's that have been doing just fine in…
trademark
- 188
- 1
- 1
- 7