123Macmini.com
FAQFAQ   SearchSearch   MemberlistMemberlist   GalleryPhoto Gallery   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hard Drive Upgrade Problem AppleTV.....FINALLY SOLVED!!!
Goto page 1, 2  Next
 
Post new topic   Reply to topic    123Macmini.com - Forums Forum Index -> Apple TV
View previous topic :: View next topic  
Author Message
MonroeMac
New Member
New Member


Joined: 24 Aug 2006
Posts: 17
Location: Monroe, Washington

PostPosted: Fri Feb 01, 2008 8:37 am    Post subject: Hard Drive Upgrade Problem AppleTV.....FINALLY SOLVED!!! Reply with quote

Hi all!

I'm trying to upgrade the HD in the AppleTV......I am following the procedure spelled out in the "Engadget" article here:

http://www.engadget.com/2007/03/23/how-to-upgrade-the-drive-in-your-apple-tv/

All seems to be ok until the last step, where it says "last, we format the drive"
At this step, it has you type in : diskutil eraseVolume "Journaled HFS+" Media /dev/disk2s4

After I do this, I get this: diskmanagement setuid-tool failure

What????

Is there something I'm missing(probably)??
Am I typing in the string wrong? Here is exactly how I'm doing it:

diskutil (space) eraseVolume (space) "Journaled (space) HFS+" (space) Media (space) /dev/disk2s4

So it looks like this: diskutil eraseVolume "Journaled HFS+" Media /def/disk2s4

Is this correct??
Also....do you need to format the new drive a certain way(guid maybe)before you try all this?

I'm kinda lost....can anyone help??

Thanks! Smile

Drew


Last edited by MonroeMac on Tue Feb 05, 2008 8:53 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
hackersmovie
Veteran Member
Veteran Member


Joined: 07 Nov 2006
Posts: 3173
Location: Maryland, U.S.A

PostPosted: Fri Feb 01, 2008 9:47 am    Post subject: Reply with quote

did you try it without the spaces? I don't remember ever using spaces in Terminal. I haven't used it much though. Just a thought.
_________________
Digital Marketing For Small Business
Digital Marketing Forum
Mac Repairs & Upgrades
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MonroeMac
New Member
New Member


Joined: 24 Aug 2006
Posts: 17
Location: Monroe, Washington

PostPosted: Fri Feb 01, 2008 10:43 am    Post subject: Reply with quote

Yeah, I tried it without spaces...no luck. I'm starting to think to try copying to the new drive by leaving out the "count=1335" and copy the entire 37GB instead of the 1.4GB.

BTW...I don't understand that command? Where does the 1335 come from??

This is the first time I've used Unix/Terminal but I've gotten to the end, almost Rolling Eyes

Drew
Back to top
View user's profile Send private message Send e-mail
stupkid
Member
Member


Joined: 28 Dec 2007
Posts: 207
Location: Fort Worth, TX

PostPosted: Fri Feb 01, 2008 10:47 am    Post subject: Reply with quote

Try running that as root with sudo. So, your command line will look like this:

sudo diskutil eraseVolume "Journaled HFS+" Media /def/disk2s4

You should get prompted for your account's password and assuming that you are setup as an admin account you should be able to perform the operation as root.

Good Luck!

EDIT: Oh, and the count of 1335 is telling DD to write 1335 blocks of 1024k, which I'm guessing is the complete contents of that partition.
Back to top
View user's profile Send private message
MonroeMac
New Member
New Member


Joined: 24 Aug 2006
Posts: 17
Location: Monroe, Washington

PostPosted: Fri Feb 01, 2008 11:53 am    Post subject: Reply with quote

OK....I'll try it with the sudo prefix.
Thanks!

I'm starting to get the hang of unix a bit.......


Drew
Back to top
View user's profile Send private message Send e-mail
MonroeMac
New Member
New Member


Joined: 24 Aug 2006
Posts: 17
Location: Monroe, Washington

PostPosted: Fri Feb 01, 2008 12:02 pm    Post subject: Reply with quote

Just wondering here.........

It also says in print that you could just enter the following commands:

dd if=/dev/disk2 of=/Users/name/AppleTV.img bs=1024k (copy to image)



dd if=/Users/name/AppleTV.img of=/dev/disk2 bs=1024k (copy to new hdd)


And then disconnect and put in AppleTV. Do a sys restore and the new size will be seen.


Will the above procedure work, or was that a prior procedure(before this updated one)?

Thanks for the help!

Drew
Back to top
View user's profile Send private message Send e-mail
MonroeMac
New Member
New Member


Joined: 24 Aug 2006
Posts: 17
Location: Monroe, Washington

PostPosted: Sat Feb 02, 2008 7:58 pm    Post subject: Reply with quote

OK....

I tried the sudo command as suggested. NO luck....

Is there a procedure somewhere that actually works?
Wink

I'm lost here....always the media partition that has trouble!


Drew
Back to top
View user's profile Send private message Send e-mail
Ben Tex
Veteran Member
Veteran Member


Joined: 01 Feb 2007
Posts: 1461
Location: Texas

PostPosted: Sun Feb 03, 2008 12:34 am    Post subject: Reply with quote

MonroeMac wrote:
OK....

I tried the sudo command as suggested. NO luck....

Is there a procedure somewhere that actually works?
Wink

I'm lost here....always the media partition that has trouble!


Drew


I'll help you out line-by-line after the 2.0 software comes out. To be honest, I would wait until then anyways. I had a ton of trouble with my 120GB HDD upgrade after 1.1.1 came out. And chances are, this update will be more drastic. I also need to look over the commands again. It's been a while. Laughing
Back to top
View user's profile Send private message
MonroeMac
New Member
New Member


Joined: 24 Aug 2006
Posts: 17
Location: Monroe, Washington

PostPosted: Sun Feb 03, 2008 12:58 am    Post subject: Reply with quote

Hey Ben_tex,

Man, I'll gladly take you up on that! I'm really frustrated with this!

I think there's gotta be something simple here.....But this is my first time with Terminal/Unix.

This is a setup for my autistic daughter's room......she loves her movies!!!
Happily, I put the original hdd back in and it is fine.

So if it's ok with you, I'll wait till after the software upgrade and get in touch?

Thanks again,

Regards, Drew
Back to top
View user's profile Send private message Send e-mail
Ben Tex
Veteran Member
Veteran Member


Joined: 01 Feb 2007
Posts: 1461
Location: Texas

PostPosted: Sun Feb 03, 2008 1:02 am    Post subject: Reply with quote

I think that is the smart move. I'll post the commands in this thread once I get it going. You can PM me if I forget. I tend to do that from time to time.
Back to top
View user's profile Send private message
xDVST8x
New Member
New Member


Joined: 03 Feb 2008
Posts: 4

PostPosted: Sun Feb 03, 2008 10:49 am    Post subject: Apple TV 1.1 Reply with quote

i have been having the same issues with my Apple TV 1.1 - all the info out there on upgrading the drive DOES NOT WORK.

however i have been able to make a copy of my 40gig drive and load it into my 160gig drive.. using the dd command WITHOUT the count=1335.

i did a system restore.. and guess what - still 40 gig!

so right now i am about to resize the media partition manually with diskutil - if this doesnt work i guess i with buy ipartition.. and if that doesnt work.. lol - then im putting my 40gig back in.. i got NAS anyway..
Back to top
View user's profile Send private message
xDVST8x
New Member
New Member


Joined: 03 Feb 2008
Posts: 4

PostPosted: Sun Feb 03, 2008 11:17 am    Post subject: UPDATE---Apple TV 1.1 Hard Drive Upgrade Reply with quote

Finally!! here is what i did - and it WORKS!

replace X with your correct drive number

1.) dd if=/dev/diskX of=./AppleTV.dmg bs=1m
--this will take about 90 minutes with a usb2 harddrive adapter

2.) diskutil eject diskX

3.) change/remove your 40gig drive and plugin in your new drive.

4.) dd if=./AppleTV.dmg of=/dev/diskX bs=1m
--this will take about 90 minutes with a usb2 harddrive adapter

