You are not logged in.

#1 2010-10-15 16:15:36

01011010
Member
Registered: 2010-08-19
Posts: 22

Unable to determine major/minor number of root device

Hello,


When I try to boot, I get the following:

:: Loading Initramfs
:: Starting udevd...
done.
Waiting 10 seconds for device /dev/mapper/lvpool-d2 ...
ERROR: Unable to determine major/minor number of root device '/dev/mapper/lvpool-d2'


Here is what the Arch section of my menu.lst looks like (mostly stolen from working Fedora install):

title Arch Linux (201005)
    root (hd0,0)
    kernel /vmlinuz26 ro root=/dev/mapper/lvpool-d2 rd_LUKS_UUID=luks-e6156b20-4e02-45e7-ae88-f46e8288b83e rd_LVM_LV=lvpool/d2 rd_LVM_LV=lvpool/swap rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
    initrd /kernel26.img


UUID is /dev/sda3, which is encrypted and contains logical volum group 'lvpool'. When booting Fedora, after prompting for my password it proceeds to mount root, swap, /home, etc. and boots up.

Any clue what's wrong?

Thanks,
01011010

Last edited by .:B:. (2010-10-15 22:56:34)

Offline

#2 2010-10-15 17:14:21

sie
Member
From: Latvia
Registered: 2010-06-30
Posts: 33

Re: Unable to determine major/minor number of root device

Each OS has it's own main partition with /boot(you can seperate them, though), I don't think you can have two on one partition.

To "add" Arch to your GRUB, you need to edit your /boot/grub/menu.lst in the fedora partition, I guess. You can see all your partitions of a disk, by doing

# fdisk -l /dev/sd?

, where /dev/sd? is your hard drive. (It could be /dev/hda or /dev/sdb as well)

UPDATE: I saw your update, and I don't know much about booting with LVM and/or with encryption. hmm

Last edited by sie (2010-10-15 17:15:24)


a & ☭

Offline

#3 2010-10-15 20:06:14

01011010
Member
Registered: 2010-08-19
Posts: 22

Re: Unable to determine major/minor number of root device

I copied the files from Arch's /boot to Fedora's /boot, and added those lines above (changed the d1 to d2 for Arch root) to Fedora's menu.lst, resulting in that error.

Do I need to do anything to Arch's /boot directory or menu.lst? Is GRUB supposed to prompt for password automatically?

Also, Fedora's /boot appears to be linked to my boot partition, dev/sda1. Should Arch's /boot be linked similarly?

Thanks,
01011010

Last edited by 01011010 (2010-10-15 20:18:27)

Offline

#4 2010-10-15 20:17:40

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: Unable to determine major/minor number of root device

Does /dev/mapper/lvpool-d2 even exist on your system?

Seriously:

# fdisk -l

Offline

#5 2010-10-15 20:34:45

01011010
Member
Registered: 2010-08-19
Posts: 22

Re: Unable to determine major/minor number of root device

itsbrad212 wrote:

Does /dev/mapper/lvpool-d2 even exist on your system?

Lvpool-d2 is a logical volume group. Here is what I get for fdisking /d2 though:

# fdisk -l /dev/lvpool/d2

Disk /dev/lvpool/d2: xxxx MB, xxxx bytes
...etc, etc...
Disk identifier: 0x00000000

Disk /dev/lvpool/d2 doesn't contain a valid partition table

# fdisk -l produces /dev/dm-0 through 5, along with the usual /dev/sda1 through 3. I can, however, mount /dev/lvpool/d2 and browse Arch's files just fine.

sda1 = /boot
sda2 = win7
sda3 = dm-crypt (containing logical group 'lvpool')

Lvpool contains all of my logical volumes (Arch's and Fedora's /, swap, /home, etc.).


Thanks,
01011010

Last edited by 01011010 (2010-10-15 21:25:42)

Offline

#6 2010-10-15 21:39:35

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: Unable to determine major/minor number of root device

Okay smile Let's see...

* Make sure you have "USELVM" set to "yes" in /etc/rc.conf
* Make sure you have "lvm2" inside of the HOOKS array in /etc/mkinitcpio.conf. If it is not present, add it and run:

# mkinitcpio -p kernel26

Offline

#7 2010-10-15 22:22:09

01011010
Member
Registered: 2010-08-19
Posts: 22

