-
Notifications
You must be signed in to change notification settings - Fork 1
/
centos7 install tip.txt
41 lines (35 loc) · 1.21 KB
/
centos7 install tip.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
1、错误描述
[sdb] No Caching mode page found
[sdb] Assuming drive cache:write through
....
Could not boot
/dev/root does not exist
2、进入安装界面时,按下e键
将
vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 rd.live.check quiet
更改为(即更改inst.stage2=hd:后面的内容即可)
vmlinuz initrd=initrd.img inst.stage2=hd:/dev/sdb4:/ quiet
说明:
sdb4是你U盘的挂载名称,可以通过 ls /dev/sd*获取。
一般是sdb1,因为硬盘一般是sda,可能会有不同,具体看情况。
再按下CTRL + X 快捷键即可继续安装了。
初始化:
#!/bin/bash
yum -y install ntpdate
yes | cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
/usr/sbin/ntpdate us.pool.ntp.org
hwclock -w
yum -y update
yum -y groupinstall 'Development Tools'
yum install -y wget ftp net-tools telnet python-setuptools python-devel openssl-devel epel-release
yum clean all
yum -y install python-pip tree
systemctl disable firewalld
systemctl stop firewalld
setenforce 0
sed -i "s/^SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
crontab -r
echo "*/10 * * * * /usr/sbin/ntpdate us.pool.ntp.org" >> crontab.txt
crontab crontab.txt
rm -f crontab.txt
echo "unset MAILCHECK" >> /etc/profile