Win7和Linux双系统分区草案(不断更新)
从0磁道往外依次如下:
100M Win7 保留区
1G Linux boot区
50G Win7 系统盘C
20G Win7 Users
30G Win7 应用程序区
10G Win7 数据区
50G Win7 下载区
200G Linux 根分区
50G Linux home区
16G Linux swap区
网络参考资料:
Hardware: ThinkPad, 8G RAM, 500G Disk.
*****Windows 7 Installation Note*****
I. When installing Windows 7 OS from four backup CDs, press Shift+F10 keys
before being asked to input the username and password on screen. Then on the C
MD window, type the following commands:
Diskpart
List disk
Select disk 0
Detail disk
Select volume 3
Delete volume /* Delete the backup media partition given by the Windows OS
Installation, the size of this partition is about 15G. */
Detail disk
Select volume 2
Shrink DESIRED=377514 /*Set the size of Windows 7 OS “C” partition. */
Detail disk
Create partition primary size=10245 /* In fact, the size here is not
important because the system will assign all remained space to this partition.
*/
Assign letter=q /* Caution: Must assign the “Q” to this partition, other
letters will lead to failures in the end. */
Format FS=NTFS label=ForUsersData QUICK
Exit
Robocopy “C:\Users” “Q:\Users” /E /COPYALL /XJ
Rmdir “C:\Users” /S /Q
Mklink /J “C:\Users” “Q:\Users”
II. Partition Solution:
C: 80G
Q: 10G /* for User Data */
S: 60G
T: 20G
U: 40G /* for Download */
III. System Update Oder:
(1) Windows important update /* Must disable auto-update in Control Panel
and disable the box before IE and .NET framework in the Windows Updater List,
otherwise IE and .NET framework update will be done here. */
(2) Windows optional update /* Drivers, such as UpdatusUser, audio driver,
etc. */
(3) Norton Internet Security and KPM5.0.0.183
(4) Chrome
(5) IE and .NET framework
(5) Office starter /* It is recommended to install Office2010_cn version,
not Office2013. */
IV. Use UTC time setup: After register UTC time, Windows 7 OS will never write
time back to CMOS, but can read time from CMOS. Therefore, before run “
regedit” command, first set the system time to UTC time, then synchronize the
time with internet time, after that, restart the system and register “
RealTimeIsUniversal”.
HKEY_LOCAL_MATHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation:
Add “RealTimeIsUniversal” DWORD 1
V. Disable Chrome disk cache.
Append the following parameters:
--disable-application-cache --disk-cache-size=1 --media-cache-size=1 //–
incognito
In the Chrome shortcut and HKEY_CLASSES_ROOT\ChomeHTML\shell\open\command.
*****Gentoo Installation Note*****
/dev/sda8 /boot 200M
/dev/sda9 /var 16G
/dev/sda10 /home 60G
/dev/sda11 / 100G
/dev/sda12 /usr/portage 40G
/dev/sda13 /usr/src 5G
/dev/sda14 optional 24G
/dev/sda15 /swap 10G
(1) Boot:Gentoo
(2) Fdisk /dev/sda /* If the liveCD is Ubuntu, sometimes is fdisk /dev/sdb.
*/
Swap type 82
Star(*) /boot “a”
(3) Mkfs.ext2 /dev/sda8 /* Pay attention to mkfs.ext2, not mkfs.ext4. */
Mkfs.ext4 /dev/sda9-14
Mkswap /dev/sda15
Swapon /dev/sda15
(4) “/” mount /dev/sda11 /mnt/Gentoo
Mkdir /mnt/Gentoo{/boot, /var, /home, /usr, /root} /* /dev/sda14 mounts /root
momentarily. */
Mkdir /mnt/Gentoo/usr{/portage, /src}
Mount /dev/sda? /mnt/Gentoo/* ?=8,9,10,12,13,14
(5) Tar xvjpf stage3…tar.bz2 –C /mnt/Gentoo
(6) Links www.gentoo.org /* Check the Internet first. */
(7) Modify /mnt/gentoo/etc/portage/make.conf and double check it. /* If the
liveCD is Ubuntu, there is no mirrorselect command, therefore it is very
important to modify the mirror sites in the file make.conf. */
(8) Copy DNS info
Cp –L /etc/resolv.conf /mnt/Gentoo/etc /* If the liveCD is Ubuntu, this
operation is meaningless. */
(9) Change root
(10) Eselect profile list
Eselect profile set x
(11) Modify timezone to UTC
(12) Emerge –apv sources /* Choose proper sources. */
cd /usr/src/linux
config /*The coretemp should be set as a module. */
make && make modules_install
change .config to .newversionconfig
cp preset config file to ./.config
make oldconfig
make && make modules_install
ls –la /boot
cp arch/x86_64/boot/bzImage /boot/kernel…
(13) A. Stage1àStage2
B. Stage2àStage3
The following are installing packages:
1st emerge step
Emerge –avp tp_smapi
Find .o .ko
Nano /etc/conf.d/modules
Emerge –avp linux-firmware
Change /etc/fstab /* Pay attention to tmpfs root, double check this table. */
Nano –w /etc/conf.d/hostname /etc/conf.d/net
Nano /etc/locale.gen /* Must include “C”, otherwise locale-gen will be
failed. */
Locale-gen
Env-update && source /etc/profile
2nd emerge step
Emerge list: -avp
Metalog (rc-update)
Acpid (rc-update)
Alsa-utils (rc-update)
Sensors-detect /* Do it later. */
Cpufreqd (rc-update and modify conf file)
Iptables
Dhcpcd
Ifplugd
Wpa_supplicant (-X and modify conf file)
Openresolv
Nano /etc/conf.d/net
Cd /etc/init.d
Ln –s net.lo net.wlp3s0
Ln –s net.lo net.enp0s25
Fcron
USE=”-X –qt4 -kde” emerge –av layman
Echo “source /var/lib/layman/make.conf” >> /etc/portage/make.conf
Layman –L
Layman –a Gentoo-zh /* If cannot emerge Gentoo-zh, reconnect the Internet. */
Emerge –avp goagent
Modify goagent.conf
gpm
Hdapsd
Laptop-mode-tools
Ntp
Genkernel genkernel –install initramfs
Passwd
3rd emerge step
Grub:0 gentoolkit eix pm-utils usbutils pcituils powertop
(X:)
Terminus-font,intlfonts,freefonts,corefonts,opendesktop,xbindkeys
(awesome)
Acpitool rxvt-unicode sudo vim
***Windows Installation NOTE***
1 When updating Windows update, drivers, .net frameworks, office and IE,
disable Windows auto-update option.
2 LNS must choose a proper Network Interface option, do not choose WAN
Miniport(IP) and WAN Miniport(IPv6) but choose WAN Miniport(Network Monitor),
otherwise Windows cannot synchronize Internet time.
***Gentoo Installatio NOTE***
1 In file /etc/conf.d/net, wpa_supplicant_wlan0 must =”-Dnl80211”, should
not =”-Dwext”.
2 linux-firmware is OK, but iwl6005-ucode does not work.
3 Make /dev/fdà/proc/self/fd, must let /etc/init.d/udev work.
4 SELinux cannot login /home directory because /home directory has no wx
privilege: chmod o+wx /home, /home/user
5 If /etc/resolv.conf is empty, it is failed to browse Internet pages because
the domain name can not be resolved to IP address.
***Caution***
This installation note is only effective on specific Thinkpad hardware with
genuine Windows 7. And there is might something wrong in this note. And it is
also recommended to install gentoo or other Linux distro such as Debian in
VMware because maybe Linux OS has not been optimized on Thinkpad hardware.
※ 修改:·XQZS 于 Sep 22 07:16:43 2022 修改本文·[FROM: 218.2.216.*]
※ 来源:·水木社区
http://www.mysmth.net·[FROM: 218.2.216.*]
修改:XQZS FROM 218.2.216.*
FROM 218.2.216.*