Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3649420
  • 博文数量: 880
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 6155
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-11 09:12
个人简介

To be a better coder

文章分类

全部博文(880)

文章存档

2022年(5)

2021年(60)

2020年(175)

2019年(207)

2018年(210)

2017年(142)

2016年(81)

分类: LINUX

2018-11-29 16:16:03

制作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盘)

阅读(1974) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~