Setup OS From Hard Disk

== Windows 7 ======================
1. Install From WinPE:
———————————–
1). Extract “Window7.ISO” to a none C: partition, like “d:\windows7\”
2). Format C: (optional)
3). Copy “d:\windows7\bootmgr” and “d:\windows7\boot” to C:\
4). Copy “d:\windows7\sources\boot.wim” to “C:\sources\boot.wim”
5). Run: “c:\boot\bootsect.exe /nt60 c:”
6). Reboot
7). select “Repair My Computer” -> “Command Prompt”, enter DOS command line.
8). Run: “d:\windows7\sources\setup.exe”

== Fedora 13 =======================

http://fedoraproject.org

1. From GRUB
————————————
(Refer to http://blog.csdn.net/sabalol/archive/2010/05/27/5629464.aspx)
1). Copy files:
Fedora13.iso/isolinux/vmlinuz, initrd.img -> FAT32 file system (For GRUB does not recognize NTFS file system)
Fedora13.iso/images -> file system (FAT32 or NTFS, because that time the kernel has been loaded, but must with Fedora13.iso together)
2). Boot with GRUB, type “c” into command line.
3). In the GRUB command line:
boot(hd0,8)
kernel /vmlinuz
initrd /initrd.img
boot
4). In the setup guide, select the Fedora13.iso contained partition.
Note:
*. The ‘vmlinuz’ and ‘initrd.img’ in the Fedora13.iso is different from the ones in Linux ‘/boot’.

2. From Windows
————————————
1). Exact vmlinuz and initrd.img from .ISO file
2). Copy GRLDR to “C:\” (Refer to http://www.linux-wiki.cn/index.php?title=%E7%94%A8Windows_XP/Vista%E5%BC%95%E5%AF%BCgrub&variant=zh-hant)
3). Edit boot.ini, add a new line at the end: ‘C:\GRLDR=”Linux”‘
4). Reboot OS and enter in Grub command line.
5). Load the kernel (known that Grub count from zero):
>kernel (hd0,1)/vmlinuz
>initrd (hd0,1)/initrd.img
>boot
6).select the ISO file

== Ubuntu 10.04 ====================

http://www.ubuntu.com

1. Dependancy install
(Refer to http://www.linux-wiki.cn/index.php?title=Ubuntu%E7%A1%AC%E7%9B%98%E5%AE%89%E8%A3%85&variant=zh-hant)
————————————
1). Copy casper/initrd.lz and casper/vmlinuz out from the .ISO file.
2). Edit Grub menu.lst:
title Install Ubuntu
root (hd0,0)
kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-10.04-desktop-i386.iso ro quiet splash locale=zh_CN.UTF-8
initrd /initrd.lz
3). Reboot and enter the Live CD system
4). (Optional: sudo umount -l /isodevice)
5). Start installation from the shutcut on the desktop

2. Install in windows partition
————————————–
1). Extract wubi.exe from .ISO file and put it beside the .ISO file.
2). Run wubi.exe.

== OpenSUSE =======================

http://opensuse.org

1. From Windows
(Refer to http://cn.opensuse.org/OpenSUSE_11_0_NTFS%E5%88%86%E5%8C%BA%E7%A1%AC%E7%9B%98%E5%AE%89%E8%A3%85)
————————————–
1). Load the .ISO file in the Virtual CD-ROM (lite DEAMON Lite)
2). Run openSUSE11_3_LOCAL.exe
3). Reboot.
4). (Optional: may need to umount and mount the partition which contains the setup files)