I ran through the procedure to upgrade by hard drive (had old and new Hard drives hooked up to computer via USB.) As you can see the original AppleTV hard drive was /dev/disk2. When I run the last command "diskutil eraseVolume "Journaled HFS+" Media /dev/disk1s4", I never get back the terminal prompt. I have done the procedure twice.

HELP! Please!!!

My-Mini:~ sfuser$ dd if=/dev/disk2 count=1335 of=/dev/disk1 bs=1024k
1335+0 records in
1335+0 records out
1399848960 bytes transferred in 2023.876793 secs (691667 bytes/sec)
My-Mini:~ sfuser$ diskutil list
/dev/disk0
#: type name size identifier
0: GUID_partition_scheme *74.5 GB disk0
1: EFI 200.0 MB disk0s1
2: Apple_HFS Macintosh HD 74.1 GB disk0s2
/dev/disk1
#: type name size identifier
0: GUID_partition_scheme *149.1 GB disk1
1: EFI 34.0 MB disk1s1
2: 400.0 MB disk1s2
3: Apple_HFS OSBoot 900.0 MB disk1s3
4: Apple_HFS 36.0 GB disk1s4
/dev/disk2
#: type name size identifier
0: GUID_partition_scheme *37.3 GB disk2
1: EFI 34.0 MB disk2s1
2: 400.0 MB disk2s2
3: Apple_HFS OSBoot 900.0 MB disk2s3
4: Apple_HFS Media 36.0 GB disk2s4
My-Mini:~ sfuser$ diskutil eject disk1
Disk disk1 ejected
My-Mini:~ sfuser$ gpt recover disk1
gpt recover: /dev/disk1: recovered secondary GPT table from primary
gpt recover: /dev/disk1: recovered secondary GPT header from primary
My-Mini:~ sfuser$ diskutil eject disk1
Disk disk1 ejected
My-Mini:~ sfuser$ gpt remove -i 4 disk1
gpt remove: /dev/disk1: 1 partition(s) removed
My-Mini:~ sfuser$ diskutil eject disk1
Disk disk1 ejected
My-Mini:~ sfuser$ gpt show disk1
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 69632 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
69672 819200 2 GPT part - 5265636F-7665-11AA-AA11-00306543ECAC
888872 1843200 3 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
2732072 309849703
312581775 32 Sec GPT table
312581807 1 Sec GPT header
My-Mini:~ sfuser$ diskutil eject disk1
Disk disk1 ejected
My-Mini:~ sfuser$ gpt add -b 2732072 -i 4 -t hfs /dev/disk1
My-Mini:~ sfuser$ diskutil eject disk1
Disk disk1 ejected
My-Mini:~ sfuser$ diskutil eraseVolume "Journaled HFS+" Media /dev/disk1s4