个人操作使用记录

新手涉及到的教学或入门贴,推荐新手必看,版主维护
回复
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

个人操作使用记录

#1

帖子 TeliuTe » 2010-10-04 17:25

Grub安装在sda9上,用第2个和第3项都可以启动菜单,sda8是一个 132M的boot分区,以前用于8.04的双系统

teliute@TeliuTe:~$ sudo fdisk -l
[sudo] password for teliute:

Disk /dev/sda: 82.0 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd274d274

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/sda2 1276 9964 69794362 f W95 Ext'd (LBA)
/dev/sda5 1276 3825 20482843+ b W95 FAT32
/dev/sda6 3826 6375 20482843+ b W95 FAT32
/dev/sda7 6376 7251 7036438+ 7 HPFS/NTFS
/dev/sda8 7252 8526 10241406 83 Linux
/dev/sda9 8527 9522 8000338+ 83 Linux
/dev/sda10 9523 9538 128488+ 83 Linux
/dev/sda11 9539 9600 497983+ 82 Linux swap / Solaris
/dev/sda12 9601 9964 2923798+ 83 Linux

代码: 全选

Disk /dev/sda: 160 GB, 160039272960 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System 
/dev/sda1   *           1         790     6345643    7  HPFS/NTFS
/dev/sda4             791         807      128520   83  Linux
Warning: Partition 4 does not end on cylinder boundary.
/dev/sda2             807        1537     5863725   83  Linux
Warning: Partition 2 does not end on cylinder boundary.
/dev/sda3            1539       19457   143926335    5  Extended
/dev/sda5            1539        1787     1992060   83  Linux
Warning: Partition 5 does not end on cylinder boundary.
/dev/sda6            1788        4277    19992892   83  Linux
Warning: Partition 6 does not end on cylinder boundary.
/dev/sda7            4278        8996    37897335   83  Linux
Warning: Partition 7 does not end on cylinder boundary.
/dev/sda8            8997        9257     2088450    6  FAT16
Warning: Partition 8 does not end on cylinder boundary.
/dev/sda9            9258       10277     8185117   83  Linux
Warning: Partition 9 does not end on cylinder boundary.
/dev/sda10          10278       19457    73730317   83  Linux
Warning: Partition 10 does not end on cylinder boundary.
teliute@TeliuTe:~$ 
附件
menu.lst.zip
(600 Bytes) 已下载 712 次
上次由 TeliuTe 在 2013-03-09 13:56,总共编辑 2 次。
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 用于WinXP和U10.04双启动的menu.lst和硬盘分区信息

#2

帖子 TeliuTe » 2010-10-04 17:56

代码: 全选

#添加修改一下
#第一和第二会调用grub2的启动菜单
#第三、四会直接启动

default		0



timeout		5



title		Ubuntu 10.04, kernel 2.6.32-21-generic

root		(hd0,8)

chainloader +1

boot





title Ubuntu 10.04

root (hd0,8)

kernel /boot/grub/core.img

boot



title Ubuntu 10.04

root (hd0,8)

kernel /vmlinuz ro root=/dev/sda9

initrd /initrd.img

boot



title Ubuntu 10.04

root (hd0,8)

kernel /boot/vmlinuz-2.6.32-24-generic ro root=/dev/sda9

initrd /boot/initrd.img-2.6.32-24-generic

boot





title		Ubuntu 8.04.2, kernel 2.6.24-23-generic

root		(hd0,9)

kernel		/vmlinuz-2.6.32-21-generic root=UUID=6485a3a8-848d-44fd-87d8-114487a77826 ro quiet splash

initrd		/initrd.img-2.6.32-21-generic

quiet



title DeepXP Boot CD ISO

find --set-root /winxp.iso

map /winxp.iso (0xff) || map --mem /winxp.iso (0xff)

map --hook

chainloader (0xff)

savedefault --wait=2



title		Ubuntu Install

root		(hd0,0)

kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-10.04.1-desktop-i386.iso quiet splash ro locale=zh_CN.UTF-8 noprompt --

initrd /initrd.lz
附件
xorg.conf.zip
用于sis651/661 的xorg.conf
(877 Bytes) 已下载 691 次
menu.lst.zip
(607 Bytes) 已下载 710 次
iamtt
帖子: 5
注册时间: 2010-10-11 12:12

Re: 用于WinXP和U10.04双启动的menu.lst和硬盘分区信息

#3

帖子 iamtt » 2010-10-13 16:46

具体怎么用呢。。。我做个menu.lst放我C盘里么?
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

修改字体选择文件微米黑在前头/etc/fonts/conf.d/69-language-selector-zh-cn.c

#4

帖子 TeliuTe » 2010-12-06 13:26

代码: 全选

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

	<match target="pattern">
		<test qual="any" name="family">
			<string>serif</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>WenQuanYi Micro Hei</string>
			<string>DejaVu Serif</string>
			<string>Bitstream Vera Serif</string>
			<string>HYSong</string>
			<string>AR PL UMing CN</string>
			<string>AR PL UMing HK</string>
			<string>AR PL ShanHeiSun Uni</string>
			<string>AR PL New Sung</string>
			<string>WenQuanYi Bitmap Song</string>
			<string>AR PL UKai CN</string>
			<string>AR PL ZenKai Uni</string>
		</edit>
	</match> 
	<match target="pattern">
		<test qual="any" name="family">
			<string>sans-serif</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>WenQuanYi Micro Hei</string>
			<string>DejaVu Sans</string>
			<string>Bitstream Vera Sans</string>
			<string>WenQuanYi Zen Hei</string>
			<string>Droid Sans Fallback</string>
			<string>HYSong</string>
			<string>AR PL UMing CN</string>
			<string>AR PL UMing HK</string>
			<string>AR PL ShanHeiSun Uni</string>
			<string>AR PL New Sung</string>
			<string>AR PL UKai CN</string>
			<string>AR PL ZenKai Uni</string>
		</edit>
	</match> 
	<match target="pattern">
		<test qual="any" name="family">
			<string>monospace</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>WenQuanYi Micro Hei Mono</string>
			<string>DejaVu Sans Mono</string>
			<string>Bitstream Vera Sans Mono</string>
			<string>WenQuanYi Zen Hei Mono</string>
			<string>Droid Sans Fallback</string>
			<string>HYSong</string>
			<string>AR PL UMing CN</string>
			<string>AR PL UMing HK</string>
			<string>AR PL ShanHeiSun Uni</string>
			<string>AR PL New Sung</string>
			<string>AR PL UKai CN</string>
			<string>AR PL ZenKai Uni</string>
		</edit>
	</match> 

</fontconfig>