How to backup a user-space data from a dead computer (HDD functional)
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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).
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!?
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.
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)!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.