u盘安装centos 7.2

在Mac环境下,将Linux的ISO镜像生成一个Linux的安装盘,和Linux下差很少,只是Mac下有一些本身的工具。linux

步骤以下:ios

一、在终端下,将ISO镜像转换为DMG格式:centos

$ hdiutil convert -format UDRW -o ~/linux.dmg /tmp/linux.iso工具

二、插入USB盘,而后在终端下,查找该盘的设备名:ui

$ diskutil listcentos7

以上显示该盘的设备名是: /dev/disk1orm

也能够经过“磁盘工具”里面选择磁盘(不是分区),来查看其信息,得到设备名。ip

三、卸载USB盘(插入时已经自动挂载了),可是不要推出。在终端下:get

$ diskutil umountDisk /dev/disk1 Unmount of all volumes on disk1 was successfulit

也能够经过“磁盘工具”进行卸载。

四、镜像上面生成的DMG内容到USB盘,在终端下:

$ sudo dd if=linux.dmg of=/dev/rdisk1 bs=1m

此处要千万注意,指定的of别写错了,不然悔之晚矣。另外,of参数指定的设备名,能够用上面找到的/dev/disk1,也能够用/dev/rdisk1,此处的“r”听说会写入较快。

另外,若是报错:“dd: Invalid number `1m'”,多是使用的不一样版本的dd,能够换为bs=1M试试。

若是报错:“dd: /dev/diskN: Resource busy”,多是上面的步骤中没有完成卸载USB盘。

五、推出USB盘。在上面复制以后,系统可能会报错,“此电脑不难读取能插入的磁盘”,没必要理会,直接推出便可。也能够在终端下推出:

$ diskutil eject /dev/disk1

或者在“磁盘工具”里面推出。

使用该USB盘引导启动便可进行Linux的安装。

我这边是centos7.2因此直接安装在个人thindpad上面没问题 若是是比较旧的如7.0 可能不能识别u盘镜像: 按tab 将命令修改成:>vmlinuz initrd=initrd.img linux dd quiet 查看本身的u盘例如: /dev/sdc

再次启动 而后将底下的命令改为:>vmlinuz initrd=initrd.img inst.stage2=hd:/dev/sdc4 quiet

Sdc4得改为你本身的U盘所对应的名称,而后回车。若是你没有输错的话就应该会来到选择语言的界面了,再接着就是图形化设置界面.

安装完成,接下来个人thinkpad提示错误了,由于我选了gnone界面,但是加载不错来提示: "A TPM error (6) occurred attempting to read a pcr value"

在ArchLinux论坛找到了答案: just activate the security chip in the bios, that should work, too. similar to what RikT wrote, on my thinkpad the error message was gone after i enabled the security chip in the bios, changing it from inactive to active. so it seems you can get rid of the error message by either activating or disabling the security chip.

I found my Motherboard was doing problem. The same hard disk is running the OS fine on other machine.

把主板上面的security,打开就能够了. 接下来提示让我接受协议我选择c 继续,就ok了进入漂亮的界面了

相关文章
相关标签/搜索