Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-04-2013, 08:36 PM   #1
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
not boot after diskcopy by dd

I've copied ScienceLinux x64 from 30g hard to 160 hard using "dd" command.

dd if=/dev/sda of=/dev/sdb1 bs=4096 conv=notrunc,noerror
After rebooting, I can see only blinking white curor on upper left coner.
Old 06-04-2013, 09:02 PM   #2
Ser Olmy
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 2,468

Rep: Reputation: Disabled
You copied the entire contents of the first disk (sda) into a partition on the 2nd disk (sdb1). That will not work.

The blinking cursor if probably either a result of there being a Master Boot Record in the first block of /dev/sdb1, or a symptom of a missing MBR on /dev/sdb.
2 members found this post helpful.
Old 06-04-2013, 10:27 PM   #3
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Please let me know how to fix "a missing MBR on /dev/sdb".
Old 06-05-2013, 06:42 AM   #4
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,711

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
You can try:
dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror
Note the difference. sdb will now be an image of sda.

The problem with copying a whole disk to a partition is that the partition definitions get lost as they become data blocks on the destination partition. You no longer have valid filesystems on sdb1, instead, the blocks that would have become the filesystem header will be the partition table copied from sda. Now, this IS similar to an extended partition, but because it is copied from sda, the partition is not identified as an extended partition, and may have a slightly different layout.
2 members found this post helpful.
Old 06-05-2013, 06:54 AM   #5
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Thanks for replies.

I fixed this by installing "grub".


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
Does Linux have an equivalent to Diskcopy? Trouble31 Linux - Newbie 24 10-21-2011 02:19 AM
When I boot my comp. (dual boot sys-Suse 10.1 & Win XP) the first boot stalls. philip niedermeyer Linux - Desktop 5 11-13-2006 07:04 PM
Kind souls: help getting Mandriva install 2 boot? edit boot.ini/grub /boot device or NoMoreReinstallMS Linux - Newbie 1 08-09-2006 05:34 AM
GRUB: How to boot WinXP (NTLDR, NTDETECT.COM & BOOT.INI) from boot partition (EXT2) ? Rayen16 Linux - Software 1 05-25-2006 01:09 PM
Linux diskcopy : I lost it. jimmmac Linux - Newbie 6 10-10-2003 07:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration