Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-11-2011, 05:55 PM   #1
LQ Newbie
Registered: Jan 2004
Location: Jackson, MS
Posts: 2

Rep: Reputation: 0

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, 06:04 PM   #2
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ 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, 06:05 PM   #3
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

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

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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.


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 04:41 PM
CLI copy is greater than GUI copy ?? 0_o killahsmurf Slackware 14 01-04-2006 11:53 AM
boot error after using Copy Commander to copy debian system onto larger new drive Interceptor Linux - Hardware 7 05-04-2003 12:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration