{"id":590,"date":"2011-01-12T11:47:39","date_gmt":"2011-01-12T11:47:39","guid":{"rendered":""},"modified":"2011-01-12T11:47:39","modified_gmt":"2011-01-12T11:47:39","slug":"590","status":"publish","type":"post","link":"https:\/\/www.poloo.org\/?p=590","title":{"rendered":"U\u76d8 \u5b89\u88c5 CentOS 5.4 \/ Fefora 10\/11\/12"},"content":{"rendered":"<p>(\u4e0b\u9762\u662f8G U\u76d8 )<\/p>\n<p>1.&nbsp;&nbsp;8G U\u76d8\uff0c\u4e24\u4e2a\u5206\u533a\uff0c\u90fd\u662fFAT32\uff08\u8fd9\u6837U\u76d8\u4e5f\u53ef\u4ee5\u5728Win\u4e0b\u4f7f\u7528\uff09\uff0c\u7531\u4e8eWindows XP\u53ea\u80fd\u770b\u5230\u7b2c\u4e00\u4e2aFAT32\u5206\u533a\uff0c\u56e0\u6b64\uff0c\u5c06CentOS 5.4 \u7684\u76f8\u5173\u5b89\u88c5\u6587\u4ef6 \u653e\u5728 \u7b2c\u4e8c\u4e2a\u5206\u533a\u4e2d\uff1b \u5728Linux\u4e0b\u7528fdisk\u547d\u4ee4\u5bf98G U\u76d8\u8fdb\u884c\u5206\u533a\uff0c\u5982\u4e0b\uff08\u7ea2\u8272\u4e3a\u8f93\u5165\uff09\uff1a<\/p>\n<p>[root@localhost ~]# fdisk \/dev\/sda<\/p>\n<p>The number of cylinders for this disk is set to 30584.<br \/>There is nothing wrong with that, but this is larger than 1024,<br \/>and could in certain setups cause problems with:<br \/>1) software that runs at boot time (e.g., old versions of LILO)<br \/>2) booting and partitioning software from other OSs<br \/>&nbsp;&nbsp; (e.g., DOS FDISK, OS\/2 FDISK)<\/p>\n<p>Command (m for help): m<br \/>Command action<br \/>&nbsp;&nbsp; a&nbsp;&nbsp; toggle a bootable flag<br \/>&nbsp;&nbsp; b&nbsp;&nbsp; edit bsd disklabel<br \/>&nbsp;&nbsp; c&nbsp;&nbsp; toggle the dos compatibility flag<br \/>&nbsp;&nbsp; d&nbsp;&nbsp; delete a partition<br \/>&nbsp;&nbsp; l&nbsp;&nbsp; list known partition types<br \/>&nbsp;&nbsp; m&nbsp;&nbsp; print this menu<br \/>&nbsp;&nbsp; n&nbsp;&nbsp; add a new partition<br \/>&nbsp;&nbsp; o&nbsp;&nbsp; create a new empty DOS partition table<br \/>&nbsp;&nbsp; p&nbsp;&nbsp; print the partition table<br \/>&nbsp;&nbsp; q&nbsp;&nbsp; quit without saving changes<br \/>&nbsp;&nbsp; s&nbsp;&nbsp; create a new empty Sun disklabel<br \/>&nbsp;&nbsp; t&nbsp;&nbsp; change a partition&#8217;s system id<br \/>&nbsp;&nbsp; u&nbsp;&nbsp; change display\/entry units<br \/>&nbsp;&nbsp; v&nbsp;&nbsp; verify the partition table<br \/>&nbsp;&nbsp; w&nbsp;&nbsp; write table to disk and exit<br \/>&nbsp;&nbsp; x&nbsp;&nbsp; extra functionality (experts only)<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/sda: 8017 MB, 8017412096 bytes<br \/>16 heads, 32 sectors\/track, 30584 cylinders<br \/>Units = cylinders of 512 * 512 = 262144 bytes<\/p>\n<p>&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System<br \/>\/dev\/sda1&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 30590&nbsp;&nbsp;&nbsp;&nbsp; 7831024&nbsp;&nbsp;&nbsp;&nbsp;6&nbsp;&nbsp;FAT16<\/p>\n<p>Command (m for help): d<br \/>Selected partition 1<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/sda: 8017 MB, 8017412096 bytes<br \/>16 heads, 32 sectors\/track, 30584 cylinders<br \/>Units = cylinders of 512 * 512 = 262144 bytes<\/p>\n<p>&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System<\/p>\n<p>Command (m for help): n<br \/>Command action<br \/>&nbsp;&nbsp; e&nbsp;&nbsp; extended<br \/>&nbsp;&nbsp; p&nbsp;&nbsp; primary partition (1-4)<br \/>p<br \/>Partition number (1-4): 1<br \/>First cylinder (1-30584, default 1): \u56de\u8f66<br \/>Using default value 1<br \/>Last cylinder or +size or +sizeM or +sizeK (1-30584, default 30584): 14000<\/p>\n<p>Command (m for help): n<br \/>Command action<br \/>&nbsp;&nbsp; e&nbsp;&nbsp; extended<br \/>&nbsp;&nbsp; p&nbsp;&nbsp; primary partition (1-4)<br \/>p<br \/>Partition number (1-4): 2<br \/>First cylinder (14001-30584, default 14001): \u56de\u8f66<br \/>Using default value 14001<br \/>Last cylinder or +size or +sizeM or +sizeK (14001-30584, default 30584): \u56de\u8f66<br \/>Using default value 30584<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/sda: 8017 MB, 8017412096 bytes<br \/>16 heads, 32 sectors\/track, 30584 cylinders<br \/>Units = cylinders of 512 * 512 = 262144 bytes<\/p>\n<p>&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System<br \/>\/dev\/sda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 14000&nbsp;&nbsp;&nbsp;&nbsp; 3583984&nbsp;&nbsp; 83&nbsp;&nbsp;Linux<br \/>\/dev\/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 14001&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 30584&nbsp;&nbsp;&nbsp;&nbsp; 4245504&nbsp;&nbsp; 83&nbsp;&nbsp;Linux<\/p>\n<p>Command (m for help): a<br \/>Partition number (1-4): 2<\/p>\n<p>Command (m for help): t<br \/>Partition number (1-4): 1<br \/>Hex code (type L to list codes): b<br \/>Changed system type of partition 1 to b (W95 FAT32)<\/p>\n<p>Command (m for help): t<br \/>Partition number (1-4): 2<br \/>Hex code (type L to list codes): b<br \/>Changed system type of partition 2 to b (W95 FAT32)<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/sda: 8017 MB, 8017412096 bytes<br \/>16 heads, 32 sectors\/track, 30584 cylinders<br \/>Units = cylinders of 512 * 512 = 262144 bytes<\/p>\n<p>&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System<br \/>\/dev\/sda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 14000&nbsp;&nbsp;&nbsp;&nbsp; 3583984&nbsp;&nbsp;&nbsp;&nbsp;b&nbsp;&nbsp;W95 FAT32<br \/>\/dev\/sda2&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 14001&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 30584&nbsp;&nbsp;&nbsp;&nbsp; 4245504&nbsp;&nbsp;&nbsp;&nbsp;b&nbsp;&nbsp;W95 FAT32<\/p>\n<p>Command (m for help): w<br \/>The partition table has been altered!<\/p>\n<p>Calling ioctl() to re-read partition table.<\/p>\n<p>WARNING: Re-reading the partition table failed with error 16: \u8bbe\u5907\u6216\u8d44\u6e90\u5fd9.<br \/>The kernel still uses the old table.<br \/>The new table will be used at the next reboot.<\/p>\n<p>WARNING: If you have created or modified any DOS 6.x<br \/>partitions, please see the fdisk manual page for additional<br \/>information.<br \/>Syncing disks.<br \/>[root@localhost ~]# <\/p>\n<p>[root@localhost ~]# mkfs.vfat \/dev\/sda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff08\u5c06\u5206\u533a\u4e00\u683c\u5f0f\u5316\u4e3aFAT32\uff09<br \/>mkfs.vfat 2.11 (12 Mar 2005)<br \/>[root@localhost ~]# mkfs.vfat \/dev\/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff08\u5c06\u5206\u533a\u4e8c\u683c\u5f0f\u5316\u4e3aFAT32\uff09<br \/>mkfs.vfat 2.11 (12 Mar 2005)<br \/>[root@localhost ~]# <\/p>\n<p>2.&nbsp;&nbsp;\u5728Linux\u4e0b\uff0c\u5728U\u76d8\u7b2c\u4e8c\u4e2a\u5206\u533a\u6839\u76ee\u5f55\u4e2d\u521b\u5efaboot\u6587\u4ef6\u5939\uff0c\u7136\u540e\u5c06\uff08\u786c\u76d8\u4e2d\uff09 \/boot\u4e2d\u7684 grub\u6587\u4ef6\u5939 \u6574\u4e2a \u590d\u5236 \u5230U\u76d8\u7684boot\u6587\u4ef6\u5939\uff1b<br \/>&nbsp;&nbsp;&nbsp;&nbsp;\u4ece\u7f51\u4e0a\u4e0b\u8f7d CentOS-5.4-i386-bin-DVD.iso\uff0c\u5c06\u5176\u653e\u5728U\u76d8\u7b2c\u4e8c\u4e2a\u5206\u533a\u7684\u6839\u76ee\u5f55\u4e2d\uff1b<br \/>&nbsp;&nbsp;&nbsp;&nbsp;\u5c06CentOS-5.4-i386-bin-DVD.iso\u4e2d\u7684isolinux\u6587\u4ef6\u5939\u63d0\u53d6\u51fa\u6765\uff0c\u653e\u5728U\u76d8\u7b2c\u4e8c\u4e2a\u5206\u533a\u7684\u6839\u76ee\u5f55\u4e2d\uff1b\uff08\u5982\u679c\u662fFefora 10\/11\/12\uff0c\u5219\u9700\u8981\u5c06Fefora*.iso\u4e2d\u7684images\u6587\u4ef6\u5939 \u4e5f \u63d0\u53d6\u51fa\u6765\uff0c\u653e\u5728U\u76d8\u7b2c\u4e8c\u4e2a\u5206\u533a\u7684\u6839\u76ee\u5f55\u4e2d\uff09<\/p>\n<p>[root@localhost disk-1]# tree \uff08\u5217\u51faU\u76d8\u7b2c\u4e8c\u4e2a\u5206\u533a\u6839\u76ee\u5f55\u4e2d\u7684\u5185\u5bb9\uff09<br \/>.<br \/>|&#8211; CentOS-5.4-i386-bin-DVD.iso<br \/>|&#8211; boot<br \/>|&nbsp;&nbsp; `&#8211; grub<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; device.map<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; e2fs_stage1_5<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; fat_stage1_5<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; ffs_stage1_5<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; grub.conf<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; grub.conf~<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; iso9660_stage1_5<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; jfs_stage1_5<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; minix_stage1_5<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; reiserfs_stage1_5<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; splash.xpm.gz<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; stage1<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; stage2<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; ufs2_stage1_5<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211; vstafs_stage1_5<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `&#8211; xfs_stage1_5<br \/>`&#8211; isolinux<br \/>&nbsp;&nbsp;&nbsp;&nbsp;|&#8211; boot.cat<br \/>&nbsp;&nbsp;&nbsp;&nbsp;|&#8211; boot.msg<br \/>&nbsp;&nbsp;&nbsp;&nbsp;|&#8211; general.msg<br \/>&nbsp;&nbsp;&nbsp;&nbsp;|&#8211; initrd.img<br \/>&nbsp;&nbsp;&nbsp;&nbsp;|&#8211; isolinux.bin<br \/>&nbsp;&nbsp;&nbsp;&nbsp;|&#8211; isolinux.cfg<br \/>&nbsp;&nbsp;&nbsp;&nbsp;|&#8211; memtest<br \/>&nbsp;&nbsp;&nbsp;&nbsp;|&#8211; options.msg<br \/>&nbsp;&nbsp;&nbsp;&nbsp;|&#8211; param.msg<br \/>&nbsp;&nbsp;&nbsp;&nbsp;|&#8211; rescue.msg<br \/>&nbsp;&nbsp;&nbsp;&nbsp;|&#8211; splash.lss<br \/>&nbsp;&nbsp;&nbsp;&nbsp;`&#8211; vmlinuz<\/p>\n<p>3 directories, 29 files<br \/>[root@localhost disk-1]# <\/p>\n<p>3.&nbsp;&nbsp;\u7f16\u8f91U\u76d8\u4e2d\u7684 \/boot\/grub\/grub.conf \u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p>#<br \/># Note that you do not have to rerun grub after making changes to this file<br \/># NOTICE:&nbsp;&nbsp;You have a \/boot partition.&nbsp;&nbsp;This means that<br \/>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;all kernel and initrd paths are relative to \/boot\/, eg.<br \/>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;root (hd0,10)<br \/>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;kernel \/vmlinuz-version ro root=\/dev\/hda3<br \/>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;initrd \/initrd-version.img<br \/>#boot=\/dev\/hda<br \/>default=0<br \/>timeout=10<br \/>splashimage=(hd0,1)\/grub\/splash.xpm.gz<\/p>\n<p>title Install CentOS 5.4<br \/>&nbsp;&nbsp;&nbsp;&nbsp;kernel (hd0,1)\/isolinux\/vmlinuz<br \/>&nbsp;&nbsp;&nbsp;&nbsp;initrd (hd0,1)\/isolinux\/initrd.img<\/p>\n<p>4.&nbsp;&nbsp;\u5728Linux\u4e0b\uff0c\u4f9d\u6b21\u6267\u884c\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>[root@localhost ~]# grub<\/p>\n<p>grub&gt; root (hd&lt;\u6572TAB\u952e&gt;<br \/> Possible disks are:&nbsp;&nbsp;hd0 hd1&nbsp;&nbsp;\u6ce8\uff1ahd0\u662f\u786c\u76d8\uff0chd1\u662fU\u76d8<\/p>\n<p>grub&gt; root (hd1,&lt;\u6572TAB\u952e&gt;<br \/> Possible partitions are:<br \/>&nbsp;&nbsp; Partition num: 0,&nbsp;&nbsp;Filesystem type is fat, partition type 0xb<br \/>&nbsp;&nbsp; Partition num: 1,&nbsp;&nbsp;Filesystem type is fat, partition type 0xb<\/p>\n<p>grub&gt; root (hd1,1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6ce8\uff1a(hd1,1)\u662fU\u76d8\u7684\u7b2c2\u4e2a\u5206\u533a<br \/> Filesystem type is fat, partition type 0xb<\/p>\n<p>grub&gt; setup (hd1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u6ce8\uff1a\u5b89\u88c5 GRUB \u7684\u5f15\u5bfc\u7a0b\u5e8f\u7684stage1\u5230U\u76d8\u7684MBR<br \/> Checking if &#8220;\/boot\/grub\/stage1&#8221; exists&#8230; yes<br \/> Checking if &#8220;\/boot\/grub\/stage2&#8221; exists&#8230; yes<br \/> Checking if &#8220;\/boot\/grub\/fat_stage1_5&#8221; exists&#8230; yes<br \/> Running &#8220;embed \/boot\/grub\/fat_stage1_5 (hd1)&#8221;&#8230;&nbsp;&nbsp;15 sectors are embedded.<br \/>succeeded<br \/> Running &#8220;install \/boot\/grub\/stage1 (hd1) (hd1)1+15 p (hd1,1)\/boot\/grub\/stage2 \/boot\/grub\/grub.conf<br \/>&#8220;&#8230; succeeded<br \/>Done.<\/p>\n<p>grub&gt; quit<\/p>\n<p>5.&nbsp;&nbsp;OK\uff0c\u8bbe\u7f6eBIOS\uff0cU\u76d8\u542f\u52a8\uff0c\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br \/>(\u4e0b\u9762\u662f4G U\u76d8 )<\/p>\n<p>1.&nbsp;&nbsp;4G U\u76d8\uff0c\u6574\u4e2aU\u76d8\u4e00\u4e2a\u5206\u533a\u5373\u53ef\uff08\u5982\u4f55\u5206\u533a\uff1f\u8bf7\u53c2\u8003\u524d\u9762\u7684\u7b2c1\u6b65\uff09\uff0cFAT32\uff08\u8fd9\u6837U\u76d8\u4e5f\u53ef\u4ee5\u5728Win\u4e0b\u4f7f\u7528\uff09\u3002<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;\u5982\u679c\u5728Linux\u4e0b\u7528fdisk\u547d\u4ee4\u67e5\u770b\uff0c\u5982\u4e0b\uff1a<br \/>&nbsp;&nbsp;&nbsp;&nbsp;[root@localhost ~]# fdisk -l \/dev\/sda<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;Disk \/dev\/sda: 4173 MB, 4173332480 bytes<br \/>&nbsp;&nbsp;&nbsp;&nbsp;129 heads, 62 sectors\/track, 1019 cylinders<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Units = cylinders of 7998 * 512 = 4094976 bytes<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System<br \/>&nbsp;&nbsp;&nbsp;&nbsp;\/dev\/sda1&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1019&nbsp;&nbsp;&nbsp;&nbsp; 4074950&nbsp;&nbsp;&nbsp;&nbsp;b&nbsp;&nbsp;W95 FAT32<\/p>\n<p>2.&nbsp;&nbsp;\u5728Linux\u4e0b\uff0c\u5728U\u76d8\u6839\u76ee\u5f55\u521b\u5efaboot\u6587\u4ef6\u5939\uff0c\u7136\u540e\u5c06 \/boot\u4e2d\u7684 grub\u6587\u4ef6\u5939 \u6574\u4e2a \u590d\u5236 \u5230U\u76d8\u7684boot\u6587\u4ef6\u5939\uff1b<br \/>&nbsp;&nbsp;&nbsp;&nbsp;\u4ece\u7f51\u4e0a\u4e0b\u8f7d CentOS-5.4-i386-bin-DVD.iso\uff0c\u5c06\u5176\u653e\u5728U\u76d8\u6839\u76ee\u5f55\uff1b<br \/>&nbsp;&nbsp;&nbsp;&nbsp;\u5c06CentOS-5.4-i386-bin-DVD.iso\u4e2d\u7684isolinux\u6587\u4ef6\u5939\u63d0\u53d6\u51fa\u6765\uff0c\u653e\u5728U\u76d8\u6839\u76ee\u5f55\uff1b\uff1b\uff08\u5982\u679c\u662fFefora 10\/11\/12\uff0c\u5219\u9700\u8981\u5c06Fefora*.iso\u4e2d\u7684images\u6587\u4ef6\u5939 \u4e5f \u63d0\u53d6\u51fa\u6765\uff0c\u653e\u5728U\u76d8\u6839\u76ee\u5f55\u4e2d\uff09<\/p>\n<p>3.&nbsp;&nbsp;\u7f16\u8f91U\u76d8\u4e2d\u7684 \/boot\/grub\/grub.conf \u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p>#<br \/># Note that you do not have to rerun grub after making changes to this file<br \/># NOTICE:&nbsp;&nbsp;You have a \/boot partition.&nbsp;&nbsp;This means that<br \/>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;all kernel and initrd paths are relative to \/boot\/, eg.<br \/>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;root (hd0,10)<br \/>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;kernel \/vmlinuz-version ro root=\/dev\/hda3<br \/>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;initrd \/initrd-version.img<br \/>#boot=\/dev\/hda<br \/>default=0<br \/>timeout=10<br \/>splashimage=(hd0,0)\/grub\/splash.xpm.gz<\/p>\n<p>title Install CentOS 5.4<br \/>&nbsp;&nbsp;&nbsp;&nbsp;kernel (hd0,0)\/isolinux\/vmlinuz<br \/>&nbsp;&nbsp;&nbsp;&nbsp;initrd (hd0,0)\/isolinux\/initrd.img<\/p>\n<p>4.&nbsp;&nbsp;\u5728Linux\u4e0b\uff0c\u4f9d\u6b21\u6267\u884c\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>[root@localhost ~]# grub<br \/>grub&gt; root (hd&lt;\u6572TAB\u952e&gt;<br \/> Possible disks are:&nbsp;&nbsp;hd0 hd1&nbsp;&nbsp;\u6ce8\uff1ahd0\u662f\u786c\u76d8\uff0chd1\u662fU\u76d8<\/p>\n<p>grub&gt; root (hd1,0)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u6ce8\uff1a(hd1,0)\u662fU\u76d8\u7684\u7b2c\u4e00\u4e2a\u5206\u533a<br \/> Filesystem type is fat, partition type 0xb<\/p>\n<p>grub&gt; setup (hd1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6ce8\uff1a\u5b89\u88c5 GRUB \u7684\u5f15\u5bfc\u7a0b\u5e8f\u7684stage1\u5230U\u76d8\u7684MBR<br \/> Checking if &#8220;\/boot\/grub\/stage1&#8221; exists&#8230; yes<br \/> Checking if &#8220;\/boot\/grub\/stage2&#8221; exists&#8230; yes<br \/> Checking if &#8220;\/boot\/grub\/fat_stage1_5&#8221; exists&#8230; yes<br \/> Running &#8220;embed \/boot\/grub\/fat_stage1_5 (hd1)&#8221;&#8230;&nbsp;&nbsp;15 sectors are embedded.<br \/>succeeded<br \/> Running &#8220;install \/boot\/grub\/stage1 (hd1) (hd1)1+15 p (hd1,0)\/boot\/grub\/stage2 \/boot\/grub\/grub.conf<br \/>&#8220;&#8230; succeeded<br \/>Done.<\/p>\n<p>grub&gt; quit<\/p>\n<p>5.&nbsp;&nbsp;OK\uff0c\u8bbe\u7f6eBIOS\uff0cU\u76d8\u542f\u52a8\uff0c\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<br \/>+++++++++++++++++++++++++++++++++++++++++++++++++++++++<\/p>\n<p>\u4e0b\u9762\u662f\u5728\u7f51\u7edc\u627e\u7684\u8d44\u6599<\/p>\n<p>Install CentOS directly from usb drive<\/p>\n<p><a href=\"http:\/\/lists.centos.org\/pipermail\/centos\/2009-April\/074475.html\" target=\"_blank\" rel=\"external\">http:\/\/lists.centos.org\/pipermail\/centos\/2009-April\/074475.html<\/a><\/p>\n<p>1.&nbsp;&nbsp;&nbsp;&nbsp;Using fdisk, I created two partitions on the drive:&#160;&#160;&#160;&#160;\/dev\/sdc1 = 15 MB&#160;&#160;&#160;&#160;\/dev\/sdc2 = The rest&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I marked the first one bootable\u6ce8\uff1a[root@localhost wini]# fdisk -lDisk \/dev\/hda: 120.0 GB, 120034123776 bytes&#8230;\uff08\u8f93\u51fa\u4fe1\u606f\u7565\uff09Disk \/dev\/sda: 4173 MB, 4173332480 bytes&#8230;.\uff08\u8f93\u51fa\u4fe1\u606f\u7565\uff09[root@localhost wini]# [root@localhost wini]# fdisk \/dev\/sdaCommand (m for help): pDisk \/dev\/sda: 4173 MB, 4173332480 bytes255 heads, 63 sectors\/track, 507 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System\/dev\/sda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 507&nbsp;&nbsp;&nbsp;&nbsp; 4072446&nbsp;&nbsp;&nbsp;&nbsp;b&nbsp;&nbsp;W95 FAT32Command (m for help): dSelected partition 1Command (m for help): 11: unknown commandCommand action&nbsp;&nbsp; a&nbsp;&nbsp; toggle a bootable flag&nbsp;&nbsp; b&nbsp;&nbsp; edit bsd disklabel&nbsp;&nbsp; c&nbsp;&nbsp; toggle the dos compatibility flag&nbsp;&nbsp; d&nbsp;&nbsp; delete a partition&nbsp;&nbsp; l&nbsp;&nbsp; list known partition types&nbsp;&nbsp; m&nbsp;&nbsp; print this menu&nbsp;&nbsp; n&nbsp;&nbsp; add a new partition&nbsp;&nbsp; o&nbsp;&nbsp; create a new empty DOS partition table&nbsp;&nbsp; p&nbsp;&nbsp; print the partition table&nbsp;&nbsp; q&nbsp;&nbsp; quit without saving changes&nbsp;&nbsp; s&nbsp;&nbsp; create a new empty Sun disklabel&nbsp;&nbsp; t&nbsp;&nbsp; change a partition&#8217;s system id&nbsp;&nbsp; u&nbsp;&nbsp; change display\/entry units&nbsp;&nbsp; v&nbsp;&nbsp; verify the partition table&nbsp;&nbsp; w&nbsp;&nbsp; write table to disk and exit&nbsp;&nbsp; x&nbsp;&nbsp; extra functionality (experts only)Command (m for help): pDisk \/dev\/sda: 4173 MB, 4173332480 bytes255 heads, 63 sectors\/track, 507 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;SystemCommand (m for help): nCommand action&nbsp;&nbsp; e&nbsp;&nbsp; extended&nbsp;&nbsp; p&nbsp;&nbsp; primary partition (1-4)pPartition number (1-4): 1First cylinder (1-507, default 1): Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-507, default 507): 15MCommand (m for help): nCommand action&nbsp;&nbsp; e&nbsp;&nbsp; extended&nbsp;&nbsp; p&nbsp;&nbsp; primary partition (1-4)pPartition number (1-4): 2First cylinder (16-507, default 16): Using default value 16Last cylinder or +size or +sizeM or +sizeK (16-507, default 507): Using default value 507Command (m for help): aPartition number (1-4): 1Command (m for help): pDisk \/dev\/sda: 4173 MB, 4173332480 bytes255 heads, 63 sectors\/track, 507 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System\/dev\/sda1&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;15&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;120456&nbsp;&nbsp; 83&nbsp;&nbsp;Linux\/dev\/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 507&nbsp;&nbsp;&nbsp;&nbsp; 3951990&nbsp;&nbsp; 83&nbsp;&nbsp;LinuxCommand (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.WARNING: Re-reading the partition table failed with error 16: \u8bbe\u5907\u6216\u8d44\u6e90\u5fd9.The kernel still uses the old table.The new table will be used at the next reboot.Syncing disks.[root@localhost wini]# fdisk -l \/dev\/sdaDisk \/dev\/sda: 4173 MB, 4173332480 bytes255 heads, 63 sectors\/track, 507 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System\/dev\/sda1&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;15&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;120456&nbsp;&nbsp; 83&nbsp;&nbsp;Linux\/dev\/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 507&nbsp;&nbsp;&nbsp;&nbsp; 3951990&nbsp;&nbsp; 83&nbsp;&nbsp;Linux2.&nbsp;&nbsp;&nbsp;&nbsp;I used dd to copy the diskboot.img to \/dev\/sdc1[root@localhost wini]# mount \/mnt\/temp\/centos54\/CentOS-5.4-i386-bin-DVD.iso \/mnt\/wini\/ -o loop[root@localhost wini]# cd \/mnt\/wini\/[root@localhost wini]# dd if=images\/diskboot.img of=\/dev\/sda124576+0 records in24576+0 records out12582912 bytes (13 MB) copied, 6.0851 seconds, 2.1 MB\/s3. Formatted \/dev\/sdc2 as ext3\uff08\u6211\u4f7f\u7528\u4e86FAT32\uff09 and copied the&#160;&#160;&#160;&#160;iso images there[root@localhost wini]# mkfs.vfat \/dev\/sda4. When I boot from the usb drive, I selected hard&#160;&#160;&#160;&#160;drive install and pointed the installer to&#160;&#160;&#160;&#160;\/dev\/sdc2It worked perfectly!Thanks,&#160;&#160;&#160;&#160;Neil<\/p>\n<p>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br \/>U\u76d8\u5b89\u88c5Fedora 10\/11\u624b\u8bb0\uff08\u8f6c\uff09<\/p>\n<p><a href=\"http:\/\/www.cnblogs.com\/dinglu\/archive\/2009\/10\/04\/1577958.html\" target=\"_blank\" rel=\"external\">http:\/\/www.cnblogs.com\/dinglu\/archive\/2009\/10\/04\/1577958.html<\/a><\/p>\n<p>\u65b0\u62ffX200\uff0c\u5fc3\u4e0b\u75d2\u75d2\u7684\u88c5Fedora\uff0c\u65e0\u5948\u5c0f\u672c\u4e0d\u81ea\u5e26\u5149\u9a71\uff0c\u6240\u4ee5\u53ea\u80fdU\u76d8\u5b89\u88c5\uff0c\u65e0\u7f51\u7edc\u540c\u65f6\u3002\u6298\u817e\u4e86\u4e00\u4e2a\u4e2d\u79cb\u8282\u7ec8\u4e8e\u5927\u529f\u544a\u6210\uff0cF10\u548cF11\u90fd\u88c5\u4e86\u4e00\u6b21\uff0c\u4e0d\u77e5\u9053\u4e3a\u5565F11\u7279\u522b\u6162\u6240\u4ee5\u5378\u4e86\u53c8\u88c5\u4e86F10\uff0c\u4e0d\u8fc7\u4e24\u8005\u7684\u5b89\u88c5\u6b65\u9aa4\u76f8\u540c\uff0c\u7279\u6b64\u603b\u7ed3\u3002<\/p>\n<p>\u4e00. \u5206\u533a<br \/>\u6211\u662f\u4e8b\u5148\u5728Windows XP\u4e0b\u4f7f\u7528\u201c\u6211\u7684\u7535\u8111\u201d\u7684\u7ba1\u7406\u5bf9\u8981\u88c5Fedora\u7684\u533a\u8fdb\u884c\u5212\u5206\u7684\uff0c\u4e00\u5171\u5206\u4e863\u4e2a\u90e8\u5206\uff0c\u6587\u4ef6\u683c\u5f0f\u90fd\u662fext3\uff1a<br \/>1\uff09\u4e00\u4e2a4G\u7684\u90e8\u5206\u4f5c\u4e3aswap\uff0c\u56e0\u4e3a\u5185\u5b58\u672c\u8eab\u662f2G\u7684\uff0c\u8bb0\u5f97\u770b\u8fc7\u597d\u591a\u5730\u65b9\u8bf4swap\u6700\u597d\u662f\u5185\u5b58\u7684\u4e24\u500d\u3002<br \/>2\uff09\u4e00\u4e2a400M\u7684\u90e8\u5206\u6302\u8f7d\/boot\uff0c\u8fd9\u70b9\u6700\u540e\u8bc1\u660e\u5341\u5206\u5fc5\u8981\uff0c\u5982\u679c\u6ca1\u6709\u7ed9\/boot\u6307\u5b9a\u4e00\u4e2a\u4e13\u95e8\u7684\u76d8\u6302\u8f7d\uff0c\u88c5\u5b8c\u4e4b\u540e\u5728\u5f00\u673a\u7684\u65f6\u5019\u65e0\u6cd5\u8fdb\u5165\u6b63\u5e38\u7684linux\u7684grub\u542f\u52a8\u3002<br \/>3\uff09\u4e00\u4e2a20G\u7684\u90e8\u5206\u6302\u8f7d\/\uff0c\u53cd\u6b63\u65b0\u7684\u673a\u5668\u786c\u76d8\u6bd4\u8f83\u5927\u6240\u4ee5\u5c31\u5212\u4e86\u8fd9\u4e48\u591a\u3002U\u76d8\u5f15\u5bfc\u76d8<\/p>\n<p>\u4e8c.\u5236\u4f5cFedora\u7684\u5f15\u5bfcU\u76d8<br \/>1.\u51c6\u5907\u5de5\u4f5c\uff1a<br \/>1)\u786c\u4ef6\uff1a\u4e00\u4e2a4G\u4ee5\u4e0aU\u76d8<br \/>2)\u8f6f\u4ef61\uff1aFedora-10-i386-DVD.iso<br \/>3)\u8f6f\u4ef62\uff1agrubinst-1.1-bin-w32-2007-12-29<br \/>4)\u8f6f\u4ef63\uff1agrub4dos-0.4.3-2008-05-02.zip<br \/>5)\u8f6f\u4ef64\uff1aWinImage<\/p>\n<p>2.\u6b65\u9aa4\uff1a<br \/>1) \u7528\u8f6f\u4ef62\u91cc\u9762\u7684grubinst_gui.exe\u7ed9U\u76d8\u5b89\u88c5grub\uff0c\u88c5\u7684\u65f6\u5019\u53ea\u9700\u9009\u4e2d\u201c\u78c1\u76d8\u201d\uff0c\u5e76\u4e14\u9009\u62e9U\u76d8\u5bf9\u5e94\u7684\u76d8\u7b26\uff0c\u70b9\u51fb\u201c\u5b89\u88c5\u201d\u5373\u53ef\uff0c\u5982\u679c\u51fa\u73b0 \u201cBad partition\u201d\u7684\u9519\u8bef\uff0c\u53ea\u8981\u5728\u989d\u5916\u53c2\u6570\u7684\u5730\u65b9\u52a0\u4e0a\u2014skip-mbr-test\u5373\u53ef\uff0c\u518d\u70b9\u201c\u5b89\u88c5\u201d\u5c31\u53ef\u4ee5\u51fa\u73b0successful\u7684\u5b57\u6837\u3002<br \/>2)\u62f7\u8d1dgrub4dos\u4e0bgrldr\u548cmenu.lst\u5230U\u76d8\u3002<br \/>3)\u62f7\u8d1dFedora-10-i386-DVD.iso\u5230U\u76d8\u3002<br \/>4) \u5b89\u88c5WinImage\u3002\u5728U\u76d8\u4e0b\u9762\u5efa\u4e24\u4e2a\u76ee\u5f55\u5206\u522b\u4e3aboot\u548cimages\uff0c\u4f7f\u7528WinImage\u4eceFedora-10-i386-DVD.iso\u4e2d\u7684 pxeboot\u4e2d\u63d0\u53d6vmlinuz\u548cinitrd.img\u5230U\u76d8\u7684boot\u76ee\u5f55\uff0c\u63d0\u53d6images\u6574\u4e2a\u6587\u4ef6\u5939\u5230U\u76d8\u7684image\u76ee\u5f55\u4e0b\u3002\u5982\u679c\u4e0d\u63d0\u53d6 images\u51fa\u6765\uff0c\u5728\u7a0d\u540e\u5b89\u88c5\u7684\u8fc7\u7a0b\u4e2d\u5c31\u4f1a\u51fa\u73b0\u627e\u4e0d\u5230install.img\u7684\u60c5\u51b5\uff0c\u800c\u5982\u679c\u53ea\u662f\u5355\u72ec\u63d0\u53d6\u51fainstall.img\uff0c\u5728\u5b89\u88c5\u65f6\u53c8\u4f1a\u63d0\u793a\u8981\u8054 \u7f51\u5b89\u88c5\uff0c\u6240\u4ee5\u8981\u4f7f\u8fd9\u4e9b\u95ee\u9898\u90fd\u4e0d\u51fa\u73b0\uff0c\u5c31\u9700\u8981\u5728\u4e00\u5f00\u59cb\u7684\u65f6\u5019\u5c06\u6574\u4e2aimages\u7684\u5185\u5bb9\u90fd\u63d0\u53d6\u51fa\u6765\u3002<br \/>WinImage\u7684\u4f7f\u7528\u65b9\u6cd5\uff1a\u9996\u5148\u6253\u5f00\u9700\u8981\u63d0\u53d6\u7684\u6587\u4ef6\uff0c\u7136\u540e\u627e\u5230\u9700\u8981\u63d0\u53d6\u7684\u6587\u4ef6\u5939\u6216\u8005\u6587\u4ef6\uff0c\u53cc\u51fb\u6216\u8005\u70b9\u51fb\u53f3\u952e\uff0c\u9009\u62e9\u201cExtract\u201d\uff0c\u4fdd\u5b58\u5230\u9700\u8981\u7684\u4f4d\u7f6e\u5373\u53ef\u3002<br \/>5)\u7f16\u8f91menu.lst\uff0c\u52a0\u5165\u4ee5\u4e0b\u5185\u5bb9\uff1a<br \/>title F10 setup<br \/>root (hd0,0)<br \/>kernel \/boot\/vmlinuz root=\/dev\/hda1<br \/>initrd \/boot\/initrd.img<\/p>\n<p>\u6ce8\u610f\uff1aroot\u540e\u9762\u6709\u4e00\u4e2a\u7a7a\u683c\uff0c\u7136\u540ekernel\u548cinitrd\u540e\u9762\u7684\u8def\u5f84\u5c31\u662f\u4e0a\u4e00\u6b65\u63d0\u53d6vmlinuz\u548cinitrd\u5728U\u76d8\u6240\u653e\u7684\u4f4d\u7f6e\uff0c\u5373boot\u6587\u4ef6\u5939\u4e0b\u3002\u5982\u679c\u662f\u6309\u6b65\u9aa4\u6765\u7684\u8bdd\u5c31\u76f4\u63a5\u4f7f\u7528\u4e0a\u9762\u7684\u5185\u5bb9\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>6)\u542f\u52a8\u76d8\u5b89\u88c5\u5b8c\u6bd5\u3002\u5305\u62ec:<br \/>grldr<br \/>menu.lst<br \/>\/boot<br \/>&nbsp;&nbsp;vmlinuz<br \/>&nbsp;&nbsp;initrd.img<br \/>\/images<br \/>&nbsp;&nbsp;\u4eceF10\u955c\u50cfimages\u6587\u4ef6\u5939\u4e2d\u63d0\u53d6\u7684\u6240\u6709\u6587\u4ef6<\/p>\n<p>\u4e09.\u5b89\u88c5Fodera\u6b65\u9aa4<br \/>1.\u6211\u662fIBM\u7684\u673a\u5668\uff0c\u5f00\u673a\u6309F12\uff0c\u9009\u62e9USB\u542f\u52a8\u3002<br \/>2.\u9009\u62e9F10 setup\u8fdb\u5165\uff0c\u6309\u6b65\u9aa4\u64cd\u4f5c\uff0c\u5f53\u63d0\u793a\u8981\u9009\u62e9\u8f7d\u5165\u7684\u955c\u50cf\u65f6\uff0c\u9009\u62e9\/dev\/sdb1\u5373\u53ef\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u627e\u5230\/images\u4e0b\u9700\u8981\u7684\u955c\u50cf\u3002<br \/>3. \u5b89\u88c5\u5f00\u59cb\uff0c\u5f53\u51fa\u73b0\u754c\u9762\u663e\u793a\u201c\u5b89\u88c5\u9700\u8981\u5bf9\u60a8\u7684\u786c\u76d8\u8fdb\u884c\u5206\u533a\u3002\u201d\u7684\u65f6\u5019\uff0c\u9009\u62e9\u201c\u624b\u5de5\u5206\u533a\u201d\u90a3\u4e2a\u9009\u9879\u3002\u7531\u4e8e\u5728\u6211\u7684\u8ba1\u5212\u4e2d\uff0c\u5c06\/dev\/sda8\u4f5c\u4e3aswap\uff0c\u5c06 \/dev\/sda9\u4f5c\u4e3a\/boot\u7684\u6302\u8f7d\u70b9\uff0c\u5c06\/dev\/sda10\u4f5c\u4e3a\/\u7684\u6302\u8f7d\u70b9\uff0c\u4ee5\u6b64\u4e3a\u4f8b\u8fdb\u884c\u8bf4\u660e\u3002\u70b9\u51fb\/dev\/sda8\uff0c\u6309\u201c\u7f16\u8f91\u201d\uff0c\u5728\u5f39\u51fa\u5bf9\u8bdd \u6846\u4e2d\u9009\u62e9\u683c\u5f0f\u5316\u4e3a\u201dswap\u201d\uff0c\u786e\u5b9a\u3002\u5bf9\/dev\/sda9\uff0c\u7f16\u8f91\u65f6\u9996\u5148\u8981\u9009\u62e9\u6302\u8f7d\u4e3a\/boot\uff0c\u7136\u540e\u683c\u5f0f\u5316\u4e3aext3\u3002\u5bf9\/dev\/sda10\uff0c\u7f16\u8f91\u65f6 \u9996\u5148\u8981\u9009\u62e9\u6302\u8f7d\u4e3a\/\uff0c\u7136\u540e\u683c\u5f0f\u5316\u4e3aext3\u3002\u90fd\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u770b\u5230\u8fd9\u4e09\u4e2a\u8bbe\u5907\u540e\u9762\u90fd\u591a\u4e86\u4e00\u4e2a\u683c\u5f0f\u5316\u7684\u5bf9\u52fe\uff0c\u9009\u62e9\u4e0b\u4e00\u6b65\uff0c\u5c06\u8fd9\u4e09\u4e2a\u8bbe\u5907\u683c\u5f0f\u5316\u3002<br \/>4.\u6b64\u540e\u5c31\u6309\u7167\u5b89\u88c5\u6b65\u9aa4\u64cd\u4f5c\u5c31\u53ef\u4ee5\u4e86\uff0c\u4e0d\u4f1a\u6709\u65b0\u7684\u95ee\u9898\u51fa\u73b0\u3002<\/p>\n<p>\u56db.\u51fa\u73b0\u95ee\u9898\u53ca\u603b\u7ed3<br \/>1.grubinst_gui.exe\u521b\u5efa\u5f15\u5bfcgrub\u5931\u8d25\u3002\u89e3\u51b3\u65b9\u6cd5\uff1a\u5728\u989d\u5916\u53c2\u6570\u7684\u5730\u65b9\u52a0\u4e0a\u2014skip-mbr-test\u5373\u53ef\u3002<br \/>2. \u7528U\u76d8\u5f15\u5bfc\u7684\u65f6\u5019\u63d0\u793a\u627e\u4e0d\u5230\u6587\u4ef6.\u539f\u56e0\u662fmenu.lst\u5199\u7684\u4e0d\u5bf9\uff0c\u4e4b\u524d\u6ca1\u6709\u5efa.\/boot\u76ee\u5f55\u5c06vmlinuz\u548cinitrd.img\u5c31\u76f4\u63a5\u653e\u5728\/\u4e0b \u9762\uff0c\u6240\u4ee5\u627e\u4e0d\u5230\uff0c\u6b64\u65f6\u91cd\u5199menu.lst\u5f15\u5bfc\u81f3\u6b63\u786e\u7684\u4f4d\u7f6e\uff0c\u6216\u8005\u50cf\u5b9e\u9645\u91c7\u53d6\u7684\u65b9\u6cd5\uff0c\u5efa\u4e00\u4e2a\/boot\u6587\u4ef6\u5939\u5c06\u6587\u4ef6\u62f7\u8fdb\u53bb\u90fd\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\u3002<br \/>3.\u5728\u5b89\u88c5\u65f6\u9009\u62e9\u4e86\/dev\/sdb1\uff0c\u786e\u4ecd\u7136\u63d0\u793a\u627e\u4e0d\u5230\u5b89\u88c5image\u3002\u539f\u56e0\u662f\u6700\u5f00\u59cb\u7684\u65f6\u5019\u6ca1\u6709\u5c06f10\u955c\u50cf\u4e2d\u7684install.img\u63d0\u53d6\u5230U\u76d8\uff0c\u6240\u4ee5\u5c06\u8be5img\u63d0\u53d6\u51fa\u6765\u653e\u5230U\u76d8\uff0c\u518d\u5230\u8fd9\u4e00\u6b65\u7684\u65f6\u5019\u5c31\u4e0d\u4f1a\u51fa\u9519\u4e86\u3002<br \/>4.\u6309\u71673\u7684\u65b9\u6cd5\uff0c\u5728\u5176\u540e\u67d0\u4e00\u6b65\u4f1a\u5f39\u51fa\u5bf9\u8bdd\u6846\uff0c\u8ba9\u8054\u7f51\u5b89\u88c5\uff0c\u53ef\u662f\u6211\u6ca1\u6709\u7f51\uff0c\u6240\u4ee5\u5b89\u88c5\u53c8\u4e00\u5ea6\u4e2d\u65ad\u3002\u89e3\u51b3\u65b9\u6cd5\u4e3a\uff0c\u5c06f10\u955c\u50cf\u4e2d\u7684\u6574\u4e2aimages\u6587\u4ef6\u5939\u7684\u5185\u5bb9\u90fd\u63d0\u53d6\u5230U\u76d8\u4e2d\u65b0\u5efa\u7684images\u6587\u4ef6\u5939\u4e2d\u3002<br \/>5. \u6700\u521d\u6211\u53ea\u7ed9Fedora\u5212\u5206\u4e86\u4e24\u4e2a\u5206\u533a\uff0c\u5b89\u88c5\u5b8c\u6bd5\u4e4b\u540e\u53d1\u73b0\u65e0\u8bba\u5982\u4f55\u90fd\u8fdb\u4e0d\u4e86Fedora\u7684grub\uff0c\u603b\u662f\u4e00\u5f00\u673a\u5c31\u8fdb\u4e86WinXP\uff0c\u6298\u817e\u4e86\u534a\u5929\u6700\u7ec8\u627e\u5230\u539f \u56e0\uff0c\u5c31\u662f\u6ca1\u6709\u7ed9\/boot\u5212\u5206\u4e00\u4e2a\u5206\u533a\uff0c\u6240\u4ee5\u53ea\u8981\u518d\u591a\u5212\u4e00\u4e2a\u5206\u533a\u7ed9\/boot\u5c31\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\u3002\u8c8c\u4f3cU\u76d8\u5b89\u88c5\u90fd\u9700\u8981\u8fd9\u4e2a\uff0c\u56e0\u4e3a\u6211\u62ff\u5149\u76d8\u88c5\u7684\u65f6\u5019\u6ca1\u6709\u8fd9\u4e2a\u5206\u533a \u4e00\u6837\u53ef\u4ee5\u542f\u52a8\u3002<\/p>\n<p>+++++++++++++++++++++++++++++++++++++++++++++++++++<\/p>\n<p>Installing Fedora 11, 10 or 9 From USB Stick<\/p>\n<p><a href=\"http:\/\/galder.zamarreno.com\/?p=244\" target=\"_blank\" rel=\"external\">http:\/\/galder.zamarreno.com\/?p=244<\/a><\/p>\n<p>Updated on JUL 1, 2009: To install Fedora 11, please follow the instructions given for Fedora 10 below but make sure the bootable partition is slightly bigger because the net install iso on Fedora 11 is bigger than the one in Fedora 10. I gave the bootable partition 512 megs and it worked perfectly.<\/p>\n<p>The aim of this post is to explain how to install Fedora directly from a USB stick containing the Fedora*-DVD.iso image. For those impatient, just go to the Instructions section.<\/p>\n<p>It\u2019s been almost 2 years since I said goodbye to Windows and moved my work laptop to Fedora, and I couldn\u2019t be happier with the move. If you wanna find out why I\u2019m happier with Fedora, just carry on reading my blog over the coming months. For the moment, I\u2019ll be focusing on the Fedora installation process. One of the best things about Fedora is that it gets released twice a year so you keep upgrading your machine to the get the latest features, latest bugs\u2026etc. This means that you end up downloading and burning a Fedora ISO into a brand new DVD every 6 months. As you can imagine, I was quickly piling up DVDs that were useless soon after. So, after having looking around in electronic shops, I realised that USB keys had gone down in price and that you could get an 8GB USB stick for little money. This happened at the same time that I was getting a new laptop at work, so I wondered, what about I get myself one of those sticks, put the latest Fedora image on it and install it from there rather than burning yet another DVD? For sure, installing from an USB key was always going to be faster than from a DVD, so that was a plus as well.<\/p>\n<p>For some reason, maybe because people haven\u2019t tried this that much, it took me a while to find some decent instructions on how to do this. Eventually, this came from Michale Hartley\u2019s comment on Haral Hoyer\u2019s blog entry on \u201cFedora 8 on a USB stick\u201d. However, I had some issues with these instructions, specially when trying to create the bootable partition in the USB stick, so I ended up writing my own set of instructions for Fedora 9:<\/p>\n<p>Installing Fedora 9 from USB stick<br \/>Download Fedora-9-i386-DVD.iso <br \/>Download Fedora-9-i386-netinst.iso <br \/>Create 2 ext3 partitions in USB stick (Hint: GParted is a wicked graphical tool to create partitions): A 200 MB bootable partition and another partition with the rest of space. <br \/>Copy Fedora-9-i386-netinst.iso to 1st partition:<\/p>\n<p>?View Code BASH<br \/>1&nbsp;&nbsp;livecd-iso-to-disk Fedora-9-i386-netinst.iso \/dev\/sdb1 <\/p>\n<p>Copy DVD iso image to 2nd partition:<\/p>\n<p>?View Code BASH<br \/>123&nbsp;&nbsp;mount \/dev\/sdb2 mnt-sdb2\/ cp Fedora-9-i386-DVD.iso mnt-sdb2\/ umount mnt-sdb2\/ <\/p>\n<p>Reboot with USB key inserted. <br \/>Select install from Hard Drive and select \/dev\/sdb2 <br \/>When Fedora 10 was released, I followed the same steps to install as I did for Fedora 9 but I kept getting an error saying that no image could be found in \/dev\/sdb2 even though the Fedora 10 DVD iso image was there and had passed the SHA1SUM test successfully. After exchanging some emails within Red Hat I was pointed to the Installation from a Hard Drive section of the Fedora 10 documentation, which mentioned that install.img had to be present under the images\/ directory in the partition from where Fedora 10 had to be installed.<\/p>\n<p>On my 2nd attempt, I extracted the entire DVD iso and put it in the USB stick so that images\/install.imgwould be found but doing only that didn\u2019t work. In the 2nd phase of the installation, I was told that an image was missing. I just couldn\u2019t understand what the hell was going on, so eventually, after a few further email exchanges, I worked out what needed doing: First, images\/install.img had to be in the USB stick and next to the images\/ folder, you needed to have Fedora-10-i386-DVD.iso. So, here\u2019re the instructions to install Fedora 10 from USB stick:<\/p>\n<p>Installing Fedora 10 from USB stick<br \/>Download Fedora-10-i386-DVD.iso <br \/>Download Fedora-10-i386-netinst.iso <br \/>Create 2 ext3 partitions in USB stick (Hint: GParted is a wicked graphical tool to create partitions): A 200 MB bootable partition and another partition with the rest of space. <br \/>Copy Fedora-10-i386-netinst.iso to 1st partition:<\/p>\n<p>?View Code BASH<br \/>1 livecd-iso-to-disk Fedora-10-i386-netinst.iso \/dev\/sdb1 <\/p>\n<p>Extract images\/ folder from Fedora-9-i386-DVD.iso and copy to 2nd partition:<\/p>\n<p>?View Code BASH<br \/>1234&nbsp;&nbsp;mount -t iso9660 Fedora-10-i386-DVD.iso mnt-dvd\/ -o loop mount \/dev\/sdb2 mnt-sdb2\/ cp -rp mnt-dvd\/images mnt-sdb2\/ umount mnt-dvd\/ <\/p>\n<p>Note: If you do a \u2018cp -a\u2019 as recommended in the Installing from Hard Drive section, you\u2019ll get an error like this, so just use \u2018cp -rp\u2019 instead: <\/p>\n<p>SELinux is preventing cp from creating a file with a context of iso9660_t on a filesystem. Usually this happens when you ask the cp command to maintain the context of a file when copying between file systems, \u201ccp -a\u201d for example. Not all file contexts should be maintained between the file systems. For example, a read-only file type like iso9660_t should not be placed on a r\/w system. \u201ccp -P\u201d might be a better solution, as this will adopt the default file context for the destination. .<\/p>\n<p>Copy DVD iso image to 2nd partition:<\/p>\n<p>?View Code BASH<br \/>12&nbsp;&nbsp;cp Fedora-10-i386-DVD.iso mnt-sdb2\/ umount mnt-sdb2\/ <\/p>\n<p>Reboot with USB key inserted. <br \/>Select install from Hard Drive and select \/dev\/sdb2 <br \/>And that\u2019s it. I\u2019m fully aware that these instructions could be simplified\/reduced but can\u2019t be bothered to do that right now. It\u2019s not something that I\u2019m doing on a daily basis and it works, so I\u2019m happy to leave them as they are for the time being. If anyone has any suggestions, please feel free to comment.<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>(\u4e0b\u9762\u662f8G U\u76d8 ) 1.&nbsp;&nbsp;8G U\u76d8\uff0c\u4e24\u4e2a&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-590","post","type-post","status-publish","format-standard","hentry","category-Linux"],"_links":{"self":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=590"}],"version-history":[{"count":0,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/590\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}