LinuxQuestions.org
Visit Jeremy's Blog.
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 06-04-2013, 08:36 PM   #1
windstory
Member
 
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.

Quote:
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,404

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
windstory
Member
 
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
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,602

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
You can try:
Code:
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
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Thanks for replies.

I fixed this by installing "grub".
 
  


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
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


All times are GMT -5. The time now is 04:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration