pleroma.debian.social

pleroma.debian.social

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.

@xtaran

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.

@xtaran

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.

@wanderinghermit I have done that with my laptop SSD quite a few times, *should* just work those days. That being said, some hardware might not be supported because of firmware and/ or kernel issues. Since I have wired ethernet and a ryzen CPU / amd GPU in both systems it just workedβ„’, YMMV. If you have a nvidia GPU in the desktop PC you'd need to install the nvidia drivers before switching, for instance.
replies
1
announces
0
likes
1

@werdahias

I appreciate that, thanks!