±Û½ê¿ä...Å« µµ¿òÀÌ µÉ·±Áö´Â...
±×³É ufs ¼Ò½ºÀÇ ¹®¼¸¦ Àá½Ã ¹ø¿ªÇغó׿ä..Âü°íÇϼ¼¿ä..
------------¿øº»½ÃÀÛ----------------------------------
Disk Layout Information for Darwin i386
Disk layout information for Darwin i386 is a bit odd and difficult
to figure out. This document will describe, to the best of my
knowledge, what the Darwin i386 disk layout is.
Darwin places it's filesystem directly inside an fdisk partition.
The fdisk partition can be created using any old fdisk program that
lets you specify the partition type. Darwin uses the old NeXT
partition type of 0xA8.
Directly inside the fdisk partition is the Partition Boot Record(PBR).
The PBR is 512 bytes in length and is always expected to be there,
regardless of OS. This is Sector 0 of the partition, and the BIOS
always believes the sector size to be 512 bytes. So, the PBR occupies
the entire sector 0 of the disk.
Following the PBR is 6.5K of "reserved" space. This space is currently
unallocated by Apple, but I suspect it may be used by a future booloader.
On the 7K mark, begins the Darwin "ufslabel". This ufslabel is placed
right before the UFS filesystem and contains the name of the filesystem
along with some miscellaneous other metadata. The structure is 1K in
size, although it is mostly empty. The ufslabel is stored in big endian.
All of the filesystem data is stored in big endian mode, reflecting
the PPC nativeness of the the OS. The name stored in the filesystem
is the name presented from the MacOS portion (Aqua) of MacOS X.
After the ufslabel, the UFS filesystem technically begins. The first
superblock is located at the 8K mark on the partition.
Here is a diagram of the layout of the first few sectors:
|------------ 512 bytes --------------|
0 ---------------------------------------------------
| Partition Boot Record (PBR) |
512 ---------------------------------------------------
| |
1024 ---------------------------------------------------
| |
1536 ---------------------------------------------------
| |
2048 ---------------------------------------------------
| |
2560 ---------------------------------------------------
| |
3072 ---------------------------------------------------
| |
3584 ---------------------------------------------------
| |
4048 ---------------------------------------------------
| |
4608 ---------------------------------------------------
| |
5120 ---------------------------------------------------
| |
5632 ---------------------------------------------------
| |
6144 ---------------------------------------------------
| |
6656 ---------------------------------------------------
| |
7168 ---------------------------------------------------
| Darwin ufslabel |
7680 ---------------------------------------------------
| Darwin ufslabel |
8192 ---------------------------------------------------
| UFS Superblock start |
---------------------------------------------------
-----------------¿øº»³¡------------------------------
-------------¹ø¿ª½ÃÀÛ----------------------------
´ÙÀ© i386 µð½ºÅ© ·¹À̾ƿô Á¤º¸
´ÙÀ© i386°è¿ µð½ºÅ© ·¹À̾ƿô¿¡ ´ëÇÑ ºÎºÐÀº Àͼ÷ÇÏÁö ¾ÊÀº ºÎºÐÀÌ ÀÖÀ¸¸ç, Àüü¸¦
ÆľÇÇϱâ¶õ Á¶±Ý Èûµç °úÁ¦ÀÌ´Ù. ÀÌ ¹®¼¸¦ ÅëÇؼ ´ÙÀ©ÀÇ i386°è¿ÀÇ ±âº»±¸Á¶¿¡ ´ëÇØ
ÃÖ´ëÇÑ ¼³¸íÀ» Çغ¸°Ú´Ù.
´ÙÀ©±¸Á¶´Â fdisk ÆÄƼ¼Ç¿¡ Á÷Á¢ ÆÄÀϽýºÅÛÀ» ÀúÀåÇÑ´Ù. ÀÌ·¯ÇÑ fdisk ÆÄƼ¼ÇÀº ÆÄƼ¼ÇÀ»
ºÐ¸®ÇÒ¶§ »ç¿ëÇÏ´ø ¿¹ÀüÀÇ fdisk ÇÁ·Î±×·¥À» ÅëÇؼ ½±°Ô »ý¼ºÇÒ ¼ö ÀÖ´Ù. ´ÙÀ©
ÆÄÀϽýºÅÛÀº 0xA8ÀÇ NeXTÆÄƼ¼Ç ±¸Á¶¸¦ »ç¿ëÇÏ°í ÀÖ´Ù.
ÆÄƼ¼Ç ºÎÆ® ÀúÀå(PBR)Àº fdisk ÆÄƼ¼ÇÀÇ ³»ºÎ¿¡ Á¸ÀçÇϸç, 512¹ÙÀÌÆ®ÀÇ ±æÀ̸ç, ¾î¶°ÇÑ
OS¿¡ »ó°ü¾øÀÌ ´Ã fdisk³»ºÎ¿¡ Á¸ÀçÇϵµ·Ï ¼³°èµÇ¾î Á³´Ù. ÀÌ ºÎºÐÀº ¼½ÅÍÀÇ 0¹øÀ»
¸»Çϸç, BIOS´Â ´Ã 512¹ÙÀÌÆ®ÀÓÀ» ÀνÄÇÑ´Ù. µû¶ó¼, PBRÀº ÇÑ µð½ºÅ©ÀÇ Àüü 0¹ø ¼½Å͸¦
Â÷ÁöÇÏ´Â ¼ÀÀÌ´Ù.
´ÙÀ½Àº PBRÀÇ ÀÌ¹Ì ¿¹¾àµÈ 6.5ų·Î ¹ÙÀÌÆ®ÀÇ °ø°£À» ³ªÅ¸³»ÁÖ°í ÀÖ´Ù. ÇöÀç
¿¡ÇÃÄÄÇ»ÅÍ¿¡¼´Â ÀÌ °ø°£ºÎºÐÀ» ÇÒ´çÇÏ°í ÀÖÁö ¾ÊÁö¸¸, Á¶¸¸°£ Â÷±â ºÎÆ®·Î´õ¿¡¼´Â
Áö¿øµÇ¸®¶ó º»´Ù.
7ų·Î¹ÙÀÌÆ® ºÎºÐ¿¡¼ ´ÙÀ©ÀÇ "ufslabel"(ufsÇ¥½Ã)ÀÌ
½ÃÀÛÇϸç, ÀÌ ufslabel¿µ¿ªÀº UFSÆÄÀϽýºÅÛ ¹Ù·Î ÀÌÀü¿¡ Á¸ÀçÇϸç, ´Ù¸¥ ÀϺÎ
¸ÞŸµ¥ÀÌÅÍ¿Í ÇÔ²² ÆÄÀϽýºÅÛÀÇ À̸§À» ´ã°í ÀÖ´Ù. ±× ±¸Á¶´Â ºñ·Ï ÅÖ ºó °ø°£ÀÌÁö¸¸,
1ų·Î¹ÙÀÌÆ® Å©±âÀÌ´Ù. ufslabelÀº big endian ÇüÅ·ΠÀúÀåµÇ¸ç(¿ªÀÚÁÖ:À½ º¸Åë
¾ÖÇÃÄÄÇ»ÅÍ°¡ ±×·¸ÁÒ. ¸Þ¸ð¸® ¾îµå·¹½Ì¹æ¹ýÀε¥... ÇÏÁö¸¸, ¹Ì·¡¿£ µÎ°¡Áö ¸ðµÎ Áö¿øµÇ´Â
MIPS°è¿ÀÌ µµ·¡ÇÏ°ÚÁÒ..ÂÁ..Áö±ÝÀ̾ß
´ÑÅÙµµ°¡ À¯ÀÏÇÑ ½Ã½ºÅÛÀÌÁö¸¸.. À©µµ¿ì°è¿Àº ¹Ý´ë·Î little endian °è¿À̱¸¿ä..),
ÆÄÀϽýºÅÛÀÇ ¸ðµç ÀÚ·áµéÀº PPC °è¿ OSÀÇ ±âº»ÇüÅÂÀÎ big endian ¸ðµå·Î ÀúÀåÀÌ µÈ´Ù.
ÆÄÀÏ ½Ã½ºÅÛ¿¡ ÀúÀåµÈ À̸§Àº MacOs X(Àϸí "¾ÆÄí¾Æ")¶ó´Â À̸§À¸·Î ÇöÀç Ãâ½ÃµÇ¾î ÀÖ´Ù.
ufslabel´ÙÀ½À¸·Î´Â UFSÆÄÀϽýºÅÛÀÌ ½ÃÀ۵ȴÙ. ÃÖÃÊ ½´ÆÛºí·°Àº ÆÄƼ¼Ç¿¡¼
8ų·Î¹ÙÀÌÆ®¸¦ Â÷ÁöÇÑ´Ù.
´ÙÀ½Àº óÀ½ºÎÅÍ ¸î°³±îÁöÀÇ ¼½ÅÍ¿¡ ´ëÇÑ ´ë·«ÀûÀÎ ±×¸²ÀÌ´Ù.
<±×¸²>
-------------¹ø¿ª³¡----------------
±âº»ÀûÀÎ À¯´Ð½º ÆÄÀϽýºÅÛÀÌÁÒ..
Solaris´Â UFS, HP-UX´Â HFS, IRIX 5.3 ±×¸®°í ÀÌÀü ¹öÀüÀº EFS,
IRIX 6.2°¡ XFS, ±×¸®°í Linux°¡ EXT2 ¶Ç´Â EXT3.
¿¹Àü¿¡ Çб³¿¡¼ Àá½Ã ¹è¿î°Ô ±â¾ïÀÌ ³ª´Âµ¥... ¿ö³« °øºÎ¶û °Å¸®°¡ ¸Ö¾î¼.. -.-;;;
Àúµµ °³ÀÎÀûÀ¸·Î À¯´Ð½º Ä¿³Î¿¡ °ü½ÉÀÌ ÀÖ¾î¼, Æ´³ª´Â´ë·Î Ã¥À» º¸´Âµ¥¿ä... È®½ÇÈ÷
¾î·Æ±º¿ä..
¾µµ¥¾ø´Â À̾߱⸸ ´Ã¾î³õ¾Ò±º¿ä..
[ÇÇ¿µÈ£]´ÔÀÌ ³²±â½Å ±Û:
>ÀÚ¼¼ÇÏ°Ô ³ª¿Â ¹®¼³ª »çÀÌÆ®°¡ ÀÖÀ¸¸é ¾Ë·ÁÁֽñ⠹ٶø´Ï´Ù...
>
>¸î ÀÏ°£ ã¾ÆºÃÁö¸¸, Á¦°¡ ¿øÇÏ´Â ³»¿ëÀ» ãÀ» ¼ö°¡ ¾ø´õ±º¿ä...
>
>´«ÀÌ ¾ÆÇÅ´Ï´Ù...¤Ð¤Ð
>
>Á¦°¡ ¾Ë°í½ÍÀº ³»¿ëÀÎÁï½¼...UFSÀÇ ´ë·«ÀûÀÎ ±¸Á¶µµ(?)ÀÔ´Ï´Ù.
>
>À¯Àú·¹º§°ú Ä¿³Î·¹º§...ÀÌ·¸°Ô ¿©·¯ °èÃþÀ¸·Î ³ª´©¾îÁø Á¶Á÷µµ°¡ ³ª¿ÍÀÖ´Â
¹®
>¼³ª »çÀÌÆ®¸¦ ¾Ë°í °è½ÅºÐµéÀº µµ¿òÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù.
>
>Ãß¿î ³¯¾¾¿¡ °¨±â Á¶½ÉÇϼ¼¿ä~
>
>
========================================
|