본문 바로가기

운영체제/OSX

레오파드 싱글레어어로 설치하기

http://blog.zydev.info/2007/10/31/leopard-single-layer-install-dvd-how-to/

레오파드의 크기가 싱글레이어로 다 집어넣기에는 너무 커서, 아래 방법을 고안한듯하다.

(1) 레오파드 리테일버전을 구한다.(리테일버전이 아닐경우 설치가 불가능)

(2) 맥북에서 dmg 파일을 마운트 시킨후 불필요한 파일들을제거(xcode,프린터드라이브,언어팩)

(3) 제거이후에 실 용량은 4.x 기가정도되나 dmg 파일용량은 여전히 기존 7.x 기가이므로 리사이징을 해주어야 한다. 

(4) 구형의 맥북(콤보드라이브인..)에선 DVD를 굽지못하므로 맥터미널에서

hdiutil convert "/path/input.dmg" -format UDTO -o "/path/output.iso"

iso.cdr.. 에서 cdr 삭제후 네로에서 굽는다

(5) 설치

The time has finally come when DVD5 (Single-Layer) discs aren’t even big enough to hold your favorite operating system. Which is all well, just more “candy” to drool over, unless you’re in a somewhat similar situation like me.

I’m currently using a 15-inch MacBook Pro (2.4GHz) which I bought in august. My previous machine was a 15-inch PowerBook from May 2004 with a 1.5GHz G4 processor. Leopard installed fine on my new machine you might imagine. My PowerBook though, has some issues with its optical drive, specially when it comes to Dual-Layer DVD discs.

The evening I got my copy of Leopard, I obviously was in all haste to install it on the MacBook Pro. Once done I also wanted to upgrade the PowerBook cause my parents use it every now and then. Okay, I lie. I really just wanted to geek out with leopard on a PowerPC machine too, thats not a crime right? 

To make my life hard though, I’d forgotten about the optical disc problems with the PowerBook. And without any external optical drive, or firewire hard drives at home, my options quickly became limited to burning a Single-Layer DVD disc with only the essential stuff needed to actually install Leopard on it.

This turned out being a bit harder than I originally thought tho. After a few failed attempts, I got it working.

Keep in mind that I’m not an expert on OSX internals or how to custom make bootable discs. Some of the stuff mentioned bellow might not be deadly necessary to make a bootable stripped down Leopard install disc. Its simply what worked for me. Just so you know before you classify me an idiot incase I’m doing something unnecessary 

Also I’m trying to keep it simple so non-geeks find this how-to useful too.

자신의 맥북프로에 한탄? 을 한 뭐, 그런 이야기들..


Overview.
What we’ll be doing here, is simply stripping out non-vital data from the Leopard installation disc. This means you’ll end up with a disc without software like the Xcode developer tools, printer drivers and language translations. They are not required to install a working copy of OS X. Once you’ve completed the installation, you can install the removed software from a disk image of the installation disc (more on that later).

개발도구인 Xcode 나 프린터 드라이브, 언어팩등을 제거하는것이 이 방법의 핵심인듯


Step 1: Create a read/write Disk Image from the Install DVD.

First of all, you’re gonna need at least 12-13 GB of free space somewhere. Then you’ll obviously need to insert your install DVD into your computer. Or if you’re like me and paranoid about optical media. You’ve probably already created a DMG from the install disc for safe keeping on a backup drive. In that case you’ll need to mount the DMG.

먼저 12~3 기가의 빈공간이 있어야 하고, 설치 DVD를 넣은후 인스톨 DVD에서 DMG파일을 만들어 놓은후 사용한다고 한다. 뭐.. 이미 DMG파일을 다운 받은 경우는 별 신경을 쓸 필요 없을듯.

Next launch Disk Utility (found in the Utilities folder inside the Applications folder). In the source list to the left in Disk Utility, you’ll see a disc called “Mac OS X Install DVD”, select it.

디스크유틸리티를 실행해서 인스톨 DVD를 선택한다






Next select File > New > Disk image from disk2s3 (Mac OS X Install DVD)… 

File>New>Disk image 를 선택


Disk Utility will now ask you where you wanna save the image. Browse to somewhere where you have at least 8 GB of free space. Select “read/write” as the image format. Name the new disk image “Leopard RW.dmg” and click Save. 

디스크 유틸리티에서 이미지를 저장할거냐고 묻는데, 8G정도되는 공간이 있는 곳에 저장을 한다. 이때 읽기/쓰기 가능한 형태로 저장한다.(이름은 알아서...) 한 2~30분이 걸린다고 하니 알아서...


Then go make yourself a cup of coffee or do something else to kill about 20-30 minutes.

Step 2: Remove non-vital content from the read/write DMG Image.
Once you’ve created the new DMG, mount it. Now you have a mounted exact copy of the same volume on your original install DVD. Only here you can delete stuff.

Open the mounted volume and start with trashing the “Optional Installs” and “Instructions” folders. Next press cmd+shift+G or select “Go to Folder…” from the Go menu in Finder. In the dialog that pops up type “System” and click Go.

새로운 DMG파일을 마운트 시킨후, 시스템폴더를 찾아 들어가서 인스톨폴더와 패키지 폴더를 열어서 필요없는 파일들을 삭제한다. 삭제할 목록들은 아래의 파일명을 참조


Now you’ll have the hidden System folder from the install disc open. Open the “Installation” folder and then the “Packages” folder. Now we need to trash some of these installation packages which are taking up a lot of space, but are not vital for Leopard to install. The plan is to simply remove all printer drivers, and all language translations.

