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 05-12-2010, 08:56 AM   #1
jec25
Member
 
Registered: Sep 2009
Posts: 34

Rep: Reputation: 15
Installing a back-up file


Hi,
I have a complete back-up file (on tgz) of a hardisk. I have already installed a SuSe Linux system on my computer. Can someone please provide a step by step procedure on how to install this back-up files? I'm totally new to Linux so please be very basic on the procedures. Thank you.
 
Old 05-12-2010, 09:23 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Do you mean of a hard disk or of a file system?

For background for answering your question, please post the output of fdisk -l and df -hT.
 
Old 05-12-2010, 03:08 PM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,167

Rep: Reputation: 889Reputation: 889Reputation: 889Reputation: 889Reputation: 889Reputation: 889Reputation: 889
how did you make the backup (using dd ?)

if it is just a tarball then you can extract it by tar -xvzf file.tgz.

not sure what you mean by install it ?
_______________________

if it is what i think it is the dangerous way of doing it would be:
Code:
cd /; sudo tar -xvzf file.tgz

Last edited by schneidz; 05-12-2010 at 03:12 PM.
 
Old 05-12-2010, 11:00 PM   #4
jec25
Member
 
Registered: Sep 2009
Posts: 34

Original Poster
Rep: Reputation: 15
OK. I'm really new to Linux, so maybe my terminologies maybe wrong. I have a computer with linux and the hard drive crashed. I bought a new one with exactly the same specifications and re-install the SuSe. There is a complete back-up of the hard disk that was saved on a DVD, and I don't know how to make all the contents or software or applications on this back-up file to put it all back to the new hard drive. I hope it made sense.
 
Old 05-13-2010, 02:01 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
It would help if you can tell us how the "complete back-up of the hard disk that was saved on a DVD" was made and if you could list the first few lines of output from tar -tzf whatever.tgz

EDIT: can you post the output of fdisk -l and df -hT as requested earlier?

Last edited by catkin; 05-13-2010 at 02:03 AM.
 
Old 05-13-2010, 10:54 AM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,167

Rep: Reputation: 889Reputation: 889Reputation: 889Reputation: 889Reputation: 889Reputation: 889Reputation: 889
^ without knowing much i am assuming it is not a true image backup using something like dd/ ddrescue but rather a copy of all the files and directories zipped up in a .tgz

if that is the case, i dont think any operating system would have a method of installing it (unless there exists a custom script to copy stuff to the right location). else i think you could manually go thru the directories and copy them where you want them.

if you still have the old hardrive it mite be possible to do something like:
Code:
dd if=/dev/hda of=/dev/hdb # or of=suse.img.iso
altenatively, gparted is a gui that can copy partitions.

Last edited by schneidz; 05-13-2010 at 11:01 AM.
 
Old 05-27-2010, 08:00 PM   #7
jec25
Member
 
Registered: Sep 2009
Posts: 34

Original Poster
Rep: Reputation: 15
Sorry, I had a break and I'm now back to try and fix this. Please find attached picture of the outputs as requested. My main objective is to have a new hard drive out of this backup file. Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	Picture 001.jpg
Views:	6
Size:	162.6 KB
ID:	3685  

Last edited by jec25; 05-27-2010 at 08:02 PM.
 
Old 05-28-2010, 12:53 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by jec25 View Post
Sorry, I had a break and I'm now back to try and fix this. Please find attached picture of the outputs as requested. My main objective is to have a new hard drive out of this backup file. Thanks in advance.
Try /sbin/fdisk -l

You can copy from Kconsole and paste into this thread.
 
Old 05-28-2010, 03:19 AM   #9
jec25
Member
 
Registered: Sep 2009
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Try /sbin/fdisk -l
Cannot open /dev/hde

This is all what's shown.
 
Old 05-28-2010, 03:49 AM   #10
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by jec25 View Post
Cannot open /dev/hde

This is all what's shown.
Maybe you need root privileges. Can you try again as root or, as an ordinary user, try sudo /sbin/fdisk -l
 
Old 05-28-2010, 08:53 AM   #11
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,167

Rep: Reputation: 889Reputation: 889Reputation: 889Reputation: 889Reputation: 889Reputation: 889Reputation: 889
you didnt answer how you created the backup (i am assuming: sudo tar -cvzf file.tgz /)

the reverse process would be: sudo tar -xzf file.tgz -C /
i never done this before; i usually deal with image backups.
if you are able to reinstall and not lose anything i would try it.
______________________

i also asked about gparted.
is your old harddrive plugged in; you can probably do a rite-clik->copy/ rite-clik->paste in gparted

Last edited by schneidz; 05-28-2010 at 09:09 AM.
 
  


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
Delete file, And i can't get it back squirtmph Linux - Newbie 13 03-02-2010 12:19 PM
Deleted log file - how to get back via file descriptor and keep alive? prollocks Linux - General 1 05-29-2009 10:08 AM
back up file system changes after installing a new software pablopla Linux - Newbie 7 12-20-2008 09:07 AM
Getting back to kubuntu after installing windows. Nexxt Linux - General 1 01-11-2007 04:32 PM
installing windows xp back? jorgt Linux - General 4 05-11-2004 04:04 PM

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

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