;--------------------------------------------------------------------
; ν 
;--------------------------------------------------------------------

### NOTE ###
Ʒ   оñ ٶϴ.

 weix block device  size 1024bytes  մϴ.
׷Ƿ weix Ŀγ ε Ȥ Open ϰ Ǵ ϵ 
ϳ  1024bytes  Ƽǿ  ־ մϴ. ׷ 
  ERROR    ֽϴ.

Ʒ ø  "Block size" 1024 bytes  ƽ  ֽϴ.

 "/"(ROOT) Ƽǿ  Դϴ. ̽ "/dev/hda2" Դϴ.

dumpe2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09
Filesystem volume name:   /
Last mounted on:          
Filesystem UUID:          70488602-de95-11d5-9e3f-0050564858e3
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      filetype sparse_super
Filesystem state:         not clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              89760
Block count:              358848
Reserved block count:     17942
Free blocks:              271637
Free inodes:              75105
First block:              1
Block size:               1024
Fragment size:            1024
Blocks per group:         8192
Fragments per group:      8192
Inodes per group:         2040
Inode blocks per group:   255
Last mount time:          Fri Dec  7 20:31:27 2001
Last write time:          Fri Dec  7 20:31:54 2001
Mount count:              8
Maximum mount count:      35
Last checked:             Mon Dec  3 20:54:12 2001
Check interval:           15552000 (6 months)
Next check after:         Sat Jun  1 21:54:12 2002
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               128

 /boot Ƽǿ  Դϴ. ̽ "/dev/hda1" Դϴ.

dumpe2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09
Filesystem volume name:   /boot
Last mounted on:          
Filesystem UUID:          728cb320-de95-11d5-9f0e-0050564858e3
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      filetype sparse_super
Filesystem state:         not clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              13104
Block count:              52384
Reserved block count:     2619
Free blocks:              44150
Free inodes:              13064
First block:              1
Block size:               1024
Fragment size:            1024
Blocks per group:         8192
Fragments per group:      8192
Inodes per group:         1872
Inode blocks per group:   234
Last mount time:          Fri Dec  7 20:31:33 2001
Last write time:          Fri Dec  7 20:31:34 2001
Mount count:              8
Maximum mount count:      32
Last checked:             Mon Dec  3 20:52:07 2001
Check interval:           15552000 (6 months)
Next check after:         Sat Jun  1 21:52:07 2002
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               128

 /home Ƽǿ  Դϴ. ̽ "/dev/hda3" Դϴ.

dumpe2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09
Filesystem volume name:   /home
Last mounted on:          
Filesystem UUID:          72c40d70-de95-11d5-94ee-0050564858e3
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      filetype sparse_super
Filesystem state:         not clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              76608
Block count:              306432
Reserved block count:     15321
Free blocks:              224103
Free inodes:              66757
First block:              1
Block size:               1024
Fragment size:            1024
Blocks per group:         8192
Fragments per group:      8192
Inodes per group:         2016
Inode blocks per group:   252
Last mount time:          Fri Dec  7 20:31:33 2001
Last write time:          Fri Dec  7 20:31:34 2001
Mount count:              8
Maximum mount count:      35
Last checked:             Mon Dec  3 20:54:44 2001
Check interval:           15552000 (6 months)
Next check after:         Sat Jun  1 21:54:44 2002
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               128

;--------------------------------------------------------------------
;  ν 
;--------------------------------------------------------------------

ʿ 
	1) Weix ҽ
	2) GRUB ̹
	3) 1.44MB ÷  


 
	1) weix ҽ ٿε մϴ. ⿡ ٿε ֽϴ. 

	2)  մϴ.
		$ bunzip2 ̸.tar.bz2
		$ tar xvf ̸.tar
 
	׷ weix  丮  丮 Ʒ ˴ϴ.

	3) weix 丮 ̵մϴ.
		$ cd weix

		3-1) include/weix/config.h  ͷ ø HD_TYPE κа
			 ROOT_DEV κ ϼž մϴ.

	4)  丮 ø hdd   ũƮ ֽϴ. 
	    ŵϴ. 
			$ ./hdd
 
	׷ system/weixkernel_hdd   ˴ϴ. ׷ ̰
	GRUB  ε Ͻø ˴ϴ. ׷  GRUB image 1.44MB ÷
	Ͽ raw īǸ ؾ մϴ.

	5) GRUB ̹ ޾ƾ մϴ.   ̸ ޾Ƴ  ֽϴ.

	6) ׸ fdimage Ȥ rawrite  ʽÿ. ⿡ 
	fdimge  ϰڽϴ.

	7) GRUB ̹ fdimage.exe  ̴ٸ  ϵ忡 
	丮 ʽÿ. ׸ Ʒ  Ͻø GRUB̹
	Ͽ Ͻ  ֽϴ. 
		c:\> fdimage -q .\grub-0.90-i386-pc.ext2fs a:
 
	8) .  GRUB ̹  ϰ, weix Ŀ ̹  ̽ϴ.
	  غô.

	9) weix Ŀ   ڽ մϴ.  ϼ GRUB ̹ 
	÷  ̹ ϼ.  BIOS GRUB ٿ ̴ϴ. ׷
	Ʒ  ޼ ȭ鿡 Ÿ ̴ϴ.

				GRUB version 0.90 (638k lower / 48128k upper momory)
		[ Minimal BASH-like line editing is supported. For the first word, TAB
		  lists possible command completions. Anywhere else TAB lists the possible
		  completions of a device/filename. ESC at any time exits. ]
		
		grub> _


	10)  weix ̹ ù° ̹(c̹) ù° Ƽǿ ִٸ
	Ʒ  ԷϽʽÿ. 
		grub> root (hd0,0)
 

	 ٸ ̹ ٸ Ƽǳ ִٸ  Ͽ ֽʽÿ.
	"root"   Ʒ ϴ. 
		grub> root (hd̹,Ƽ)
 
	 ̹ ι°̰, Ƽ 3° Ʒ  Էϼž մϴ. 
		grub> root (hd1,2)

	׷ "Filesystem type is ext2fs, partition type 0x83"̶ ޼
	 ֽϴ.

	 ڼ  GRUB ޴ ⸦ ø  ֽϴ.

	 쿡  ϰڽϴ.
	 weix ̹ /home/andsoon/weix/system/weixkernel_hdd  
	ֽϴ. /home 丮 /dev/hda3  Ǿ ֽϴ. ̰
	ù° ̹ ׹° Ƽ Ÿϴ. ׷  ̷ ԷϿϴ. 
		grub> root (hd0,2)
 

	  Ŀ ̹ ޸𸮻 ε带 Ͽ մϴ.
	"kernel" ̶  ؼ ̰   ֽϴ.

	NOTE : ⼭ ؾ   Ƽ  θ Էؾ Ѵٴ
	Դϴ.  /home 丮 Ʒ  /dev/hda2ó ROOT Ƽǿ Ǿ
	ִٸ "kernel /home/andsoon/weix/system/weixkernel_hdd" ԷϽø ȵ˴ϴ.
	Ȯϰ Ʒ  Էϼž մϴ. 
		grub> kernel /andsoon/weix/system/weixkernel_hdd
 

	׷ "[Mutiboot-elf, <0x100000:0x15d0c:0x0>, <0x116d20:0x72ac:0xdd1c>, 
	shtab=0x12c1e0, entry=0x100000]"   ޼   ֽϴ.

	׷   ϴ.  Ŀ ϴ ͸ ҽϴ.
		grub> boot

	 ԷϽø  weix ϰ ˴ϴ.

	  ʹ а Բ  Դϴ.
	  ٸڽϴ.  ڵ ϼż  
	  ּմϴ. weix ü ѹ  ǻ 
	ε ּż  մϴ.  ϳ Դϴ. :-) ׷.
