LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-05-2019, 09:12 PM   #1
sirius57
Member
 
Registered: Jun 2004
Distribution: puppy linux, suse 10.0, opensuse 11.3, 12.1, mythdora, opensuse 13.1, opensuse tumbleweed
Posts: 602

Rep: Reputation: 36
booting a linux os hard drive in another box?


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?
 
Old 08-05-2019, 09:17 PM   #2
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
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.
 
Old 08-05-2019, 10:09 PM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,795

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by sirius57 View Post
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.


Cheers...
 
Old 08-06-2019, 04:07 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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.
 
Old 08-06-2019, 01:28 PM   #5
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,824
Blog Entries: 17

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Quote:
Originally Posted by sirius57 View Post
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.
 
Old 08-06-2019, 01:32 PM   #6
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,824
Blog Entries: 17

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Quote:
Originally Posted by rnturn View Post
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
 
1 members found this post helpful.
Old 06-11-2020, 01:55 AM   #7
AlienBison
LQ Newbie
 
Registered: Jun 2020
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by zeebra View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Linux Mint 19.1 cinnamon to an external hard drive & backing up to another external hard drive. bluelakecompany@yahoo.co Linux - Newbie 1 01-23-2019 06:30 PM
Copying a partition from one hard drive to the same partition on another hard drive pylagan Linux - General 1 03-23-2010 12:02 PM
Booting Linux on an external USB hard drive (not a memory stick, a hard drive) comcastuser Linux - Hardware 4 01-13-2010 06:59 PM
load Linux onto a hard drive on one computer then move the hard drive to another Ark9 Linux - Newbie 2 10-06-2008 06:56 PM
Copy Fedora 5 Hard Drive to another Hard Drive Using Knoppix 5.1.1 lud477 Linux - Software 2 03-17-2007 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration