OSX DVD Player & Superdrive σε εξωτερική θήκη;;;

FaDeR

New member
15 February 2007
96
Έχω βγάλει το Superdrive από το MBP για να προσθέσω δεύτερο SSD στη θέση του.

Το πρόβλημα που παρουσιάστηκε είναι ότι το DVD Player (το software της Apple)
βγάζει ένα μήνυμα σφάλματος όταν βάλω ένα DVD δίσκο μέσα και αμέσως μετά crashάρει!
Προφανώς είναι ρυθμισμένο να περιμένει το Superdrive να είναι συνδεδεμένο με SATA σύνδεση στη παλιά του θέση,
άλλα προγράμματα (πχ VLC) όμως δεν έχουν τέτοιο θέμα.

Ξέρει κανέις τι μπορώ να κάνω για να σταματήσει να βγαίνει αυτό το μήνυμα και το crashάρισμα του προγράμματος;
Ευχαριστώ!
 

FaDeR

New member
15 February 2007
96
Είχα την ελπίδα ότι θα μπορούσα να (αντι)γράψω "λίγο κώδικα" και να ρυθμιστεί... :bigcry:
 

Eki_13

AVClub Addicted Member
18 June 2006
2,208
Υπαρχει λύση. Για δες και πες μου

Apple's DVD-Player app and iDVD are by default linked with the internal Superdrive. That's why you get the -70012 error.

In order to use the Superdrive externally using Apple software it is necessary to tell your Mac that the drive is not internal anymore.
Download a hex editor like the free software 0xED by Suavetech. Navigate with your Finder to the following file on you main hard drive: /System/Library/Frameworks/DVDPlayback.framework/Versions/A/DVDPlayback

For safety reasons it would be advisable to copy the file DVDPlayback to a backup folder.
Now open the file with 0xED. Press cmd+F to open a search window. Enter "Internal" without the " in the search field and "External" in the replace field and click on replace all. Afterwards there should be a little info saying that 4 changes have been made.

Now go to File -> Save as and save the file to your desktop. Close 0xED and move the edited file back to the initial folder (/System/Library/Frameworks/DVDPlayback.framework/Versions/A/)
You will be prompted to enter your system password. Now plug your Superdrive into the USB port (if not already plugged in). It should now be successfully initialized and ready for use with all your applications.
 

tmjuju

Administration Team
Staff member
21 January 2007
21,651
Ένα replace είναι, εύκολος ο παραπάνω τρόπος…

χμμμμμ.... σκριπτάκι …
perl έχεις ?
δηλαδή μήπως και για script πάλι κάτι θα έπρεπε να κατεβάσεις?
Δοκίμασε κάτι σαν αυτό σε ένα backup-copy του αρχείου:
Το γράφεις σε ένα editor και το τρέχεις από γραμμή εντολών

#!/bin/sh
perl -e '
open(FILE,"file.old"); # file.old is source data file
binmode(FILE); # binmode stops any ascii translation
seek(FILE,0,2);
$l=tell(FILE); # $l = file size
seek(FILE,0,0);
read(FILE,$_,$l); # read file into default variable $_
s/Internal/External/g; # s/search/replace/ can contain binary
# characters by using \ooo
print $_; # output to stdout
' >file.new