Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I wondered if it was possible to boot a linux os hard drive taken from one box and placed in another box, so I tried it. The grub menu loaded, then the linux os started booting and then stopped in mid stream. I know I could slave the drive, but I wanted to boot it. Is the drive hardware specific to the box it came from?
What's the error message when your computer boots up? I see a bunch of openSUSE distros in your profile; hit F2 or Escape before the system stalls to see the boot messages. I've done this before; once in a while you might have to reconfigure hardware changes that weren't automatically detected. There might be some issues in fstab, I don't know for sure if UUIDs stay from one computer to another, I'd guess that they do.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,795
Rep:
Quote:
Originally Posted by sirius57
I wondered if it was possible to boot a linux os hard drive taken from one box and placed in another box, so I tried it. The grub menu loaded, then the linux os started booting and then stopped in mid stream. I know I could slave the drive, but I wanted to boot it. Is the drive hardware specific to the box it came from?
Are you able to edit the boot command line in grub? If so, add "single" to the end and press F10. The system should partially boot. If there are any errors you should be able to correct them while in single user mode. If not, you'll need to boot from installation media in rescue mode and make changes after you've mounted the disk's root filesystem.
As wagscat123 mentioned, the boot problem could be related to something odd in "/etc/fstab". I tend to prefer labeling filesystems using "tune2fs" and adjusting "/etc/fstab" to mount using "LABEL=fileystem-label" instead of "UUID=...". (I've never done this on the UEFI boot partition, though.) I've had to comment out large portions of "/etc/fstab" after major upgrades to sort out mounting problems one filesystem at a time followed by "mount -a".
BTW, it'd be easier to help if we could see the exact error message you've encountering. I know it's tough to get these before the system is fully operational and you may need to write things down and re-type them. But without any hints, we're all sort of feeling around in the dark.
Ho-hum.
We had an identical question just a few months ago; I guess they pop up every now and then.
The obvious question in your case is: where and how exactly did it stop "midstream"? More information required...
And: did you do any preparation before attempting the boot? AFAIR this is perfectly possible, but UUIDS might need to be adjusted in /etc/fstab.
I wondered if it was possible to boot a linux os hard drive taken from one box and placed in another box, so I tried it. The grub menu loaded, then the linux os started booting and then stopped in mid stream. I know I could slave the drive, but I wanted to boot it. Is the drive hardware specific to the box it came from?
It is possible provided the GRUB is correctly configured and provided the Kernel on the disk support the hardware that you have on your new computer. If your Kernel is a huge/generic Kernel, it will most likely support all the hardware on your new computer, so it should work. This is unless the Kernel is very old and the new computer has very new hardware.
Since the Kernel will most likely boot your hardware, the main issue is getting Grub to boot correctly. You can experiment with this with the "e" option to edit your Grub options when you boot.
Are you able to edit the boot command line in grub? If so, add "single" to the end and press F10.
This is a good idea, but instead of adding "single" you could just add "1" which will boot into single user mode on any init system, and 1 is shorther than single
It is possible provided the GRUB is correctly configured and provided the Kernel on the disk support the hardware that you have on your new computer. If your Kernel mcdvoice is a huge/generic Kernel, it will most likely support all the hardware on your new computer, so it should work. This is unless the Kernel is very old and the new computer has very new hardware.
Since the Kernel will most likely boot your hardware, the main issue is getting Grub to boot correctly. You can experiment with this with the "e" option to edit your Grub options when you boot.
Nice collection keep up the good work.
Last edited by AlienBison; 06-12-2020 at 02:23 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.