Re: Unable to determine major/minor number of root device

itsbrad212 wrote:

Okay smile Let's see...

* Make sure you have "USELVM" set to "yes" in /etc/rc.conf
* Make sure you have "lvm2" inside of the HOOKS array in /etc/mkinitcpio.conf. If it is not present, add it and run:

# mkinitcpio -p kernel26

Changes made. Unfortunately, GRUB isn't even asking for my password, so Arch's volume (which contains those files) is yet to be read.

After selecting Fedora from the GRUB menu, a fancy Fedora themed screen (http://blog.lynxworks.eu/http://blog.ly … 00x167.png) appears with a pw box in the middle, prompting for password entry. Upon trying to boot Arch though, I get sent straight to the aforementioned error and dropped to recovery shell.

Thanks,
01011010

Last edited by 01011010 (2010-10-15 22:22:47)

Offline

#8 2010-10-15 22:26:57

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: Unable to determine major/minor number of root device

01011010 wrote:
itsbrad212 wrote:

Okay smile Let's see...

* Make sure you have "USELVM" set to "yes" in /etc/rc.conf
* Make sure you have "lvm2" inside of the HOOKS array in /etc/mkinitcpio.conf. If it is not present, add it and run:

# mkinitcpio -p kernel26

Changes made. Unfortunately, GRUB isn't even asking for my password, so Arch's volume (which contains those files) is yet to be read.

After selecting Fedora from the GRUB menu, a fancy Fedora themed screen (http://blog.lynxworks.eu/http://blog.ly … 00x167.png) appears with a pw box in the middle, prompting for password entry. Upon trying to boot Arch though, I get sent straight to the aforementioned error and dropped to recovery shell.

Thanks,
01011010

Try removing "autodetect" from the HOOKS array and rebuilding it again with the mkinitcpio command above.

Offline

#9 2010-10-15 22:42:38

01011010
Member
Registered: 2010-08-19
Posts: 22

Re: Unable to determine major/minor number of root device

I can't run mkinitcpio from Fedora; I get a "command not found". Is there another way to go about this?

Thanks,
01011010

Offline

#10 2010-10-15 22:46:48

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: Unable to determine major/minor number of root device

01011010 wrote:

I can't run mkinitcpio from Fedora; I get a "command not found". Is there another way to go about this?

Thanks,
01011010

Boot into fedora, mount the disk at some location (for this I'll use /mnt/arch/). Then do the following:

# chroot /mnt/arch /bin/bash (or whatever shell you use on Arch)

Offline

#11 2010-10-15 22:56:05

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Unable to determine major/minor number of root device

There is a bug in 2.6.35 that can yield this type of error (I ran into it myself). If you can manage to chroot into your Arch installation, then run a pacman update, reboot, and all should be well.

I took out the 'GRUB:' from your topic title. This has nothing to do with GRUB, as you can see from the output you pasted yourself - the kernel gets booted, so you're way past the bootloader. It only adds confusion.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#12 2010-10-15 23:38:06

01011010
Member
Registered: 2010-08-19
Posts: 22

Re: Unable to determine major/minor number of root device

itsbrad212 wrote:

Boot into fedora, mount the disk at some location (for this I'll use /mnt/arch/). Then do the following:

# chroot /mnt/arch /bin/bash (or whatever shell you use on Arch)

Here's what I'm getting after following your instructions for mkinitcpio and copying the files over to Fedora's /boot:

:: Loading Initramfs
:: Starting udevd...
done.
No volume groups found
No volume groups found
Waiting 10 seconds for device /dev/mapper/lvpool-d2 ...
ERROR: Unable to determine major/minor number of root device '/dev/mapper/lvpool-d2'

Same as before, but with the additional twin lines ('No volume groups found') in the middle.

Any idea where 'lvm2' should go in the sequence? I've tried putting it both fore and aft of udev in HOOKS="base udev pata scsi sata filesystems".

Thanks,
01011010

Last edited by 01011010 (2010-10-15 23:44:37)

Offline

#13 2010-10-15 23:52:10

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: Unable to determine major/minor number of root device

01011010 wrote:
itsbrad212 wrote:

Boot into fedora, mount the disk at some location (for this I'll use /mnt/arch/). Then do the following:

# chroot /mnt/arch /bin/bash (or whatever shell you use on Arch)

Here's what I'm getting after following your instructions for mkinitcpio and copying the files over to Fedora's /boot:

:: Loading Initramfs
:: Starting udevd...
done.
No volume groups found
No volume groups found
Waiting 10 seconds for device /dev/mapper/lvpool-d2 ...
ERROR: Unable to determine major/minor number of root device '/dev/mapper/lvpool-d2'

Same as before, but with the additional twin lines ('No volume groups found') in the middle.

Any idea where 'lvm2' should go in the sequence? I've tried putting it both fore and aft of udev in HOOKS="base udev pata scsi sata filesystems".

Thanks,
01011010

The order of the hooks shouldn't matter too much.

Did you try both with and without "autodetect"? The reason I recommended to try it out is because I have seen cases where removing autodetect solved problems similar to your.

Last edited by cesura (2010-10-15 23:52:26)

Offline

#14 2010-10-16 02:49:57

01011010
Member
Registered: 2010-08-19
Posts: 22

Re: Unable to determine major/minor number of root device

itsbrad212 wrote:

The order of the hooks shouldn't matter too much.

Did you try both with and without "autodetect"? The reason I recommended to try it out is because I have seen cases where removing autodetect solved problems similar to your.

I've tried both with and without autodetect, but there is no difference.

I guess I'm going to reinstall Arch and let it configure things. I've gotten Arch to boot on this laptop before, but WMs don't work (a video issue, I'm assuming). I'll just back up my Fedora /boot and hopefully have better success using Fedora as the 'add-on'.

Thanks all, I've learned quite a bit today about a variety things.

01011010

Offline

#15 2010-10-16 02:51:01

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: Unable to determine major/minor number of root device

Sorry, have not really read through what have been said so please ignore if not helpful.

I have had similar problems (similar error message) before on my arch virtual machine. Running the fallback option at the grub boot screen allowed me to boot in. I merely re-run mkinitcpio and everything was OK.

Offline

#16 2010-10-16 14:59:48

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Unable to determine major/minor number of root device

01011010 wrote:
itsbrad212 wrote:

The order of the hooks shouldn't matter too much.

Did you try both with and without "autodetect"? The reason I recommended to try it out is because I have seen cases where removing autodetect solved problems similar to your.

I've tried both with and without autodetect, but there is no difference.

I guess I'm going to reinstall Arch and let it configure things. I've gotten Arch to boot on this laptop before, but WMs don't work (a video issue, I'm assuming). I'll just back up my Fedora /boot and hopefully have better success using Fedora as the 'add-on'.

Thanks all, I've learned quite a bit today about a variety things.

01011010

You could at least try my suggestion before you fix things the Windows way... I don't mind my posts getting ignored, but if it can fix your problem (and since this is a pretty specific error and not a generic one, I'm rather sure it will), then we're both happy.

Also, your opening post doesn't mention the volume group(s) not being found, while your last output does - so it looks like the problem is actually worsening instead of getting solved (no flame intended itsbrad212).

Check this link: https://bugzilla.kernel.org/show_bug.cgi?id=16606


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#17 2010-10-16 17:19:21

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: Unable to determine major/minor number of root device

.:B:. wrote:

Also, your opening post doesn't mention the volume group(s) not being found, while your last output does - so it looks like the problem is actually worsening instead of getting solved (no flame intended itsbrad212).

Sorry 'bout that. neutral I wasn't aware of the kernel bug.

Although I think there is an extra required step in there that sets the volume group you would like to use to active. I can't recall off-hand what it is, but a simple Google search should bring some results up.

Offline

#18 2010-10-16 17:55:50

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Unable to determine major/minor number of root device

I don't know a thing about volume groups, so I can't say. And you shouldn't apologise either, it's the OP who needs to look at the post tongue. Kernel bugzilla seems to time out at the moment though...


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#19 2011-01-24 18:18:53

dante4d
Member
Registered: 2007-04-14
Posts: 176

Re: Unable to determine major/minor number of root device

What heleped me on this one was:

pacman -Sf kernel26

Offline

#20 2011-12-23 22:20:26

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: Unable to determine major/minor number of root device

I closed and split this thread because I think we are dealing with a new problem with old symptopms.  Please see https://bbs.archlinux.org/viewtopic.php … 6#p1031836


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB