LinuxQuestions.org
Help answer threads with 0 replies.
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 12-15-2009, 12:45 PM   #1
Crashogre
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Rep: Reputation: 0
Installing Programs to usb external HDD?


Is there a way to install programs to an external usb hdd? What I would like to do is to install those programs that are nonessential on the Usb drive while keep those I use most often on the internal laptop drive. Thus if I were to install a game in Linux it would be on the external drive while Openoffice and such would be installed to the laptop hard drive.
I have no problems mounting the USB drive, however I am unsure if my scheme is possible.

I am using Ubuntu 9.10 with Gnome and Linux Mint. is there perhaps a switch in apt?

Thanks.
 
Old 12-15-2009, 01:44 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958
It's not something that's easily done. The apt packages are programmed to install their files to specified locations. In addition, these files are often scattered around the file tree, rather than a single directory.

You would probably have to manually rebuild the programs from source with different configuration options; which makes integration with the packaging system more complicated. It's not impossible, but it's probably more trouble than it's worth.
 
Old 12-19-2009, 09:40 PM   #3
Crashogre
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks, I guess I will just use it to hold datat and the windows programs I run under wine.
 
Old 12-20-2009, 03:02 AM   #4
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Blog Entries: 24

Rep: Reputation: 43
Quote:
Originally Posted by David the H. View Post
It's not something that's easily done. The apt packages are programmed to install their files to specified locations. In addition, these files are often scattered around the file tree, rather than a single directory.

You would probably have to manually rebuild the programs from source with different configuration options; which makes integration with the packaging system more complicated. It's not impossible, but it's probably more trouble than it's worth.
Actually, there is another approach you could take, which would be to have space on your external hard drive map to certain directories on your system. For example, you could have two file-systems on your external hard-drive: one could be mounted as /usr/games and /usr/share/games. Once they are mounted, your package manager can't tell the difference, and will install files to these locations as though they were on your regular drive. This could be automated too through fstab. And thus a lot of game binaries and data would reside on the external hard drive, though possibly not everything, such as some back-end libraries.

This actually isn't very difficult at all, though you would need to learn about mounting filesystems and about fstab.
 
  


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
[SOLVED] Removing Grub from internal HDD and installing it only on external hdd M3GA8U5H Linux - Newbie 5 08-07-2009 01:47 AM
Installing LILO on a USB external hdd himrockffan Linux - Software 4 07-09-2009 07:05 PM
Installing / Uninstalling to External USB HDD pashabear Linux - Hardware 1 03-11-2007 09:09 AM
Installing to an external usb hdd wu_ Slackware - Installation 1 11-11-2006 01:14 AM
Installing FC3 to External USB HDD - Please Help enochgenesis Fedora 5 12-14-2004 10:20 AM


All times are GMT -5. The time now is 11:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration