LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-15-2012, 09:12 PM   #1
linuxPCplus
Member
 
Registered: Apr 2012
Location: Carlisle, Iowa, USA
Distribution: This changes often, but currently Bodhi 2.2
Posts: 84

Rep: Reputation: Disabled
2 hard drive setup


Ok, so I want to install Ubuntu on my 80gb internal HDD on my laptop and use this drive to exclusively hold the OS & software. I want all of my files to be stored on an external HDD which stays connected at all times.
When I install new software, I want want it to automatically install on the internal drive, when I create a file, I want it saved to my external. Now, of course I know I can always choose where to save a file. But I want to cut a couple steps by avoiding the need to navigate to my external HDD every time I want to save a file.
Does anyone know if such a setup is possible?

Last edited by linuxPCplus; 12-19-2012 at 09:19 AM.
 
Old 12-15-2012, 09:40 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,613

Rep: Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439
One possibility is to create a directory on the external and symlink (symbolic link) to it from your home folder.

For example, I created a "downloads" directory on an external, created a symlink to it in /home/[username], and set my browser to point to /home/[username]/downloads (the symlinked directory) as the default downloads directory; downloads get saved to the external.

See man ln for more on symlinks.

You could do the same for your documents, pictures, or any other directory.

I would not recommend pointing to the external as your entire home directory. If it fails or gets disconnected, that would be a bad thing.

Last edited by frankbell; 12-15-2012 at 09:44 PM. Reason: Clarity
 
Old 12-15-2012, 10:22 PM   #3
linuxPCplus
Member
 
Registered: Apr 2012
Location: Carlisle, Iowa, USA
Distribution: This changes often, but currently Bodhi 2.2
Posts: 84

Original Poster
Rep: Reputation: Disabled
Good idea

Symlinks are a good idea. I should have thought of that one. As for the safety issue you mention, only accidental disconnection is an issue since I automatically backup to my SpiderOak account anyway. So I know that anything more than say 5 minutes old is backed up & recoverable.
Thanks for the help Frankbell!
 
Old 12-16-2012, 11:04 AM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 11,380

Rep: Reputation: 1395Reputation: 1395Reputation: 1395Reputation: 1395Reputation: 1395Reputation: 1395Reputation: 1395Reputation: 1395Reputation: 1395Reputation: 1395
A link to the /home on usb may work.

Could try to just mount a folder or partition on the usb as your /home for your common standard user account. As always, use runas or su, sudo to run root functions like installing software. Root should have the account on the internal so it won't fail if the usb isn't on. Might have to avoid autologin.
 
Old 12-16-2012, 12:22 PM   #5
linuxPCplus
Member
 
Registered: Apr 2012
Location: Carlisle, Iowa, USA
Distribution: This changes often, but currently Bodhi 2.2
Posts: 84

Original Poster
Rep: Reputation: Disabled
More info required

Jefro, that sounds like another great idea. But can you give me more details on how to do this?
 
  


Reply

Tags
hard drives, home directory, storage


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
New Hard Drive Setup Issues (Is there no hope? Should I take the hard drive back?) complete General 2 07-27-2010 01:08 PM
second hard drive setup Coldburn Linux - Newbie 3 08-28-2004 10:43 PM
hard drive setup rfsatxeng Linux - General 2 07-16-2004 03:02 AM
Hard Drive Setup HaTHor Linux - Newbie 2 02-14-2003 04:16 AM
Two Hard drive setup cruse Linux - Newbie 6 01-03-2001 03:35 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration