LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-04-2005, 06:43 AM   #1
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Rep: Reputation: 30
Copying everything locking up


I've written a script to backup everything on my HDD (all partitions) to an external USB drive. My three partitions are /, /usr and /home. However, when backing up / the copy stops for no reason (I didn't note the exact point and don't have time to run it again at the moment).

Is there any reason why I shouldn't be able to copy everything across? Is it an open file thing? It seemed to get a long way through before stopping.

Thanks
 
Old 03-04-2005, 11:00 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Well, copying /proc could be problematic. Also, when copying /, make sure it doesn't go outside the partition. Essentially, you should supply the -x option to the copy operation.
 
Old 03-05-2005, 07:42 AM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
If you think about it, copying files like /dev/random might take a looooooog time! Copying /mnt may well lead to a lengthy recursive nightmare if that is where you have your external disk mounted.

Also, copying / while linux is actually running, may cause you problems as the files are changing all the time. The safest way to backup / is by running a CD only version of linux (like knoppix).
 
Old 03-05-2005, 11:29 AM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Well, using the -x option prevents /dev (on devfs or udev systems, I think), /proc, and mounted drives from being copied. I agree, a livecd may be preferrable, but it should be doable either way.
 
  


Reply



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
Locking down a IP AD griggt Linux - Networking 1 08-25-2005 04:16 AM
RH 9 Locking Up ScooterB Linux - Newbie 2 06-04-2004 04:00 PM
RH keeps locking up synaptical Linux - General 7 07-05-2003 03:22 AM
Locking down everything ldubin Linux - Security 3 03-14-2003 03:29 PM
Red Hat 8.0 locking up when copying packages ferrantepunto Linux - General 4 11-06-2002 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:53 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
Open Source Consulting | Domain Registration