You are not logged in.

#1 2011-12-14 18:50:06

killnine
Member
Registered: 2011-12-14
Posts: 62

[solved] After update,build new image, error: modprobe: invalid option

I am ultimately getting "Unable to find major/minor number of root..." after an Syu BUT
After researching and trying many solutions I've come to this:

With a new mirrorlist, a Syy, and then an Syu OR pacman -U [old.working.kernel] the image build keeps resulting in this:

==>Building image from preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==>Starting build: 3.1.5-1-ARCH
  -> Parsing hook: base
  -> Parsing hook: udev
  -> Parsing hook: autodetect
modprobe: invalid option --'d'
BusyBox v1.17.2 (2010-09-28 19:00:30 UTC) multi-call binary

Usage: modprobe [-qfwrsv] MODULE [symbol=value]...

Options:....
  -> Parsing pata
.....

So I think I need to upgrade BusyBox or mkinitcpio, does anyone agree?

BUT

pacman -S mkinitcpio mkinitcpio-busybox busybox

Shows all are up to date

Can I have some help in getting this fixed? What is going on?

edit- should i delete my previous post on the same-ish topic?

Last edited by killnine (2011-12-21 14:01:06)

Offline

#2 2011-12-17 16:20:25

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved] After update,build new image, error: modprobe: invalid option

At some point you fubared something (maybe ran busybox --install?) and busybox is being called for modprobe. This binary doesn't belong to any of those things -- its module-init-tools. Look at the full path that's actually being called for depmod (type -P depmod). It should be /sbin/depmod, and it shouldn't be a symlink. If it's anything but a file in /sbin, delete it. Otherwise, reinstall module-init-tools.

Offline

#3 2011-12-17 18:11:13

killnine
Member
Registered: 2011-12-14
Posts: 62

Re: [solved] After update,build new image, error: modprobe: invalid option

[root@clc ~]# ls -l /sbin/depmod 
-rwxr-xr-x 1 root root 154328 Dec  3 23:51 /sbin/depmod

Offline

#4 2011-12-17 20:17:23

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved] After update,build new image, error: modprobe: invalid option

That doesn't guarantee that there isn't a binary called depmod higher in your PATH.... run the command I gave you: type -P depmod.

Offline

#5 2011-12-19 14:16:27

killnine
Member
Registered: 2011-12-14
Posts: 62

Re: [solved] After update,build new image, error: modprobe: invalid option

My apologies. How is this

[root@clc ~]# type -P depmod
/sbin/depmod

Offline

#6 2011-12-19 18:11:01

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved] After update,build new image, error: modprobe: invalid option

I'm an idiot. I'm asking for depmod and mkinitcpio is choking on modprobe... repeat for modprobe, please.

Offline

#7 2011-12-20 02:03:02

killnine
Member
Registered: 2011-12-14
Posts: 62

Re: [solved] After update,build new image, error: modprobe: invalid option

[root@clc ~]# type -P mkinitcpio
/usr/bin/mkinitcpio

Offline

#8 2011-12-20 02:54:18

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved] After update,build new image, error: modprobe: invalid option

modprobe is not mkinitcpio.

Offline

#9 2011-12-20 17:52:47

killnine
Member
Registered: 2011-12-14
Posts: 62

Re: [solved] After update,build new image, error: modprobe: invalid option

Now I am the idiot..

[root@clc iscsi-conf-parse]# type -P modprobe
/bin/modprobe

..slowly, but surely getting there. Thank you for you help!

Offline

#10 2011-12-20 18:09:00

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved] After update,build new image, error: modprobe: invalid option

killnine wrote:

Now I am the idiot..

[root@clc iscsi-conf-parse]# type -P modprobe
/bin/modprobe

..slowly, but surely getting there. Thank you for you help!

that's the problem.

modprobe is in /sbin

pacman -Qo /bin/modprobe


Give what you have. To someone, it may be better than you dare to think.

Offline

#11 2011-12-20 18:14:08

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [solved] After update,build new image, error: modprobe: invalid option

