You are not logged in.

#1 2014-01-27 18:49:16

shaurz
Member
Registered: 2004-02-02
Posts: 360

Upgrading kernels and loading modules

I've noticed that sometimes after updating the kernel, I can't mount any external drives any more unless I reboot.

I'm guessing this is because when the new kernel was installed, the modules for the old kernel were deleted and it can't find them any more.

I wonder if pacman should keep the old kernel modules around, at least until after rebooting?

Offline

#2 2014-01-27 18:54:49

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: Upgrading kernels and loading modules

Nope. Either don't upgrade the kernel until you can reboot or specifically load the modules you might need before upgrading.

Personally, I do use modules-load.d to load the usb-storage module for just such cases.

Offline

#3 2014-01-27 20:18:20

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Upgrading kernels and loading modules

@Scimmia

That's interesting. I am exactly looking for this only use case. Can you briefly describe how to load the usb module after a kernel upgrade?

Is this done automatically?

Offline

#4 2014-01-27 20:37:13

progandy
Member
Registered: 2012-05-17
Posts: 5,317

Re: Upgrading kernels and loading modules

orschiro wrote:

@Scimmia

That's interesting. I am exactly looking for this only use case. Can you briefly describe how to load the usb module after a kernel upgrade?

Is this done automatically?

You have to load the usb module before you upgrade the kernel. A simple method is to always load the module during boot.
https://wiki.archlinux.org/index.php/Ke … es#Loading


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2014-01-30 08:21:57

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Upgrading kernels and loading modules

@progandy

Thanks! So basically just creating `/etc/modules-load.d/usb-storage.conf`:

➜  ~  cat /etc/modules-load.d/usb-storage.conf 
# Load usb-storage module on boot to prevent USB not working 
# after a Kernel upgrade
usb_storage

Offline

Board footer

Powered by FluxBB