Laptop was reloaded.

I have changed the hard drive of my laptop, a new 120 GB SSD.
I thought it would only take me about half afternoon to reload the computer operation system. However, I met a lot of troubles during the re-load.

I will list the troubles here, and record most of the solution in v.ftliang.com in Chinese.

The followings are the troubles,

1. Hybrid drive causes the boot up issue.
Windows 7 alway install the 100 MB system boot up partition on the second drive, which is a low volume SSD and it is cannot be the boot up drive.
I had to install the new SSD on other computer with only this SSD was presented. At the frist system reboot, I powered off and moved the SSD on my laptop. My laptop and system resumed.

2. Install CentOS on Hybrid drive.
My second on board SSD is on 8 GB. It is 10 % of the new SSD. It is a pity if I do not use it. However, I do not know how to use it with such a low volume.
I began to think to install a linux on it. 8 GB is enough for linux and I do not need so many volume in linux.
I met the same problem when install CentOS 6.4 on the second drive.
The install is fine, but the system alway boot from the first drive, the windows 7 drive.
Then I installed grub4dos, and more troubles.

3. Install grub4dos in Windows7 with boot.ini
Windows7 still supports boot.ini file to add a boot up menu.
Most of the topic online said that you should put the boot.ini file on the C: drive which windows7 installed. However, the right place should be the hiden 100 MB partition.
First, you need to add a drive letter “path name” in the drive manager.
Right click my computer, manage, disk management, right click the 100 MB partition and Change drive letter and paths.
Then, you can see the drive in my computer.
Creat boot.ini with contents below, and copy grldr, grldr.mbr, menu.lst to the root of the 100MB partition.
>>
[boot loader]
[operating systems]
c:\grldr.mbr="Grub4Dos, a CentOS inside..."

>>

4. Grub4Dos cannot find any linux files.
Grub4Dos could only support ext2 or ext3, and I used ext4 for the whole disk. I reinstalled the CentOS with 200 MB drive for /boot with ext2 and others for / with ext4.
Now edit the menu.lst to meet the drive info, the second disk is hd1. So the menu.lst may like the following,
>>
default=0
timeout=0
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-358.6.2.el6.i686)
root (hd1,0)
kernel /vmlinuz-2.6.32-358.6.2.el6.i686 ro root=/dev/sdb2 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-358.6.2.el6.i686.img

>>

5. My laptop, samsung np700, was designed for windows, and drivers must be from samsung.
My hybird GPU cannot work very well, because samsung do not let my disable one of the GPUs.

6. Broadcom wireless driver for linux also took me some time to figure out.
a. Figure out that you have the broadcom wireless chip.
[user@host ~]$ /sbin/lspci | grep Broadcom

b. Download the driver from http://www.broadcom.com/support/802.11/linux_sta.php
c. upzip
[root@host ~]# mkdir -p /usr/local/src/hybrid-wl
[root@host hybrid-wl]# cd /usr/local/src/hybrid-wl
[root@host hybrid-wl]# tar xvfz /path/to/the/tarball/hybrid-portsrc-x86_64-v5.10.91.9.3.tar.gz

d. Compile the driver.
make API=WEXT
The API=WEXT is important, even I don’t know what it is. If this is missing, I cannot get through.
e. cp -rf wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
e’. Before Load the driver, we’d better disable the useless driver.

# lsmod | grep “b43\|ssb\|bcma\|wl”
If any of these are installed, remove them:
# rmmod b43
# rmmod ssb
# rmmod bcma
# rmmod wl

To blacklist these drivers and prevent them from loading in the future:
# echo “blacklist ssb” >> /etc/modprobe.d/blacklist.conf
# echo “blacklist bcma” >> /etc/modprobe.d/blacklist.conf
# echo “blacklist b43” >> /etc/modprobe.d/blacklist.conf

f. Load the core and driver.
[root@host ~]# depmod `uname -r`
[root@host hybrid-wl]# modprobe wl

g. insmod wl.ko
h. Make it auto start.
# echo modeprobe wl >> /etc/rc.local (Fedora/SUSE)
or
[root@host hybrid-wl]# cp -vi /usr/local/src/hybrid-wl/wl.ko /lib/modules/`uname -r`/extra/
[root@host ~]# depmod $(uname -r)

7. ATI graphic card driver.
Unzip the zip file and chmod 777 the .run file.
Then, ./amd-catalyst-13.4-linux-x86.x86_64.run
The .run file will set up everything right. You may need a restart of the computer.

8. CentOS and ntfs support.
rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
yum install fuse-ntfs-3g

Of cause you may need to find the right version of rpm in http://pkgs.repoforge.org/rpmforge-release/ folder.

9. A USB 3.0 port does not work which is caused by the ntfs support.

10. Time issue in dual system.
In CentOS, System–>Administration–>Date & Time in Time Zone tab, uncheck “System clock uses UTC”.
Set or sync the time again, the time will be the same in dual system.

评论已关闭。