LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-04-2012, 05:26 AM   #1
rebooted
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Rep: Reputation: Disabled
Unhappy How to backup a user-space data from a dead computer (HDD functional)


Dear experts,

My office Suse-10 based machine is dead (CPU fan dead, not possible to boot). I'm sure that the HDD is fully functional. My question is: how to extract the user data of a specific user as a backup. I can try the following:

- Install this HDD in another Linux machine ("host") and try copying the data to the host.

I have seen guides for cloning an entire partition but none dealing with extracting/copying files.

Will the "host" OS enable me to do this? (I do have the passwords of both admin and user accounts). Do I need some software installed in the "host" OS? Is there a good guide related to doing this?

I am asking this before doing this because if I start in this way, there is no going back because of some administrative issues

Thanks and best regards
 
Old 04-04-2012, 05:31 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
If you su to root, you will have access to the files on the drive. You simply need to mount the partition that has /home on it. (/home may be on it's own partition).

If you use the `cp' command to backup the files, consider the -a (archive) option to preserve the uid & gid & permissions of the files you copy. You might want to use `tar' to archive the user's home partition.

Otherwise, as a regular user, if the UIDs of the users match, you will have access as well.

If the drive is OK, also consider simply using it when the computer is replaced.

Last edited by jschiwal; 04-04-2012 at 05:35 AM.
 
Old 04-04-2012, 06:25 AM   #3
eosbuddy
Member
 
Registered: Feb 2012
Location: India
Distribution: Ubuntu, Fedora, Gentoo, Mandrake, RedHat, CentOs
Posts: 30

Rep: Reputation: Disabled
[a] Add the user on the new machine
[b] Mount the drive
[c]
Code:
rsync -palv /<mountpoint>/home/<userid> /home/<userid>/backup
Update: If the machine had a running database and email server, you will need to backup those too (typically, mysql databases reside in /var/lib/mysql/<userid> and the email would depend on your MTA).

Last edited by eosbuddy; 04-04-2012 at 06:41 AM.
 
Old 04-04-2012, 06:28 AM   #4
rebooted
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks guys,

I'll update when I try this!

Best regards.
 
Old 04-04-2012, 11:01 AM   #5
rebooted
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
This just keeps getting complicated...

On opening up it turned out that the machine has 2 drives in RAID configuration (hopefully RAID 1). Is it possible to recover data from one of them? I guess probably no!?

Best regards.
 
Old 04-04-2012, 11:51 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
We need more information about that. Is it software or hardware RAID. If software then you can easily transfer the disks to a different machine. If hardware than you have to use the same RAID controller on the new machine (a reason why I never use hardware RAID on cheap motherboard-inbuilt controllers), unless it is a RAID 1, in that case each disk should be readable on its own.
 
Old 04-04-2012, 12:10 PM   #7
rebooted
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
We need more information about that. Is it software or hardware RAID. If software then you can easily transfer the disks to a different machine. If hardware than you have to use the same RAID controller on the new machine (a reason why I never use hardware RAID on cheap motherboard-inbuilt controllers), unless it is a RAID 1, in that case each disk should be readable on its own.
I'm afraid it is a hardware RAID (some controller on motherboard). Since the PC is "dead" (non-bootable) its difficult to get more information. I assume it wont hurt the data if I just try to install one of the disks in another linux machine and try to mount it? (if it gives error I will stop at that) The only other option seem to be to get the PC repaired (an expensive option)!

Best regards,
Waqar.
 
Old 04-04-2012, 12:21 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by rebooted View Post
I assume it wont hurt the data if I just try to install one of the disks in another linux machine and try to mount it?
In any case, before doing anything like that, make an image of that disk, so that you can restore the image in case the disk gets corrupted.

By the way, if that is valuable/important data on that machine, shouldn't you have a backup already?
 
Old 04-04-2012, 01:16 PM   #9
rebooted
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
In any case, before doing anything like that, make an image of that disk, so that you can restore the image in case the disk gets corrupted.

By the way, if that is valuable/important data on that machine, shouldn't you have a backup already?
there is, but its a bit dated. Thanks to all of you for your great input, frankly I did not anticipate this much help
 
  


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
Can I create an image of my hdd and store on another computer as a backup? EDDY1 Linux - Newbie 26 01-18-2011 06:33 AM
Backup only user created data thepalsrus Linux - Newbie 4 08-28-2009 02:54 PM
How to share data b/w user space and kernel space nandac Linux - Kernel 1 11-28-2006 11:15 PM
Syncing real hdd space with proftpd mod_quotatab_sql data qQsh Linux - Software 0 03-13-2005 11:48 AM
give limited space on hdd per user nukeu666 Linux - General 2 08-12-2004 07:48 AM


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