LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-22-2004, 01:54 PM   #1
wsrich
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
Moving /home to a USB stick


Is it possible to move the /home directory to a USB stick? Running RH9 at home and at work - would like to have email and user settings move with me.

I have attempted it with little success -- anybody have any ideas?

---scott
 
Old 10-22-2004, 02:05 PM   #2
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Rep: Reputation: 33
I've moved the contents in my /home directory to a USB hard disk once. I mounted the HD and used konqueror to copy everything in my /home directory to the HD for backup. (had to log in as root )

Too bad I still haven't figured out how to move directories through the command line


vxc
 
Old 10-22-2004, 02:29 PM   #3
wsrich
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Original Poster
Rep: Reputation: 0
That isn't really the problem ---

When using apps like evolution, Open Office, mozilla --- user data is stored in the /home directory which is mounted at boot. I need to move this mount to the USB Stick. Errors occur when I attempt to copy symbolic links, boot errors occur due to X11 file locks -- etc. etc.

To copy a directory from the command line ---

cp -R <dir_source> <dir_dest>

Thanks for the help though!!!!
 
Old 10-22-2004, 02:33 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,119

Rep: Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973
Here is something that I believe will fit the bill.

If not already acomplished create a linux filesystem on your USB stick like ext3.
Copy all of the files from your /home to the stick.
Create a script that will detect if the USB if inserted will then mount it to /home. Run the script from rc.local

The advantage would be that if you happen to forget your USB stick or if it fails (Its happened to me) everything will still boot. When you mount the drive to /home your existing /home files will be hidden so if no stick you will still have all of your users configuration files.
 
Old 10-22-2004, 02:47 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,119

Rep: Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973
Shut down x then copy the files.

Hmm... might have to study this a little more.....
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 12:12 PM
copying/moving stalls when moving a lot of data to a usb stick =X= Linux - Hardware 10 07-30-2004 06:29 AM
moving /home to / abu_abdullaah Linux - Newbie 3 07-18-2004 02:15 PM
USB problems: Memorex USB stick 256MB and PSX to USB adapter by Radio Shack Knuckles T15 Linux - Hardware 1 05-19-2004 07:58 PM
Red Hat: Stick with Windows at home lethalinjection Linux - Newbie 1 11-05-2003 04:20 PM

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

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