制作U盘安装centos:
1,U盘分区
[root@localhost /]# fdisk -l /dev/sdb
Disk /dev/sdb: 7.5 GiB, 8006926336 bytes, 15638528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x719dcc2f
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 500000 497953 243.1M 83 Linux---------------------fat32,作为引导
/dev/sdb2 501760 15638527 15136768 7.2G 83 Linux--------------------ext4 ,存放iso镜像
[root@localhost /]#
2,挂载及数据copy(复制syslinux目录到引导分区,iso镜像copy到镜像分区),修改isolinux.cfg和anaconda-ks.cfg文件指定分区
[root@localhost /]# mount /dev/sdb1 /mnt/usb1
[root@localhost /]# mount /dev/sdb2 /mnt/usb2
[root@localhost /]# ls /mnt/usb2
images yunhaiOS_75_sda.iso
[root@localhost /]# ls /mnt/usb1
anaconda-ks.cfg syslinux
[root@localhost /]#
3,安装syslinux(windows下操作,需先安装syslinux)
插上U盘windows下执行syslinux64.exe -a -m H:(U盘)
阅读(2031) | 评论(0) | 转发(0) |