find solution form crashed, with a new disk
So I have succed to created form a new disk my appletv (the old disk crashed), 20 minutes needed
First plug your new disk on your usb / firewire ports
Open a Terminal
type the command below :
mount
/dev/disk0s2 on / (local, journaled)devfs on /dev (local)
fdesc on /dev (union)
<volfs> on /.vol
/dev/disk0s3 on /Volumes/Untitled (local, read-only)
automount -nsl [247] on /Network (automounted)
automount -fstab [252] on /automount/Servers (automounted)
automount -static [252] on /automount/static (automounted)
/dev/disk1s3 on /Volumes/OSBoot (local, nodev, nosuid, journaled)
/dev/disk1s4 on /Volumes/Media (local, nodev, nosuid, journaled)
The lines on red, are the disk (in my case the old before crash)
diskutil eject disk1
Make a destroy of all the partitons with a :
gpt destroy /dev/disk1
After all gpt command , you will to do a disk eject) , ignore the error message form the graphic interface (click on ignor)
diskutil eject disk1
Create the new disk :
gpt create /dev/disk1
diskutil eject disk1
Do a gpt show for the result (in my case a 40 giga disk)
gpt show /dev/disk1
start size index contents 0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 78140093
78140127 32 Sec GPT table
78140159 1 Sec GPT header
Make an eject disk :
diskutil eject disk1
Create the efi partition :
gpt add -b 40 -i 1 -s 409600 -t efi /dev/disk1
diskutil eject disk1
gpt show /dev/disk1
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 77730487
78140127 32 Sec GPT table
78140159 1 Sec GPT header
diskutil eject disk1
Create the partition , use the gpt show in order to build the exact size , in my case
409640
gpt add -b
409640 -i 2 -s 819200 -t 5265636F-7665-11AA-AA11-00306543ECAC /dev/disk1
A little disk eject
diskutil eject disk1
A gpt show, for check
gpt show /dev/disk1 start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 819200 2 GPT part - 5265636F-7665-11AA-AA11-00306543ECAC
1228840 76911287
78140127 32 Sec GPT table
78140159 1 Sec GPT header
Again an eject
diskutil eject disk1
Create the third partition
gpt add -b
1228840 -i 3 -s 1843200 -t hfs /dev/disk1
diskutil eject disk1
gpt show /dev/disk1
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 819200 2 GPT part - 5265636F-7665-11AA-AA11-00306543ECAC
1228840 1843200 3 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
3072040 75068087
78140127 32 Sec GPT table
78140159 1 Sec GPT header
diskutil eject disk1
gpt add -b
3072040 -i 4 -s
75068087 -t hfs /dev/disk1
diskutil eject disk1
gpt show /dev/disk1 start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 819200 2 GPT part - 5265636F-7665-11AA-AA11-00306543ECAC
1228840 1843200 3 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
3072040 75068087 4 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
78140127 32 Sec GPT table
78140159 1 Sec GPT header
four new partitons have been created
Now we will build the disk :
Tape the following command :
newfs_hfs /dev/disk1s2
Normaly you will have a message like :
Initialized /dev/rdisk1s2 as a 400 MB HFS Plus volume
Tape the following command :
newfs_hfs -J -v OSBoot /dev/disk1s3
New message like :
Initialized /dev/rdisk1s3 as a 900 MB HFS Plus volume with a 8192k journal
newfs_hfs -J -v Media /dev/disk1s4
Message like :
Initialized /dev/rdisk1s4 as a 36 GB HFS Plus volume with a 8192k journal
diskutil eject disk1
Restore you dmg file by the disk utiliy (more easy), with a dmg 1.0 from the net (torrent ...) on OSBOT Partition (OS-dot-DMG 1.0.dmg : 197 mo)
After that, on the terminal windows ; type the mount command
mount
/dev/disk0s2 on / (local, journaled)
devfs on /dev (local)
fdesc on /dev (union)
<volfs> on /.vol
/dev/disk0s3 on /Volumes/Untitled (local, read-only)
automount -nsl [247] on /Network (automounted)
automount -fstab [252] on /automount/Servers (automounted)
automount -static [252] on /automount/static (automounted)
/dev/disk1s3 on /Volumes/OSBoot (local, journaled)
/dev/disk1s4 on /Volumes/Media (local, nodev, nosuid, journaled)
You two partitions : OSBoot and Media ,
The last thing to do, is to copy the boot efi, make sure that OSBoot, is the only partiotn name like that (no OSBoot 1, or 2), make the command below :
sudo bless --folder=/
Volumes/OSBoot/System/Library/CoreServices
--file=/
Volumes/OSBoot/System/Library/CoreServices/boot.efi --setBoot
Type your password
Now you can connect you hard drive on your appletv, an it is working.
You can visit this site for more explications :
http://smallnum.blogspot.com/2008/02/re-creating-apple-tv-from-scratch.html