LinuxQuestions.org
Review your favorite Linux distribution.
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 06-11-2011, 06:55 PM   #1
bstaples
LQ Newbie
 
Registered: Jan 2004
Location: Jackson, MS
Posts: 2

Rep: Reputation: 0
copy


How do you copy everything in the home directory to an external drive while running in rescue mode?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-11-2011, 07:04 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

Hi there,

Perform the following steps:

1. Type "fdisk -l" without quotes at server system console. This will list all the partitions (including external drive)
2. You have to do a little bit of guessing works as to which partition say hdb1 or hdc1 or sdb1 or sdc1 can be your external drive partition.
3. Create a folder under /mnt say: mkdir /mnt/external
4. Mount the external drive partition using the following command: mount -t vfat /dev/sdb1 /mnt/external (assuming sdb1 is external drive partition)
5. Copy using the copy command. As you said you want to copy everything in home directory so the command will be: cp -arvp /home/. /mnt/external

I hope this helps.
 
2 members found this post helpful.
Old 06-11-2011, 07:05 PM   #3
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
(deleted for a better answer)
 
0 members found this post helpful.
Old 06-11-2011, 07:06 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Is the external drive mounted?
You could use simply:
cp -a $HOME /mnt/drive/
If your external drive is mounted on /mnt/drive/

Another way is to use tar:
tar -C / -cf - $HOME | tar -C /mnt/drive/ -xf -
 
1 members found this post helpful.
  


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
dow copy copy-protected cds with dd commant gh_D_ir Linux - Software 4 04-01-2011 05:41 PM
CLI copy is greater than GUI copy ?? 0_o killahsmurf Slackware 14 01-04-2006 12:53 PM
boot error after using Copy Commander to copy debian system onto larger new drive Interceptor Linux - Hardware 7 05-04-2003 01:40 PM


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