LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-09-2014, 12:13 PM   #1
Pumper
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Rep: Reputation: 0
Problem W/Tar restore


Hi,
I am trying to do a tar restore to a new ssd.
Message> No such drive UUID#----
and hd1 cannot get C/H/S

I did a full system back of the HD W/command>>
tar -cvpf /backups/backups.tar --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=backups

I changed the drive in bios from IDE to SSD and did a sussessful net install
of Debian7 from the same disc that I used on the HD.

I restored to / with the command>>
tar -xvpf /backups.tar

Upon reboot I got the above message.
After 3 minutes I got the screen to choose a normal boot or
a recovery boot. Both options brought me back to the messages and
finally the boot option screen.

I did not let the install do any upgrades.The kernal from install is
3.2.0-4-amd64 and had been upgraded to 3.3.60. Could that be a problem.
Maybe I should not have excluded sys.

Any help would be appreciated. I wanted to avoid all of the network, printer connections, LO 4.0 and nightly setups.

Thank You in advance,

Pumper
 
Old 11-10-2014, 05:54 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,708

Rep: Reputation: Disabled
Likely you have overwritten your /boot directory, the UUID would be that of your old disk.
Try using a 'live' distro to check your installed system.
 
Old 11-10-2014, 08:09 AM   #3
Pumper
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thank You Fatmac,

What I need to know is how to use the tar. backup to restore this.
It seems that it did do what you said.
Pumper
 
Old 11-10-2014, 08:46 AM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
You can't use the tar backup to fix the problem. Boot a live distro, determine the UUID of your SSD's partition, then modify /boot/grub/grub.cfg on your SSD to use the SSD's UUID.
 
Old 11-10-2014, 10:06 AM   #5
Pumper
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks RockDoctor,

Seems like I am getting some where now.
Not sure how to use the live distro though.
I have a dvd w/net install. Will that work.
How do I get to a terminal from that or what ever.

Thank You,
Pumper
 
Old 11-10-2014, 02:35 PM   #6
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,708

Rep: Reputation: Disabled
A net-install 'live' disk should work, as it will likely have a basic set of programs.
Boot up with the 'live', then try mounting your internal drive.
(mount /dev/sda1 onto /mnt)
Code:
mount /dev/sda1 /mnt
Then use the editor, nano or vi, to open /mnt/boot/grub/grub.cfg so that it points to your SSD.
Code:
nano /mnt/boot/grub/grub.cfg
(If you aren't sure, try /dev/sda1)
Save & exit, then reboot, hopefully, from your SSD.

Last edited by fatmac; 11-10-2014 at 02:37 PM.
 
1 members found this post helpful.
Old 11-10-2014, 08:50 PM   #7
Pumper
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks fatmac, that did it.

Just mine was /boot/grub/grub.cfg
 
  


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
tar: restore only non-hidden files during a restore of /home Alan_ Linux - Newbie 4 05-25-2014 07:10 PM
tar restore issues munir6 Linux - Newbie 9 04-25-2014 01:36 PM
sbackup restore will not work with ubuntu 10.10, TAR problem. Bob Appleby Linux - Software 4 05-24-2011 09:12 AM
Restore with tar activeq Linux - Software 2 01-09-2007 07:39 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 03:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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