wonder wrote:
killnine wrote:

Now I am the idiot..

[root@clc iscsi-conf-parse]# type -P modprobe
/bin/modprobe

..slowly, but surely getting there. Thank you for you help!

that's the problem.

modprobe is in /sbin

pacman -Qo /bin/modprobe

What probably happened (as falconindy suggested) is that the user ran busybox --install by accident. Deleting this (and any other stray file) should fix your problem.

This problem would not be so hard to debug once we symlink /bin, /sbin and /usr/sbin to /usr/bin (then reinstalling module-init-tools would have fixed the problem). One of these days...

Offline

#12 2011-12-20 20:20:12

killnine
Member
Registered: 2011-12-14
Posts: 62

Re: [solved] After update,build new image, error: modprobe: invalid option

tomegun wrote:
wonder wrote:

that's the problem.

modprobe is in /sbin

pacman -Qo /bin/modprobe

What probably happened (as falconindy suggested) is that the user ran busybox --install by accident. Deleting this (and any other stray file) should fix your problem.

This problem would not be so hard to debug once we symlink /bin, /sbin and /usr/sbin to /usr/bin (then reinstalling module-init-tools would have fixed the problem). One of these days...

"Deleting this" ... busybox or ?

I ran

pacman -S module-init-tools

and retried

mkinitcpio -p linux

and still got the modprobe usage...

also..

[root@clc iscsi-conf-parse]# pacman -Qo /bin/modprobe
error: No package owns /bin/modprobe

Sorry I am not more help...

Offline

#13 2011-12-20 20:26:03

killnine
Member
Registered: 2011-12-14
Posts: 62

Re: [solved] After update,build new image, error: modprobe: invalid option

[root@clc iscsi-conf-parse]# ls -l /bin/modprobe 
lrwxrwxrwx 1 root root 7 Nov 23 12:28 /bin/modprobe -> busybox
[root@clc iscsi-conf-parse]# rm /bin/modprobe 
[root@clc iscsi-conf-parse]# type -P modprobe
/sbin/modprobe
[root@clc iscsi-conf-parse]# mkinitcpio -p linux
==> Building image from preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.1.5-1-ARCH
  -> Parsing hook: [base]
  -> Parsing hook: [udev]
  -> Parsing hook: [autodetect]
  -> Parsing hook: [pata]
  -> Parsing hook: [scsi]
  -> Parsing hook: [sata]
  -> Parsing hook: [filesystems]
  -> Parsing hook: [usbinput]
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 3.1.5-1-ARCH
  -> Parsing hook: [base]
  -> Parsing hook: [udev]
  -> Parsing hook: [pata]
  -> Parsing hook: [scsi]
  -> Parsing hook: [sata]
  -> Parsing hook: [filesystems]
  -> Parsing hook: [usbinput]
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful

SCORE! .. will repost success or failure after a reboot.

thanks again!

Offline

#14 2011-12-20 20:43:31

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [solved] After update,build new image, error: modprobe: invalid option

killnine wrote:
tomegun wrote:

What probably happened (as falconindy suggested) is that the user ran busybox --install by accident. Deleting this (and any other stray file) should fix your problem.

"Deleting this" ... busybox or ?

Deleting /bin/modprobe (and any other symlinks to busybox), as you already figured out smile

killnine wrote:

I ran

pacman -S module-init-tools

and retried

mkinitcpio -p linux

and still got the modprobe usage...

also..

[root@clc iscsi-conf-parse]# pacman -Qo /bin/modprobe
error: No package owns /bin/modprobe

Exatly, reinstalling the package does not work because the symlink is in /bin whereas your package installs the binary in /sbin...

Glad to see it worked out in the end.

Offline

#15 2011-12-21 13:59:34

killnine
Member
Registered: 2011-12-14
Posts: 62

Re: [solved] After update,build new image, error: modprobe: invalid option

Reboot was successful, I can now boot my normal arch.

Thank you again for all the help

Offline

Board footer

Powered by FluxBB