5.) make sure you can see the OSBoot & Media Partitions on your desktop
(this means they are mounted.)

6.) diskutil resizeVolume /dev/diskXs4 limits

it should print somthing like this:
For device disk1s4 Media:
Current size: 38474752000 bytes
Minimum size: 1199960064 bytes
Maximum size: 158508855296 bytes

note the maximum size.
MAKE SURE YOU USE A CAPITAL B at the end of the maximum size number.

now type:

7.) diskutil resizeVolume /dev/diskXs4 158508855296B

this should only take a few minutes or seconds.. depending....

now:

8.) diskutil eject diskX

9.) install back into your Apple TV and you should be upgraded!!!!!!


my hardware:
Mac Mini 1.83Ghz Core 2
OS 10.5.1
Apple TV 1.1 (factory image of: 1.1)
Hitachi 160GB PATA 2.5" Hard Disk
Rocket Fish USB 2.0 2.5" HD Enclosure ($50 USD @ best buy)


peace out.
Back to top
View user's profile Send private message
Ben Tex
Veteran Member
Veteran Member


Joined: 01 Feb 2007
Posts: 1461
Location: Texas

PostPosted: Sun Feb 03, 2008 1:00 pm    Post subject: Re: UPDATE---Apple TV 1.1 Hard Drive Upgrade Reply with quote

xDVST8x wrote:
Finally!! here is what i did - and it WORKS!

replace X with your correct drive number


That is the long way (time wise), but it will work. Nice job of putting it together. It should be easy enough for most people to follow. I would just add the "diskutil list" command at the beginning to get your disk numbers in order. Maybe a step "0.)". Smile
Back to top
View user's profile Send private message
Ben Tex
Veteran Member
Veteran Member


Joined: 01 Feb 2007
Posts: 1461
Location: Texas

PostPosted: Sun Feb 03, 2008 8:05 pm    Post subject: Reply with quote

I was doing a little messing around this afternoon. Like I said before, it's really been a while since I've messed around hacking the old Apple TV. I ran into trouble with the above procedure.

I had to go this after xDVST8x's step 4:

diskutil list
diskutil eject diskX

gpt recover diskX
diskutil eject diskX

gpt remove -i 4 diskX
diskutil eject diskX

gpt show diskX
diskutil eject diskX

gpt add -b 2732016 -i 4 -t hfs /dev/diskX
diskutil eject diskX

Put the drive into your Apple TV and do a factory restore.

I would also recommend adding this to step 0. It's the proper way to format your new drive:

gpt destroy /dev/diskX
gpt create /dev/diskX
Back to top
View user's profile Send private message
xDVST8x
New Member
New Member


Joined: 03 Feb 2008
Posts: 4

PostPosted: Mon Feb 04, 2008 11:55 am    Post subject: Reply with quote

if you do it the long way.. you do not have to mess with with deleting and creating any partition tables...

for me using apple tv v1.1 & 10.5.1 on my mac mini i was unable to format the new media partition it would screw up the whole disk and renumber the other partitions!!


so.. i know its the long way.. but just do a complete disk image and restore to new disk, then simply resize the the media partition (s4)

in the long run for most people this is going to be the fastest way.. plus if the drive ever crash's you have a FULL backup of your Apple TV 1.1 drive!!



i really dont think that the fast copy using the count=1335 works on apple tv 1.1.. or maybe its my version of OSX (10.5.1) that is not compatible with the faster process!?? i dont know..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    123Macmini.com - Forums Forum Index -> Apple TV All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



      

Shop:  Apple Store  |  Refurbished Macs  |  Refurbished iPads  |  MacConnection  |  Mac Mini Vault  |  Other World Computing

MK 1 Studio Mac mini Racks  |  Crucial Mac Memory  |  Top Free Mac Apps  |  Top Paid Mac Apps



123Macmini.com is an independent publication and has not been authorized, sponsored, or approved by Apple Computer, Inc.
All logos and trademarks in this site are property of their respective owners.
Copyright © 2011 123Macmini.com. All Rights Reserved.