Jump to content
4 posts in this topic

Recommended Posts

I transfered my osx installation over to another hard drive using the "recover" function in the disk utility. My result is a perfectly working OSX installation on the other drive, but it won't boot. To boot into it, I need to first boot to the other drive, and then use the rd=disk1s1 darwin boot option to get it to boot off my other drive.

 

Is there any way to transfer the bootstrap over to the other drive? If so, how?

I'm familiar with the "dd" tool for Linux, if that has something to do with it...

 

Thanks.

To copy just the MBR:

 

dd if=/dev/disk<old_disk_number> of=/dev/disk<new_disk_number> bs=446 count=1

 

To copy the MBR and boot sector:

 

dd if=/dev/disk<old> of=/dev/disk<new> bs=512 count=2

 

so which is which that is safe? mbr only or both?

I need a solution to a related issue, if there is one.

 

I have 2 partitions on the same drive that have OS X systems on them. I can boot into either one from the Darwin bootloader.

 

I use Grub to call the Darwin bootloader (or to boot into Linux or WinXP -- the machine has partitions for all of them).

 

Grub is only able to access a Darwin bootloader on one of the two OS X systems. I guess the bootloader did not get installed to the second OS X partition when I set it up. Grub runs from the drive itself, not a partiton.

 

So I just seem to need to copy the boot sector from one of the OS X partitions to the other one, and then Grub should be able to call either of the Darwin bootloaders. Is there a dd command that would copy only the boot sector from one partition to another? Maybe by using an offset= if there is such a thing? Or should I just dd the 2 @ 512 and ignore the fact that it is also grabbing a MBR when there is none (right?) on an individual partition?

×
×
  • Create New...