LinuxQuestions.org
Visit Jeremy's Blog.
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 03-22-2020, 12:09 PM   #1
Felipe
Member
 
Registered: Oct 2006
Posts: 302

Rep: Reputation: 32
Linux on SSD runs on two computers


Hallo:
I'd like to know if it's possilbe to install Linux on external SSD and run it in two different computers. Of course, not at the same time. Just connect SSD to one computer or to another.
Both computer are 64bits, but different memory, internal HD, ...
Would it work? Is there any distribution that supports it?
Thanks
 
Old 03-22-2020, 12:35 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,306

Rep: Reputation: 7984Reputation: 7984Reputation: 7984Reputation: 7984Reputation: 7984Reputation: 7984Reputation: 7984Reputation: 7984Reputation: 7984Reputation: 7984Reputation: 7984
yes, I think that is possible, but you will/may have problems with the host specific configuration (like hostname, ip). It may depend on the setup and on what is installed and (how it was) configured.
 
Old 03-22-2020, 12:41 PM   #3
Felipe
Member
 
Registered: Oct 2006
Posts: 302

Original Poster
Rep: Reputation: 32
Thanks for reply.

It's goin to be the same configuration. Host name, dhcp, ...
I've two computers, but I can't use always the same computer. If I install linux on external SSD and istall all software I like, I could star it in one computer or another.
 
Old 03-22-2020, 12:52 PM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,195

Rep: Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951
Quote:
Originally Posted by Felipe View Post
Thanks for reply.

It's goin to be the same configuration. Host name, dhcp, ...
I've two computers, but I can't use always the same computer. If I install linux on external SSD and istall all software I like, I could star it in one computer or another.
#1 if the hardware is enough alike that should work.

#2 why not run one of a live-cd image from a thumb drive so you can have two machines running at the same time? Is there something very special about the OS install on this external drive?
 
Old 03-22-2020, 01:03 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,820

Rep: Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239
Considering that the various "Live CD/DVD" distributions do this all the time, I'd say that your chances of success are pretty good as. The most likely stumbling block would be if the hardware were different enough that accessing your external drive required different drivers in the initrd. There are ways to include the needed modules for both in that initrd, so why not give it a try and see if it "just works", or if a little more effort is needed to get there.

Of course, this is all assuming that you would be choosing the same architecture (x86_64 vs. i386 vs. ARM, etc) for both machines.

Last edited by rknichols; 03-22-2020 at 01:11 PM. Reason: Add "Of course ..."
 
Old 03-22-2020, 02:31 PM   #6
remmilou
Member
 
Registered: Mar 2010
Location: Amsterdam
Distribution: MX Linux (21)/ XFCE
Posts: 218

Rep: Reputation: 70
GNU/Linux distributions are relatively hardware agnostic. Assumpted that you run a generic kernel (not stripped down and compiled for one type of hardware).
One other important thing is, that you have all other mounted filesystems (/home, /var... etc.) on the same boot disk.
I agree with the suggestion to run a live system from USB. If you have a small foorprint distro (Google is your friend) and enough RAM in both machines, you can run the system completely in RAM which is ridiculously fast. Tip to achieve this:
Set up a MX Linux 19 system (that is Debian Buster + some extra repositories).
Strip it down to the minimum you need (preferably with lightweight apps).
Use MX snalshot (pre-installed) to create a bootable ISO (called snapshot).
Put that on CD
Run the distro in "persistent mode" (read the docs).
Again: you need RAM...

Last edited by remmilou; 03-22-2020 at 02:31 PM. Reason: typo
 
Old 03-22-2020, 07:55 PM   #7
binkyd
Member
 
Registered: Oct 2016
Distribution: Looking again
Posts: 429

Rep: Reputation: 40
Sorta sounds like ans SSD version of TAILS ?
 
Old 03-22-2020, 09:57 PM   #8
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
Quote:
I'd like to know if it's possible to install Linux on external SSD and run it in two different computers. Of course, not at the same time. Just connect SSD to one computer or to another.
Both computer are 64bits, but different memory, internal HD, ...
Have you considered virtualization ? Install either virtualbox or KVM/libvirt on both computers and then keep the VM files on the external SSD. For virtualbox the 'machine folder' with the .vbox and .vdi files will be on the SSD. You can use symlinks so the VB installation on each computer points to a directory on the external SSD and a udev rule so that the SSD is always mounted to the same point on each host computer.

With virtualization you don't have to install an OS on two (or more) computers. You only have to run the same VM image. One of the major benefits of virtualization is easy migration from one host to another. In your case you would be alternating the host computer on which the VM runs.
 
Old 03-23-2020, 03:19 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,361

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
One can easily test this with either the ssd drive or a large enough flash drive.

Thoughts.
You might have to adjust for the oldest machine. Most modern machines are still backward compatible.
The way it boots may need to be configured.
The video and network tend to be the most problem I'd wild guess.
 
  


Reply

Tags
ssd


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
Install Linux in Toshiba u940 series with 32gb ssd and 750gb hdd I would like to have boot code in ssd only cvkchary Linux - Laptop and Netbook 4 08-31-2016 04:26 PM
To SSD or not to SSD jlinkels Linux - Hardware 14 10-02-2012 07:36 AM
SSD raid1 vs SSD raid10 advice ? wonker Linux - Hardware 8 05-23-2012 01:46 AM
Two scripts, one runs with the other only runs as root halfpower Slackware 8 04-11-2009 04:05 PM

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

All times are GMT -5. The time now is 10:12 PM.

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