Here’s the complete list of packages you need to trash:

  • BrazilianPortuguese.pkg
  • BrotherPrinterDrivers.pkg
  • CanonPrinterDrivers.pkg
  • Danish.pkg
  • Dutch.pkg
  • EpsonPrinterDrivers.pkg
  • Finnish.pkg
  • French.pkg
  • FujiXeroxPrinterDrivers.pkg
  • German.pkg
  • GutenprintPrinterDrivers.pkg
  • HewlettPackardPrinterDrivers.pkg
  • Italian.pkg
  • Japanese.pkg
  • Korean.pkg
  • LexmarkPrinterDrivers.pkg
  • Norwegian.pkg
  • Polish.pkg
  • Portuguese.pkg
  • RicohPrinterDrivers.pkg
  • Russian.pkg
  • SamsungPrinterDrivers.pkg
  • SimplifiedChinese.pkg
  • Spanish.pkg
  • Swedish.pkg
  • TraditionalChinese.pkg
  • XeroxPrinterDrivers.pkg

Once you’ve trashed all these files, its time to empty the trash to remove the files permanently from the disk image.

Step 3: Creating the final 4.38 GB Disk Image and burn it to a Single-Layer DVD.
Now we need to create a new disk image with the correct size. Sure, the first disk image we created only has just about 4 GB of data on it, but its volume size is still 7.5 GB. Which means you still need a dual layer disc to burn it.

저자의 말로는 파일을 삭제후에도 7.5기가의 용량으로 나온다고 한다.

Unmount the modified disk image you just stripped down. Then we need to create a new 4.36 GB disk image with Disk Utility. I know, 4.38 GB is the limit of Single-Layer DVD discs, I just prefer to aim right below the limit, just incase.

In Disk Utility select File > New > Blank Disk Image. The image format should default to read/write which is what we need. Change the size to 4.36 GB. If you’re using Leopard make sure that Partitions is set to “Single partition - Apple Partition Map”. Save it somewhere you’ve obviously got at least 4.36 GB of free space and name the image “Leopard Stripped.dmg”.

디스크 유틸리티에서 File>New>blank disk image 를 선택해서, 사이즈를 4.36으로 변경후

저장한다

Then go for another, but shorter, coffee break.

Once done, mount the new empty disk image if it isn’t already mounted. In Disk Utility select the mounted volume of the new disk image and click the Restore tab. Drag the “Leopard RW.dmg” image into the Source box, and drag the mounted volume of the “Leopard Stripped.dmg” image into the Destination box. Mark the Erase destination checkbox.

새이미지를 마운트한후 리스토어탭을 클릭한후 저장한 파일을 소스 박스로 드레그한다.


Click the Restore button and wait a few seconds. Disk Utility will report an error of some kind. Select “Leopard Stripped.dmg” from the source list on the left and click the Eject button in the toolbar. Once ejected, click the Open button and it’ll mount again, but this time the volume label should be “Mac OS X Install DVD”. Uncheck the Erase destionation option and click the Restore button again.

리스토어버튼을 클린하면 됨. 

leopard setipped.dmg 파일을 선택해서 제거버튼 클릭. 다시 마운트 하면 된다. 이때 erase destination 옵션 체크해제한다.

Time for a third coffee break.

Once the restore process is complete, unmount “Leopard Stripped.dmg”. Then its time to burn the disc finally.

Personally i used Toast to burn my stripped down disc, but there shouldn’t be any problems burning it using Disk Utility. To burn it using Disk Utility, select “Leopard Stripped.dmg” from the source list on the left, and click the Burn toolbar button. Use any normal DVD±R disc 

Step 4: Installing Leopard from the Stripped Install DVD.
Installation is pretty much exactly like normal, except you have to make sure it doesn’t attempt to install any printer drivers of language translations. Those files aren’t there anymore, and if the installer tries to install them, it’ll just commit a pretty suicide.

UPDATE: As Mike pointed out in his comment, if you are performing an upgrade install the installer requires that any previously installed language translations are updated. Which means they can not be unchecked during installation. To get around this, he recommends using Monolingual in Tiger to remove the additional languages before performing the upgrade install. If you go down this path, please let me know how it goes as I’m curious.

Also, it can take a VERY, VERY VERY long time for your machine to boot from this customized disc. My PowerBook took about 25 minutes too boot, all the while just showing the gray apple logo and spinner.

After selecting which disk to install Leopard on, you’ll have a Customize button in the lower left on the installation wizards dialog. Using the customize feature, uncheck Printer Drivers and Language Translations. Then the installation will go on without a hitch.

Step 5: Installing the software stripped from installation disc.
For this, you’ll need a mac which can read the Dual-Layer Leopard disc, just like you did in the beginning to create the disk image from the Leopard disc.

Create another disk image from the Leopard install disc like you did in the beginning. Only leave Image Format on compressed. I’d recommend you name it “Mac OS X 10.5 Leopard.dmg”. This disk image file you can keep as a backup incase you ever loose or otherwise damage your original Leopard install disc.

Then its just a matter of making the backup disk image accessible with the help of networking or an external hard drive to the newly installed Leopard machine. Simply mount the disk image, and use the Optional Installs package to install any/all of the language translations and/or printer drivers you want. You can obviously install the Xcode Developer Tools as well.

Step 6: Uhm…. Enjoy Leopard? Can that even be classified as a step?
Thats it, you should be all set. Now you can play with Apple’s latest toy 

P.S. You probably noticed the screenshots I’ve used here are from Leopard. I simply don’t have a Tiger machine anymore (hehe). Also yes, I’ve installed Windows XP with Boot Camp, partially to test out the new Boot Camp 2.0 (which partitioned my internal drive a lot faster than Boot Camp 1.4), and to play some games those rare moments when I don’t have anything to do.