davilla / atvusb-creator

Automatically exported from code.google.com/p/atvusb-creator
26 stars 53 forks source link

Restore: cannot no factory restore only penbuntu login #455

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have messed up the PATA disk and am trying to restore the whole thing. 
regardless of 
whether I insert the patchstick or not, the aTV always boots into an penbuntu 
login prompt. 
2. Previously, I installed linux on the PATA deive directly, but I want do the 
a factory restore now. 
I did the following which I figured would wipe/format the entire disk:
dd if=/dev/zero of=/dev/sda bs=4096 count=1M
after that I created the 4 partitions as described in the Restore section. I'd 
imagine by now it 
shouldn't be booting into penbubtu, right? 
3. when booting with the patchstick, the following error appears:
error mounting OSBoot partitions
umount: cannot umount /OSBoot/mnt: No such file or directory

What is the expected output? What do you see instead?
for some reason, I think the PATA drive still is not completely wiped properly. 
by using the 
patchstick, is it actually possible to restore from my situation?

What version of the product are you using? On what operating system?
patchstick (1.0.b10) is made on OSX 10.6.2 from which I telnet into the aTV.

Please provide any additional information below.
if I have left out any info required I will of course gladly provide it.

Original issue reported on code.google.com by dimitriv...@gmail.com on 10 Jan 2010 at 4:34

GoogleCodeExporter commented 9 years ago
I repartitioned the PATA disk by following the steps outlined in the 
partitioning linux with the exception of 
creating the linux ext3 partition and the swap partition .  instead I created 
the MEDIA partition:
parted -s /dev/sda mkpart primary HFS 75M 40.0GB
this has now left me in a situation where it no longer boots into linux. 
I am now once again stuck at trying to restore the PATA disk to its original 
state. 
as there's nothing to back-up, I start out at the Ooops... section. I have 
downloaded, dmg2img-ed the most 
recent version of the atv dmg file and mounted it.
I also created the staging directory up until the point of editing the 
com.apple.Boot.plist file.
I think none of the changes have been copied to the USB Recovery partition yet 
and I can't see how that's done 
from the wiki. 
the wiki says:
Done, the contents of the directory "staging" can now be copied to the "backup" 
partition on your Linux USB 
pen rescue disk. Proceed to the Restore section above.

when I proceed to the restore section, (I think I have to proceed to:)
Mount and copy the original contents of "Recovery" from your "backup" partition 
into the newly created 
"Recovery" partition.
because I have already repartitioned the entire PATA disk. 
this is where I am lost.

Original comment by dimitriv...@gmail.com on 10 Jan 2010 at 2:19

GoogleCodeExporter commented 9 years ago
I should add that I'm doing the Oops.. section bit in an ubuntu VMware 
environment (as stated in the wiki).  all 
copying that is done is done into the root directory of ubuntu and not to the 
USB drive.

Original comment by dimitriv...@gmail.com on 10 Jan 2010 at 4:27

GoogleCodeExporter commented 9 years ago
anyone care to lend a helping hand?

Original comment by dimitriv...@gmail.com on 11 Jan 2010 at 9:06

GoogleCodeExporter commented 9 years ago
OK, I'm  going to use this for my own purposes now, so that I can note where 
I'm 
stuck:
made the linux penboot stick with only the atvrecv partition, added the ext3 
(backup) 
partition and manually copied over the files from the staging directory:
boot.efi
BootLogo.png
com.apple.Boot.plist
mach_kernel.prelink
OS.dmg

when I get to the point of "Mount and copy the original contents of "Recovery" 
from 
your "backup" partition into the newly created "Recovery" partition."
I am able to mkdir src dst, but I get an invalid argument error when mounting 
/dev/sdb2 src

I think all theat needs to be done is getting the 5 files copied over to 
/dev/sda2 
(Recovery partition) and reboot the aTV, right? 

Original comment by dimitriv...@gmail.com on 12 Jan 2010 at 9:43