Linux folx: I have an old laptop running Linux Mint that functions as my data gathering machine and web server. I need to switch to a desktop machine that supports boot on power restore.
The laptop drive is a 1 TB SSD. If I take the drive out of the laptop and put it in a desktop computer, do you think the desktop machine will boot? If so, will the OS reconfigure to reflect the different hardware? I've never tried this, have any of you?
@wanderinghermit: Might work, might not work. One thing you should check is that "MODULES" in /etc/initramfs-tools/initramfs.conf is set to "most", not to "dep":
$ grep MODULES /etc/initramfs-tools/initramfs.conf
[β¦]
MODULES=most
Otherwise the kernel modules available at boot time will be only those needed for the laptop.
If you have Network Manager or dhcpcd for network configuration, it probably discovers the new network interface. Not sure if it also tries to get an IP.
Very useful information, thanks!
@wanderinghermit: Oh, and if you need to change it, you need to run "update-initramfs -k all -u" as root or with sudo so that those files containing these modules get updated immediately and not just with the next kernel update.
I would not have known that, thanks!
@wanderinghermit: Yeah, sorry, some things are done so automatically if you're used to them so that you forget that they're necessary, too.
And yeah, it's a bit deep down in the system, but this setting is mostly about boot speed and disk usage in /boot/ versus being universally bootable. So I would be surprised if there's a GUI for that.
- replies
- 1
- announces
- 0
- likes
- 1
I appreciate that, thanks!