PDA

View Full Version : DD for boot slice?


Pent
02-08-2003, 04:56 PM
Uh ... what parameters will I need to re-image my boot slice

Obviously dd if=newboot.img of=/dev/hdx6 isn't working quite right.

PS: This is for a Series 2 SA ... yes I know about the boot PROM issue.

Thanks in advance

mrblack51
02-08-2003, 05:02 PM
did you make sure that your active system is on hdx7? if its on hdx4, then your kernel partition would be hdx3

Pent
02-08-2003, 06:30 PM
Yes ... is it just straight dd if=newboot.img of=/dev/hdx6 ??

I tried taking the image off and putting it straight back on unmodified and it doesn't like that. Seems to me straight DD is wrong

mrblack51
02-08-2003, 09:12 PM
well, it works. i assume for the backup you did a dd if=/dev/hdx6 of=/path/to/myimage.img

Pent
02-09-2003, 02:07 AM
Yep ... thats what I did for a backup ... but the restore doesnt work. I have a good backup I made with MFSTools and this is my scratch drive so I'm cool .... just not certain why I can't get a restore to work. :)

==

Got the original to work ... my PROM has been modified with the ideas noted here but the new kernel simply makes the machine reboot. Not sure where I messed up. Hmm ...

geowar
02-28-2003, 02:14 PM
You could hexdump the before (good) & after (bad) /dev/hdx6 partitions and visually compare them to verify that the dd worked as expected. I don't remember the bigfoot command offhand. od? bigfoot --help. ;-)

mrblack51
02-28-2003, 02:27 PM
not sure what the problem was for pent, but i have successfully used dd to backup and restore the original kernel image, as well as using it to restore a modified copy.