New update suggest identifying disks by label or UUID

Archived topics about LMDE 1 and LMDE 2
Locked
marlar
Level 2
Level 2
Posts: 72
Joined: Thu Dec 10, 2009 9:30 am

New update suggest identifying disks by label or UUID

Post by marlar »

Hi,

Sorry if this has been discussed before, but I have been on vacation for 3 weeks and there are soooo many new posts !

Anyway, I am doing a system upgrade and now I am confronted with this message (loosely translated from Danish, so the exact wordings may differ):

Code: Select all

The new linux kernel has different drivers for some PATA (IDE) controllers. The names of some harddisks, CDROM or tape units may change. 

It is recommended that you identify disk units in configuration files by label or UUID instead of device name which will work in both old and new kernel versions.

If you choose to upgrade the configuraitons automatically, you must update the device IDs yourself before next restart or the system might not start.

Update disk device IDs in system the configuration

<Yes>    <No>
Ok, what am I supposed to choose now? If I read it correctly, then if I do an automatic upgrade I have to update something manually myself afterwards. And if i do a manual upgrade, what am I supposed to change?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Roken
Level 5
Level 5
Posts: 737
Joined: Fri Nov 19, 2010 4:55 pm
Location: Newport, S Wales

Re: New update suggest identifying disks by label or UUID

Post by Roken »

The obvious one that springs to mind is grub. I don't use IDE, so I haven't seen this message, but you should first check whether your grub entries are by uuid or by /dev. To check, type in a terminal:

Code: Select all

sudo more /boot/grub/grub.cfg
As you work through the file you will see your boot choices listed. If they identify disk by UUID (the giveaway is root=UUID followed by a long number, and -set followed by those same numbers) then you are good to go - no changes needed. However, if grub lists drives as /dev/hdaX (or similar) then grub is looking at exactly what the warning tells you it shouldn't be. To fix it, before the updates you could first try:

Code: Select all

sudo update-grub
Then look at grub.cfg again and see if it now lists disks by UUID. If so, then again you are good to go. If not, it looks like you will have to manually edit grub.cfg (even though you shouldn't) to use UUID rather than /dev. First you need the UUID of each disk. To get those:

Code: Select all

ls -al /dev/disk/by-uuid/*
This will list all disks (including CDRom etc). You are interested in those entries that give hda0, or sda0 etc on the second line. The first line will give the UUID of each of those disks. In grub.cfg you need to substitute each of the "root=" entries to "root=UUID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx where xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx represents the UUID of each disk.

With luck, grub.cfg will already be showing the UUIDs and so you should have no problems.
Kernel Linux Tex 5.12.14-zen1-1-zen, XFCE
Arch
Dual GTX1070 8Gb
AMD Ryzen 1800X
32Gb RAM
marlar
Level 2
Level 2
Posts: 72
Joined: Thu Dec 10, 2009 9:30 am

Re: New update suggest identifying disks by label or UUID

Post by marlar »

Hi,

Thanks for the reply!

I did the update-grub command but it turned out in the next step that it was actually referring to fstab. I wonder why it didn't tell me that from the start.

It worked well and the computer booted fine, but then X didn't start. Something in the recent update broke my ATI driver so I had to disable it and change the display to the internal graphics adapter in the BIOS to get going. Now I must look in the forum why the update broke my ATI driver ...

Martin
User avatar
Roken
Level 5
Level 5
Posts: 737
Joined: Fri Nov 19, 2010 4:55 pm
Location: Newport, S Wales

Re: New update suggest identifying disks by label or UUID

Post by Roken »

If you had a kernel upgrade you need to reinstall the ATI drivers.
Kernel Linux Tex 5.12.14-zen1-1-zen, XFCE
Arch
Dual GTX1070 8Gb
AMD Ryzen 1800X
32Gb RAM
marlar
Level 2
Level 2
Posts: 72
Joined: Thu Dec 10, 2009 9:30 am

Re: New update suggest identifying disks by label or UUID

Post by marlar »

Locked

Return to “LMDE Archive”