LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-12-2014, 03:44 PM   #1
punchy71
Member
 
Registered: Dec 2011
Posts: 172

Rep: Reputation: Disabled
Can I use Linux on an external, portable, USB, hard-drive?


Greetings,

I had the idea of installing a Linux (or BSD) distro to an external, portable, USB hard-drive and then plug it into a pc and use the external hard-drive with OS as the pc's OS. Will this work? I have never tried this before. If it does work, is there any special way I would have to set this all up, configure everything and then use it, or would it pretty much be a simple and easy "plug-and-play" affair?

Thanks

Last edited by punchy71; 07-12-2014 at 03:46 PM.
 
Old 07-12-2014, 04:46 PM   #2
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Putting an OS on an external hard-drive is easy. Just be careful where you put the boot-loader.
 
Old 07-12-2014, 06:55 PM   #3
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by punchy71 View Post
Greetings,

I had the idea of installing a Linux (or BSD) distro to an external, portable, USB hard-drive and then plug it into a pc and use the external hard-drive with OS as the pc's OS. Will this work? I have never tried this before. If it does work, is there any special way I would have to set this all up, configure everything and then use it, or would it pretty much be a simple and easy "plug-and-play" affair?

Thanks
Install should be the same as if it were going on an internal drive. If you want to boot your distro on any machine, make sure to put the bootloader on that external drive also, and use UUID instead of /dev/sdxX.
 
Old 07-12-2014, 07:43 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
To most modern linux/bsd a usb drive is the same as an internal drive. While I'll agree that usually a live to usb app creates a slightly faster install I prefer to use a real install. The live to usb tend to save a compressed filesystem. A new fast usb is plenty good for most uses. A fast usb 3.0 with supported OS is really nice.

In a odd twist, the newest linux tried to add in some features and got complex in respect to video drivers. It is possible to disable those features but you may not get full video ability.

If you were to just use this usb on a single machine you could fine tune it for it's hardware.

Last edited by jefro; 07-15-2014 at 05:32 PM.
 
Old 07-15-2014, 12:57 AM   #5
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
Look up 'pen-drive linux'.
 
Old 07-15-2014, 01:53 AM   #6
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
a few caveats would be that USB is inherently slower than even IDE let alone SATA, though not necessarily a problem with simply booting an OS, it can be really apparent when doing something more intensive such as swapping onto a USB drive.
secondly, if this is a hard drive, than it shouldn't be any different than an internal hard drive (assuming the BIOS supports booting from a USB device, though this is pretty much standard in modern units), if it is a flash device though, you have to remember that flash devices wear out faster than hard drives with heavy use

either way you may want to use a bootloader/filesystem better suited for USB drives rather than the standard, but the standard should work just fine, albeit perhaps not as optimally as it could.
 
Old 07-15-2014, 07:48 AM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
USB 2.0 is reasonably fast; FireWire is much faster. Many computers have the ability to run FW800 or better, and disk enclosures can support both. (Some enclosures also provide ESATA.)

I use external drives for a variety of things, including the system-volumes of virtual Linux machines. And, to my way of thinking, "virtual is the only sensible way to go" these days. Leave the host, whatever it is, entirely alone, and run VMs. Intel microprocessors now have very sophisticated support for virtualization in hardware. When you point a VM at a fast external drive, you don't have to do anything to the host ... which is usually a good thing.
 
Old 07-15-2014, 10:20 AM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
USB 2.0? Firewire? What is this, 2008? Firewire is long since dead and USB 3.0 has been integrated into the motherboard of basically every system sold in the last 2-3 years. USB 3.0 is significantly faster than Firewire, IDE, SATA I, and SATA II, the only thing faster is SATA III, and SSDs are the only devices capable of saturating that bus.

I dare you to find a practical difference in usage speed between a drive (even an SSD in anything other than sequential benchmarks) on SATA vs USB 3.0.
 
Old 07-15-2014, 11:41 AM   #9
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by sundialsvcs View Post
USB 2.0 is reasonably fast; FireWire is much faster. Many computers have the ability to run FW800 or better, and disk enclosures can support both. (Some enclosures also provide ESATA.)
reasonably fast for normal operation such as web browsing, watching videos etc.. though the boot process will be noticibly slower (though not unreasonably so). the real bottle neck is putting swap space on the USB drive, since swapping is slow even with a SATA drive, you'd have to be a massochist to use swap space on a USB2 drive.
 
Old 07-15-2014, 11:52 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
you should look into live-usb.

if you are planning on using this on one (and only one) machine you could just install the os to the usb drive (and install the wifi/sound card/graphics adapter/... drivers for that particular system). it should be the exact same process as installing to any other harddrive.

Last edited by schneidz; 07-15-2014 at 11:57 AM.
 
Old 07-16-2014, 10:40 AM   #11
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Rep: Reputation: 40
Re: Can I use Linux on an external, portable, USB, hard-drive?

Look here:
http://64.124.13.3/hacks/USB_Boot_using_GRUB.html
 
Old 07-16-2014, 12:26 PM   #12
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
I've done this a couple times with my laptop. Loading the ramdisk always seems to take the longest during the boot process.

Having a fast USB drive helps. I have a PNY Mini Attache 16GB, and it's not horrible. I also have a PNY Micro Attache 32GB, and it's horribly slow.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cirago USB 2.0 External Portable Hard Drive 80 GB CST1080 Kronus980 Linux - Hardware 15 03-20-2012 12:49 AM
'Portable' linux to external USB hard disk? heycarnut Linux - Newbie 12 11-14-2011 09:45 AM
Easy-Portable external USB-drive Linux system armandino Linux - Hardware 2 02-10-2009 02:16 PM
need a portable linux distro to bring on portable usb hard drive... pippo17 Linux - Distributions 3 10-20-2008 06:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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