New update suggest identifying disks by label or UUID

Post your update and upgrade related errors here
Forum rules
Before you post please read how to get help

New update suggest identifying disks by label or UUID

Postby marlar on Thu Apr 21, 2011 4:21 pm

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?
marlar
Level 2
Level 2
 
Posts: 64
Joined: Thu Dec 10, 2009 9:30 am

Linux Mint is funded by ads and donations.
 

Re: New update suggest identifying disks by label or UUID

Postby Roken on Thu Apr 21, 2011 5:26 pm

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 3.2.2-1 (64 bit) xfce , burg
Arch
ATI Radeon HD 4670, 1GB
OSS4
AMD Phenom II X4 (965BE) @ 3.6 Ghz (Overclocked)
8Gb RAM
Image
User avatar
Roken
Level 5
Level 5
 
Posts: 747
Joined: Fri Nov 19, 2010 4:55 pm
Location: Oldham, UK

Re: New update suggest identifying disks by label or UUID

Postby marlar on Sat Apr 23, 2011 3:14 pm

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
marlar
Level 2
Level 2
 
Posts: 64
Joined: Thu Dec 10, 2009 9:30 am

Re: New update suggest identifying disks by label or UUID

Postby Roken on Sat Apr 23, 2011 4:32 pm

If you had a kernel upgrade you need to reinstall the ATI drivers.
Kernel Linux Tex 3.2.2-1 (64 bit) xfce , burg
Arch
ATI Radeon HD 4670, 1GB
OSS4
AMD Phenom II X4 (965BE) @ 3.6 Ghz (Overclocked)
8Gb RAM
Image
User avatar
Roken
Level 5
Level 5
 
Posts: 747
Joined: Fri Nov 19, 2010 4:55 pm
Location: Oldham, UK

Re: New update suggest identifying disks by label or UUID

Postby marlar on Sat Apr 23, 2011 4:34 pm

Thanks, but that did not help. See viewtopic.php?f=141&t=67502&p=412750#p412750
marlar
Level 2
Level 2
 
Posts: 64
Joined: Thu Dec 10, 2009 9:30 am


Return to Update/Upgrade Issues

Who is online

Users browsing this forum: No registered users and 5 guests