通过U盘安装CentOS 6.0


近期客户公司打算给一台老服务器安装CentOS,计划是安装CentOS6,因为客户的服务器(HP G350)是个老款的服务器,不支持64bit,是于是从网上下载了CentOS-6.0-i386-bin-DVD.iso,准备刻盘才想起来这玩意是4.7G……坑爹呀!于是又找了一张CentOS-5.5-i386-bin-DVD.iso,兴冲冲的来到机房一看服务器哭了……NND丫光驱居然是CD的,想偷懒是不行了,于是乎用只能用U盘了

遇到的问题:
先用格式化成FAT32,然后用UltraISO把ISO写入硬盘映像……,选择USB-HDD+,再删除U盘里的除images和syslinux的文件,再把CentOS-6.0-i386-bin-DVD.iso拷到U盘里(以前5.3和5.5都是这么做的)拷的时候才想起FAT32格式不支持4G以上的大文件……能再杯具点吗?那么就用syslinux来做吧。

第一步:给U盘分区
首先先查看了一下U盘的盘符输入:“sudo fdisk -l”显示表明我的U盘是/dev/sdb,将U盘卸载:sudo umount /dev/sdb
sudo fdisk /dev/sdb
1、Command (m for help):输入“p”查看U盘现有分区(Enter)
     我U盘以前在windows下用的,查看后显示有4个分区,这要一个个删除
2、Command (m for help):输入“d”删除分区(Enter)
      Partition number (1-4):输入“1”选择要删除的分区号(Enter)
     其它分区以此类推全部删除完
3、Command (m for help):输入“n”创建新的分区(Enter)
      e     extended
      p     primary partition(1-4)
     输入“p”(Enter)
4、Command (m for help):输入“1”(Enter)
5、First sector (2048-15974336,default 2048):直接Enter
      Last sector,+煌+size{K,M,G} (2048-15974336,default 15974336):输入“+1000M”(Enter)
     这个分区我分的是1000M大小
6、Command (m for help):输入“t”更改分区类型(Enter)
      Selected partition:输入“1”要更改类型的分区号(Enter)
      Hex code (type L to List codes):输入“b”转换分区格式
     Changed system type of partition 1 to b(W95 FAT32)
7、Command (m for help):输入“a”切换启动标志
      Partition number(1-4):输入“1”
8、分第二个分区,步骤同1到5的步骤,就是在第5步时不用输入大小,直接Enter就可以了
9、Command (m for help):输入“w”保存配置
     提示:WARNING:If you have created or modified any DOS 6.x
                   partitions,please see the fdisk manual page for additional information.
                  Syncing disks
 

第二步:格式化分区
1、格式化第一分区:sudo mkfs.msdos /dev/sdb1
提示:mkfs.msdos 3.0.9 (31 jan 2010)
2、格式化第二分区:sudo mkfs.ext2 /dev/sdb2
提示:
mke2fs 1.41.14 (22-Dec-2010)
文件系统标签=
操作系统:Linux
块大小=4096 (log=2)
分块大小=4096 (log=2)
Stride=0 blocks, Stripe blocks
435456 inodes, 1740544 blocks
87027 blocks (5.00%) reserved for the super user
第一个数据块=0
Maximum filesystem blocks=1782579200
54 block groups
32768 blocks per group, 32768 fragments per group
8064 inodes per groupSuperblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
正在写入inode表: 完成
Writing superblocks and filesystem accounting information: 完成
This filesystem will be automatically checked every 30 mounts or180 days, whichever comes first.  Use tune2fs -c or -i to override.

  • 1
  • 2
  • 3
  • 4
  • 下一页

相关内容