一半君的总结纸

听话只听一半君

已经有CentOS 7的ThinkPad T410上再装个win8到光驱位(Ultrabay)硬盘双系统多重启动

果然还是windows才是最好用的

之前只有CentOS,被装在了主硬盘,闲置的光驱位硬盘是xfs文件系统,win8安装优盘的制作用的是小工具Rufus
rufus_en

# 可以看到光驱位硬盘是/dev/sdb1
df -k

如果在linux下可以这样(快速)格式化

sudo yum install ntfsprogs -y
sudo mkfs.ntfs -f /dev/sdb1

如果用win安装盘启动后,可以用repair my computer里的命令行工具按此操作

Start DISKPART

Type LIST DISK and identify your HDD disk number (from 0 to n disks).

Type SELECT DISK <n> where <n> is your HDD disk number.

Type LIST PARTITION

Type SELECT PARTITION <n> where <n> is your partition number of the last drive (Drive 0 Unallocated Space 20 Gb)

Type CREATE PARTITION PRIMARY

Type ACTIVE

Type FORMAT FS=NTFS QUICK

Type ASSIGN

Type EXIT twice (one to get out of DiskPart, the other to exit the command line tool)

then,,, try to install Windows 8 again....

可是你安装的时候还是看到

We couldn't create a new partition or locate an existing one. For more information, see the Setup log files.

看有人说这时候需要把BIOS里光驱位硬盘挪到第一个,结果还是不行,于是在BIOS里把主硬盘从Boot priority order里exclude掉,我勒个去,这次终于可以了

装好以后(win+x在disk management里最好分成两个区,以后重灌的时候容易些),可以看看这里,此时当然是没有centos的了,win8注册可以找vl mak号,也可以用KMSPico(网上有好多假的)

全搞好以后,把主硬盘再加回Boot priority order,放到第一个,再开后当然windows启动菜单没了,又直接进linux了,下面添加win启动菜单

root身份运行下面命令后,找到 Found windows 8 (loader) on sda8……这一段,贴到 /etc/grub2.cfg的最后面,操作步骤见此 总感觉不应该这样,因为grub2.cfg顶上写了别手动改

#grub2-mkconfig

dual boot_1

重启后就有菜单了,但是上面有一大排菜单,我想搞少点

## Install yum utils ##
yum install yum-utils

## Package-cleanup set count as how many old kernels you want left ##
package-cleanup --oldkernels --count=2

上面的命令会删掉老的,留下最新的2个,教程见这里
/etc/yum.conf 里 installonly_limit=2 可以让以后只装最多2个

之后看到boot menu里还有很多rescue !@@#$,在/boot里还剩下很多 0-rescue-!@#$ 的文件夹和.img文件,我都删了…,最后

grub2-mkconfig -o /etc/grub2.cfg

了一下就好了

设默认菜单,从0开始

grub2-set-default 2

dual boot_2

ps:插了个罗技无线鼠标接收器以后,centos启动时候黑屏时有行警告信息

logitech-djreceiver 0003:046D:C52B.0003: logi_dj_raw_event: invalid device index:0

搜了下大家说kernel 3.11以后就会没了,我的还是3.10,看看最新到多少了

yum list updates 'kernel*'

目前还是只有3.10,先忍着好了

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: