Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed some Ubuntu on my LVM disks. In Ubuntu10.04, I rename the Ubuntu12.04's lv but the "linux-boot-probe" goes wrong.

Here is what I did:

sudo lvname LVMDisk Ubuntu12.04 LabUbuntu12.04 #I have installed Ubuntu12.04 on this lv
sudo linux-boot-prober /dev/mapper/LVMDisk-LabUbuntu12.04 

The following is the result. We still can see root=/dev/mapper/LVMDisk-Ubuntu12.04.

It doesn't change? Why?

/dev/mapper/LVMDisk-LabUbuntu12.04:/dev/mapper/LVMDisk-LabUbuntu12.04:Ubuntu, with Linux 3.2.0-30-generic-pae:/boot/vmlinuz-3.2.0-30-generic-pae:/boot/initrd.img-3.2.0-30-generic-pae:root=/dev/mapper/LVMDisk-Ubuntu12.04 ro quiet splash $vt_handoff
/dev/mapper/LVMDisk-LabUbuntu12.04:/dev/mapper/LVMDisk-LabUbuntu12.04:Ubuntu, with Linux 3.2.0-30-generic-pae (recovery mode):/boot/vmlinuz-3.2.0-30-generic-pae:/boot/initrd.img-3.2.0-30-generic-pae:root=/dev/mapper/LVMDisk-Ubuntu12.04 ro recovery nomodeset
share|improve this question

I found the answer for my own question. The command read the boot/grub/grub.cfg or boot/grub/menu.lst on the device to look for the information.

share|improve this answer
and you get details of what it did in /var/log/syslog, afaik. – sylvainulg May 20 '15 at 9:57
it will read /etc/fstab on the target partition to know whether /boot is mounted from another location, too. That may raise issues when trying to update a system with multiple OS all mounting the same /boot. – sylvainulg May 20 '15 at 10:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.