LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Closed Thread
 
Search this Thread
Old 05-29-2013, 03:16 PM   #1
manuel19
Member
 
Registered: May 2010
Distribution: Fedora Core 8 (Werewolf)
Posts: 40

Rep: Reputation: 0
Unhappy Boot failed after disk image restore using DD


Hi. I have a Desktop computer with 10GB of Hard disk.
I have been using my desktop PC since 2 years ago.

1 Month ago I Made a full backup using DD.

I did this:

dd if=/dev/sdb of=/media/ExternalHDD/sdb.img

Yesterday I accidentatly I drop a glass of water and now my computer mainboard is Burned.

Today I bought a new desktop PC and I tried to restore the backup image from my old desktop.

I did this:

dd if=/media/ExternalHDD/sdb.img of=/dev/sda

When the restored is done, I boot the desktop but when the kernel is uncompressing....booting...blah,blah,bla..h.. at the end it says something like:
...etc
.."can't mount new root"
..etc
"Booting failed"

I don't know why I get this error :S

Maybe is because my previous system was using /dev/sdb and now the new one is using /dev/sda ?

I really don't know.
Please, I need you help.
 
Old 05-29-2013, 03:40 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
Quote:
Originally Posted by manuel19 View Post
Maybe is because my previous system was using /dev/sdb and now the new one is using /dev/sda ?
Most likely this is the case. Start your system from a live-CD/USB, mount that partition and edit the file /etc/fstab on that partition. Just change any occurrence of sdb to sda and try it again.
 
Old 05-30-2013, 09:57 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,545

Rep: Reputation: 238Reputation: 238Reputation: 238
It probably is an fstab issue. If it contains /dev/sd?# entries instead of the UUID of the partition, then it probably gets assigned a different /dev/sd?# location by the motherboard at boot. My desktop is like that because I have IDE (PATA) and SATA drives attached. It is always flip flopping the /dev/ names of the drives on boot. UUIDs are the way to go.


# blkid /dev/sda1

or something like that to get the UUID value.


and use:
UUID=00000008-0004-0004-0004-000000000012 / ext3 rw,errors=remount-ro 0 1
instead of:
/dev/sda1 / ext3 rw,errors=remount-ro 0 1
for the fstab entry (/etc/fstab).


Or whatever applies in your case. Replace with the actually UUID and double check for typos. You will likely need to change the bootloader to use the UUID as well. With a root=UUID=ffffffff-ffff-ffff-ffff-ffffffffffff instead of root=/dev/sda1 for the bootloader in terms of options passed to the kernel. And hopefully that does you good. If you're using a distros kernel and it's not ancient you should be mostly okay.
 
1 members found this post helpful.
Old 05-30-2013, 02:51 PM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 11,731

Rep: Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445
I agree with the others. DD is best for exact hardware copies and fails on some system changes.

When you make an exact bit by bit copy some very specific data is also copied. Grub and other loaders along with any other mount information may now be wrong. Some drastic changes with the size of the drive or other features of this new machine could also affect.


If you did manage to get a good clone, you should easily be able to get data off it. I mount a dd'd image with qemu.
 
Old 06-12-2013, 12:06 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,464
Blog Entries: 54

Rep: Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


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
restore a hard disk from an image possibly automatically cccc Linux - Networking 1 06-18-2011 02:18 PM
Restore LVM disk from image, made by dd tolsty7 Linux - General 4 07-12-2010 02:00 AM
[SOLVED] Restore system with RAID1, one failed disk junkjunk Linux - General 5 07-08-2009 10:14 AM
clonezilla clone disk to image, when restore from image to destination hdd problem. hocheetiong Linux - Newbie 3 05-06-2008 07:59 PM
restore hard disk from several splitted files by Partition Image powah Linux - Software 4 03-11-2008 10:03 PM


All times are GMT -5. The time now is 01:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration