LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-03-2014, 02:23 AM   #1
pls_help_URGENT
Member
 
Registered: Aug 2012
Posts: 42

Rep: Reputation: Disabled
How to install Linux on an external HDD from computer A and boot it on computer B?


Part A:
I have an external harddisk and I wish to install Ubuntu
on it from a friend's machine which has a working CD
reader.

Part B:
I intend to boot from that external harddisk on my
computer which has Windows on it.

What do I need to know about Part B? If I simply plug
in the external harddisk and set the option `boot from USB`,
then will I be able to boot directly on another computer?
 
Old 05-03-2014, 07:58 AM   #2
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
or option "boot from USB HDD" in the BIOS setup.
Do it. Now. (the time you ask you will be probably finish). Good luck.
 
1 members found this post helpful.
Old 05-03-2014, 08:56 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Are you able to boot from usb on your computer? If so, that would be simpler. Create a bootable flash drive, set your boot priority in the BIOS to boot from the usb and proceed with the install.

If your friends computer is made by the same manufacturer and has all the same hardware, this should work with no problems. That doesn't seem to be the case. During the install using your friends computer, you will need to make sure you get the name of your external drive so that your install the bootloader to your drive and not his. This happens a lot. Read everything carefully and if you don't understand, you need to stop as you are using someone else's computer. If that is successful, you should be able to select which drive to boot when you start your machine. Methods for this vary with manufacturer and you haven't indicated the type of computer you have.
 
1 members found this post helpful.
Old 05-03-2014, 08:57 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
if the install pc has a nvidia graphics adapter and the frankenstiened machine has a radeon graphics adapter (or vice-versa, or itel integrated, .../ or different wifi adapter, audio adapter, network card, ...) then the wrong driver will load. that is why live-usb's are so cool since they probe for devices upon every reboot.
 
1 members found this post helpful.
Old 05-04-2014, 08:19 AM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
If the hardware is different may have to install drivers manually.
 
1 members found this post helpful.
Old 05-04-2014, 10:38 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Caveats of that way.

Install a bootloader on the external disk.

Configure the bootloader the use the UUID of the device.
in grub.cfg the root=/dev/sdXX should be root=UUID=88888888-4444-4444-4444-cccccccccccc where the UUID matches that of the partition with the / aka root filesystem.

Setup the /etc/fstab to reflect the UUID as well.

You will likely need to rm some *net* stuff in /etc/udev/rules.d/ so your interface will assume eth0 and not eth1, and wlan0 and stuff like that. Before you boot it so it can regen the file at boot. Or change your firewall script(s) to reflect the active device and not rm that file.

You may want to boot to console and not a gui login in case you have driver issues with video. As in one machine is nvidia, the other is amd/ati.

Otherwise bootloader + UUID and fstab + UUID is all you need to boot an install on another device. I do this sort of thing on USB sticks all the time. Although a higher speed SDHC and a reader is more performant.
 
1 members found this post helpful.
Old 05-05-2014, 04:00 AM   #7
pls_help_URGENT
Member
 
Registered: Aug 2012
Posts: 42

Original Poster
Rep: Reputation: Disabled
Am thankful to all for their constructive and helpful
replies.

Quote:
Originally Posted by schneidz View Post
if the install pc has a nvidia graphics adapter and the frankenstiened machine has a radeon graphics adapter (or vice-versa, or itel integrated, .../ or different wifi adapter, audio adapter, network card, ...) then the wrong driver will load. that is why live-usb's are so cool since they probe for devices upon every reboot.
With live USBs can I actually program and then save the
program on that USB itself? Is that possible?

Are there any disadvantages of using live USBs?

Well, if I need GCC and the live USB doesn't have the
GCC then each time I reboot or use USB on some other
computer I'll have to install the GCC? Is there a way to
get around this?
 
Old 05-05-2014, 05:30 AM   #8
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Quote:
Originally Posted by schneidz View Post
if the install pc has a nvidia graphics adapter and the frankenstiened machine has a radeon graphics adapter (or vice-versa, or itel integrated, .../ or different wifi adapter, audio adapter, network card, ...) then the wrong driver will load.
Only if you're installed the closed source drivers (though you can hit a similar problem if you strip out 'unneeded' open source drivers). You will also have the same issue if you've got a XXXX video card, installed closed drivers from manufacturer XXXX, but the drivers are for XXXX.ZZ and it doesnt support your XXXX.XX card (real world example- if you've got nvidia 30X.XX drivers for geforce 6XXX+ and you ry to run on a system with a geforce 5XXX or earlier card)

With nothing but open source video drivers installed I've flipped a internal HDD back and forth between a Intel P4/nVidia 6600, AMD 48000+/nVidia 8400, Intel Pentium D CPU/radeon 5400 and never had an issue.

Quote:
Originally Posted by schneidz View Post
that is why live-usb's are so cool since they probe for devices upon every reboot.
Basicly, if you only have the open source drivers installed the OS acts in a pretty similar way to a LiveCD/LiveUSB. With the advantage of actually keeping changes made like installing program XXXX.
 
Old 05-05-2014, 06:09 AM   #9
dobradude45
Member
 
Registered: Dec 2013
Posts: 42

Rep: Reputation: Disabled
Hi there

Actually booting on different computers is not that problematic - even if the hardware is a little bit different - you might though need to install special Wifi / graphics sometimes - particularly if you install the system on the external HDD on a laptop which has well known Wifi components in them and then boot on a desktop that has say a BELKIN USB Wifi adapter.

The other problem to be aware of is that some computers use UEFI (don't confuse with PROTECTED BOOT - that's the system that keeps the OS licence key in the BIOS and is used sometimes for Windows. Disable Protected boot to allow legacy OS'es like Linux to boot - that doesn't mean disabling UEFI.

Now if you want the system to boot on several computers then don't go for the UEFI version - this will restrict to only running on UEFI systems. Install a NON UEFI version (which uses GRUB2 and not GRUB2-EFI) on an HDD which has a "normal" MBR and not the newer GPT scheme.

Most UEFI installations - especially if you are installing from a LIVE Distro don't allow you to specify where the GRUB boot loader is installed - which is always on the internal HDD.

Installing a non UEFI version will work on UEFI machines (disable protected boot) and you can install the boot loader where you like.

I refer you to this Post -- although on a WINDOWS Forum !!! it creates a portable Linux system, adds VMWARE PLAYER(FREE) so Windows users can essentially have a Portable Windows system by running a Windows Virtual machine on their Linux system using VMWARE. Simply don't install the Virtual machine if you just want a portable Linux box.

http://www.eightforums.com/installat...y-version.html


Works very well -- have tried this approach for OPENSUSE, DEBIAN and LINUX MINT -- all work fine.

Cheers (and it's a lot of fun doing that !!).

(Live distros are all very well but they can't do much in the way of adding software etc. Don't forget also you can COPY HDD's by the use of the DD command - check the Man documentation).

Finally I've used these both on INTEL and AMD machines -- I installed on the INTEL machine with the INTEL HD graphics - it ran also on the NVIDIA / AMD machine -- the base graphics works fine -- you can always install extra drivers later if you need them. Linux kernels are quite sophisticated these days and can recognize a lot of hardware at boot time now unlike a few years ago.

Last edited by dobradude45; 05-05-2014 at 06:18 AM.
 
1 members found this post helpful.
Old 05-05-2014, 07:33 AM   #10
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by pls_help_URGENT View Post
Am thankful to all for their constructive and helpful
replies.



With live USBs can I actually program and then save the
program on that USB itself? Is that possible?

Are there any disadvantages of using live USBs?

Well, if I need GCC and the live USB doesn't have the
GCC then each time I reboot or use USB on some other
computer I'll have to install the GCC? Is there a way to
get around this?
fedora live-usb (others as well ?) have data persistence that can be alloted at time of using the liveusb-creator. you an even have it setup a different home partition.
 
1 members found this post helpful.
Old 05-05-2014, 08:50 AM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
Well, if I need GCC and the live USB doesn't have the
GCC then each time I reboot or use USB on some other
computer I'll have to install the GCC? Is there a way to
get around this?
The suggestion above to create a bootable flash drive with 'persistence' will enable you to do that. You can do that with a number of different distributions, some distro specific others not. You don't mention what you are using.
 
1 members found this post helpful.
Old 05-05-2014, 10:27 AM   #12
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Quote:
Originally Posted by pls_help_URGENT View Post
Am thankful to all for their constructive and helpful
replies.



With live USBs can I actually program and then save the
program on that USB itself? Is that possible?

Are there any disadvantages of using live USBs?

Well, if I need GCC and the live USB doesn't have the
GCC then each time I reboot or use USB on some other
computer I'll have to install the GCC? Is there a way to
get around this?
You can create a chroot if you're running a read-only option like an iso image. The chroot can also be used as your build environment. It's simpler to do a proper install on the USB in my opinion. But there are advantages to using your usb storage option in a primarily read-only manner. As in write speeds on a low end usb stick is very slow, but the read speed is semi-tollerable.

There are disadvantages to USB.

- Slow data rates.
- Slow write speeds, slow enough to make 360p youtube videos buffer for file I/O.
- Limited number of writes (if you do writes)
- Unreliable bus (cables can be disconnected / some USB ports are questionable at best)
- Limited bus quantity which could limit the number of usb storage devices available.
- live iso images tend to not have swap and will do the usual kernel things when you run out of RAM. (/home and /tmp in RAM?. aka browser cache and work files).
 
1 members found this post helpful.
Old 05-08-2014, 01:42 AM   #13
pls_help_URGENT
Member
 
Registered: Aug 2012
Posts: 42

Original Poster
Rep: Reputation: Disabled
Thankful to everyone for information about the `persistence`
key. Will read about that.
 
  


Reply



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
how do i share a drive on my linux computer to install windows on another computer? realflow100 Linux - Networking 6 06-01-2012 01:08 AM
swap boot HDD to alternate computer SaintDanBert Linux - Hardware 6 10-19-2010 01:54 PM
Able to boot pen drive from 1st computer but not from the secound computer saxean Red Hat 1 11-05-2008 10:10 PM
how to install on external hard drive then boot from any computer? Mr_Shameless Linux - General 1 05-31-2008 10:03 AM
how to do a dual boot (Windows on portable HDD) linux on computer HDD izquierdista Linux - General 5 01-28-2006 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:16 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