Questions tagged [uuid]
The uuid tag has no usage guidance.
147
questions
0
votes
0
answers
28
views
Trigger a shell script at the appearance of a UUID
I have an external backup disk with a specific UUID. I have a shell script that launches a sequence of commands that result in a backup being written to that disk. I also have automated backups that ...
4
votes
1
answer
49
views
How to mount devices with different UUID that are not present at the same time at the same mount point?
I have external USB HDDs that are used for backing up data and that rotate over months.
Only one of the disks is present at the same time.
The disks have different UUIDs (yes, it is possible to clone ...
0
votes
0
answers
252
views
cryptsetup uuid problem in initramfs while mounting btrfs
I have a BTRFS disk array, where all disks are LUKS2 encrypted. During the bootup, I unlock disks 1 by 1 using cryptsetup open.
After that, I want to mount the BTRFS array using mount /dev/mapper/one-...
0
votes
2
answers
27
views
Auto-mounting the 2nd internal HD
I'm editing the fstab file to automount my secondary HD and I would like to know how to setup the 'noatime' in the command line.
The command I have so far is:
UUID=DEVICEID /PATH ntfs-3g rw,...
0
votes
0
answers
210
views
Wrong UUID generated by grub-install in EFI?
I am putting together a new Debian system with a few peculiarities:
I am not using the standard installer, but doing it by hand using debootstrap. Reason: my underlying disks (1 SSD and 2 large hard ...
0
votes
2
answers
93
views
Stuck in initramfs after reboot
I got that error already twice while having my laptop, and I previously were able to fix it after them google search and switching to AHCI in BIOS. However, this time it seems to be another problem ...
1
vote
1
answer
76
views
The `file` command correctly identifies my LUKS device but the kernel doesn't see it
I recently created a LUKS2 device with a native --offset of 4MiB. The file command correctly identifies the device and lists its UUID, but it is neither auto-opened at boot nor visible in /dev/disk/by-...
0
votes
1
answer
84
views
How do filesystem UUID's work from kernelspace perspective (and what can happen to my Linux machine when it is not unique)?
In the end I guess that is really the question I want to find an answer for: Can I crash a Linux box if the root filesystem does not have a unique UUID? But please read on, this question is about ...
0
votes
0
answers
216
views
Failed to restart uuidd.service
I have a Lenovo Thinkpad T420 running Mint Linux 19.3. Today I tried to mintupgrade to Mint 20 but the the upgrade failed with
Setting up uuid-runtime (2.34-0.1ubuntu9.1) ...
Failed to restart uuidd....
0
votes
0
answers
39
views
Are duplicate partition UUIDs a problem on bootable CFs cards, on different devices/systems?
We have a fleet of about 100 devices that run off of linux on a bootable compact flash. Each device used a single compact flash.
For a recent update we were given a single CF drive for which we were ...
0
votes
2
answers
29
views
Identifying The Disk that the OS Parition Resides On (for a script)?
I'm trying to automatically identify which disk (not partition) the OS resides on for a certain program which will format many attached disks (so it doesn't accidently format the OS disk).
I'm ...
0
votes
0
answers
778
views
“you are in emergency mode,, After logging in type ”journalctl -xb“ti view…”
my os (pop os , ubuntu based) gets freezed due to a RAM exceed, I reboot my system and only have CLI, were I got the tittle mentioned message:
“you are in emergency mode,, After logging in type ”...
1
vote
1
answer
1k
views
“ALERT! UUID=xxx does not exist. Dropping to a shell!” Where/how can I change this xxx value ? where is it stored in grub configuration?
I have a few disks on my a server (for RAID) and a few boot partitions to test various distros. At some time I had a recent (10 buster) Debian 32 bit and a recent (10 buster) Debian 64 bits, and for ...
1
vote
2
answers
254
views
How to stop a hanging UUID start job that is not listed in /etc/fstab
On boot up the system hangs for 90 seconds for a UUID start job. This has already been answered at ask ubuntu.
The solution there involves removing the offending UUID from the /etc/fstab.
In my case, ...
0
votes
2
answers
711
views
How can I prevent disk UUID mismatch when cloning a machine?
I have built a Debian linux machine.
I have captured an 'image' of the entire hard drive in the form of a compressed tar file.
I then unpack this onto another machine, setting up grub so that it can ...
1
vote
0
answers
514
views
Gave up waiting for root file system device
Here's what it says when I first turn on my computer: BusyBox v1.30.1 (Debian 1 :1.30.1-4) built-in shell (ash) Enter 'help' for a list of built-in commands. I watched a youtube video expecting it to ...
0
votes
1
answer
143
views
Why does `mount /dev/dm-8` mount `/dev/dm-39` instead?
On a debian 10 GNU with Linux kernel system the following line does not - as expected - mount /dev/dm-8 but (imho incorreclty) /dev/dm-37:
mount /dev/dm-8 /mnt
I am puzzled really now the reason and/...
0
votes
1
answer
174
views
blkid doesn't doesn't print the device name on CentOS
I am running a container with CentOS:
docker run -it centos bash
I first check for its Label or UUID:
[root@3271c071fe0a /]# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.3.0-1032-aws root=LABEL=...
0
votes
1
answer
843
views
how to mount [bind] an external hard drive folder using UUID to another folder on a pc
in short:
on pc:
/home/user/Music:
├─music_from_disk_1
└─music_from_disk_2
on 2 HDD's in root: /music, /docs, /photos.
need to automatically mount HDD1/music to .../music_from_disk_1 and HDD2/music ...
1
vote
1
answer
1k
views
Manjaro linux error: Failed to start Remount Root and Kernel File Systems
I am using Manjaro Linux with 5.7.9-1-MANJARO kernel. The system boots, but with an error
Failed to start Remount Root and Kernel File Systems. I took a look at the Manjaro Forums as well as the ...
0
votes
2
answers
1k
views
Black arch Boot problem, UUID not found
I’ve installed black arch “from live iso” and it was installed successfully
But after reboot it stuck in black screen
starting version 245.5-2-arch
ERROR: device ‘uuid=xxxxxxxxxx‘ not found skipping ...
0
votes
1
answer
721
views
Changing the windows UUID volume with Debian
I'd like to be able to put an ID on a USB key formatted in NTFS under debian and be able to read it with Windows 7 and 10.
As the identifier must be unique, I prefer to use UUID rather than label.
I ...
0
votes
1
answer
378
views
RPI root partition lost PARTUUID and can't boot
So I cloned a RPI sd card so I could run the same system at home and at work. The sd cards were slightly different sizes so after I ran dd I had to run resize2fs and fsck. If I boot the Pi with this I ...
0
votes
3
answers
2k
views
What triggers disk's UUID to change?
On the same model of industrial PCs, I see UUID of the main SSD changed. Those 2 IPCs are restored from 2 similar but different Linux disk images. Question is as per the title. UUID of the main disk /...
-1
votes
2
answers
390
views
ZFS Recovery Mirror-0 UNAVAIL missing device
I'm new to ZFS and I screwed things up big time. I had multiple ZFS pools because I didn't realize you could have separate mirrors under the same pool. I am still rebuilding array, so one of my ...
2
votes
2
answers
182
views
Efficient way to obtain a device mountpoint from its UUID
In a script I'm working on, a variable UUID must be used in obtaining the current mountpoint a device is attached to. The solution I came up with is this one:
UUID='fc70ae3d-65e7-4437-a371-...
0
votes
2
answers
139
views
How to process wipefs command output?
My command, wipefs /dev/sdX, gives the below output:
offset type
----------------------------------------------------------------
0x111 ext4 [filesystem]
...
-1
votes
2
answers
1k
views
How do I install grub on a disk drive using a UUID?
On my Arch Linux I am trying to install GRUB as follows:
grub-install /dev/sda
Instead of /dev/sda to do with UUID.
However two points to bring up:
I cannot find a UUID for /dev/sda only for /dev/...
1
vote
1
answer
625
views
wrong partition UUID in fstab and partition showing as W95
I have Win10 / Ubuntu 18.04 dual boot, and something messed up my partitions. I did try to resize the Win10 partition in order to enlarge my Ubuntu partition, but that didn't work so I resized back ...
1
vote
2
answers
1k
views
How to correctly get the UUID of the entire disk?
As UUID's are assigned in partitioning phase (by software), there is no UUID available for entire disk.
However, /dev/disk/by-id/ contains promising information for the same purpose. We can get the "...
1
vote
1
answer
10k
views
Debian Buster - UUID Does not exist. Dropping to shell problem
I have no idea what I did but when I startup I get this message in BusyBox:
Give up waiting for root file system device. Common problems:
-Boot args (cat /proc/cmdlines)
-Check rootdelay= (did the ...
0
votes
1
answer
274
views
Changing the UUID of NTFS VeraCrypt-encrypted volumes under Linux?
(Partially related to this but the case is significantly different)
Recently I have cloned a drive and I need to use both in my system without formatting either one of them, so I need to change one ...
2
votes
1
answer
1k
views
Mount points in /etc/fstab on Debian system for an encrypted partition
I recently installed Debian 10 on my laptop and for the first time I decided to give file encryption a go.
But I've found something interesting in the /etc/fstab file, and it's that it doesn't use ...
2
votes
2
answers
94
views
Why does lvm2 use mixed case UUIDs?
I noticed that lvm2 objects use mixed case UUIDs:
~ # lvdisplay
...
15
votes
5
answers
2k
views
Why is drive/partition number still used?
Many times, especially when messing around with boot-loaders, I'll see numerical drive and partition numbers used. For instance, in my /boot/grub/grub.cfg I see set root='hd0,gpt2', my UEFI boot ...
3
votes
1
answer
407
views
"sort -nu" on uuids
anyone could explain why "sort -nu" returns only 1 unique line in example below?
$ cat /tmp/test_
1e971713-31e4-62d0-a3d1-37c0610c10e5
1e97d59f-bc32-6126-b7b1-0b52ddd35273
1e971713-31e4-62d0-a3d1-...
0
votes
1
answer
1k
views
/etc/fstab - using bash command output to get UUID?
I placed an entry in my fstab file to add a swap partition.
I used output of a bash command to get the UUID of vdb1 partition(I can't copy paste).
Like this:
UUID=$(blkid -o value -s UUID /dev/vdb1)...
7
votes
1
answer
2k
views
why do some directories have .uuid directory in a directory?
I have seen this quite a few times. In some random directories there is usually a .uuid file or directory therein. The directories are nothing special so as to speak. They are mostly random media ...
1
vote
1
answer
4k
views
Change PTTYPE and UUID of an fdisk created partition
I've got two systems. On one, I decided to try and increase the virtual disk /dev/sda. So I delete the partition using fdisk and recreate it with a larger end size but identical start location. ( ...
3
votes
1
answer
2k
views
Short and long uuids under /dev/disk/by-uuid
There are several hard disk partitions on my system (Linux josDeb 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux). It is working with:
bejo@josDeb:~$ ls -l /dev/disk/by-uuid
...
1
vote
3
answers
567
views
Why use udev rules for naming, if we could just use /dev/disk/by-uuid?
I don't understand the inclination towards using udev rules for raw devices. Example for Oracle ASM devices, it recommends using udev rules for naming raw devices, as the device order can be ...
2
votes
2
answers
317
views
How to tell without knowing the mount point that a device UUID is mounted?
System: Linux Mint 19.1 Cinnamon 64-bit, based on Ubuntu 18.04 LTS.
I would like to know if it is possible to get the following information:
Is this UUID (of a block device) mounted or not? (without ...
4
votes
3
answers
2k
views
reliable scripting way of obtaining UUID of boot partition
I want to script a somewhat automated method for editing /etc/default/grub and appending fips=1 boot=UUID=???? to GRUB_CMDLINE_LINUX=
coincidentally /etc/fstab contains UUID=12345blabla /boot xfs ...
1
vote
2
answers
47
views
Partition recovered
Partitions MBR has been destroyed accidentally by a friend, Then most partitions are unviewable which is too bad, can all the partitions be recovered? I have a text file including the original ...
17
votes
3
answers
27k
views
Create unique random numbers (UUIDs) in bash
I want to create random unique numbers (UUIDs) as the following
node.id=ffffffff-ffff-ffff-ffff-ffffffffffff
First I tried this
$ rndnum=` echo $RANDOM"-"echo $RANDOM"-"echo $RANDOM"-"echo $RANDOM"-...
1
vote
1
answer
908
views
System goes into initramfs mode
I am trying to boot my system but it goes to initramfs and nothing happens.
On using exit command it shows:
ALERT! UUID=3668c6fc-7986-490b-8642-705c4532d16a does not exist. Dropping to a shell!
On ...
0
votes
0
answers
259
views
How to make exfat appear as a disk on Computer (RedHat 6)
I have a redhat 6 on 1TB HDD and another 1TB HDD with exfat format, anyway on Computer I can find the drive where redhat installed but not the exfat drive.
I do add a line to /etc/fstab for auto ...
1
vote
3
answers
2k
views
Drive won't boot from its Grub, but will from another drive's Grub, after cloning, why?
It was a month ago, so if you ask me on details, I might still remember, but better act on information that can be given as of now. Due to the lack of time, I did not ask for help here.
I have cloned ...
7
votes
1
answer
7k
views
What are the use cases for a hard disk's WWN?
I noticed today while setting up a new system that the disk as represented by /dev/disk/by-id also had a WWN link that I was not familiar with:
My research suggests that this is a "World Wide Number" ...
4
votes
2
answers
13k
views
How do I create a zpool using uuid or truly unique identifier?
I created my first zpool the other day, assigning by drive letter, and found that when I rebooted it was degraded. Upon closer inspection, I realized that my drive letters had changed with reboot, so ...