Chinaunix首页 | 论坛 | 博客
  • 博客访问: 799075
  • 博文数量: 770
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 4950
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-09 17:49
文章分类

全部博文(770)

文章存档

2011年(1)

2008年(769)

我的朋友

分类:

2008-10-10 11:08:50

这是不点兄的文章,我把里面的 硬盘安装mdk9.2 部分提炼出来~~(感谢 不点 兄为mdk所做的一切!!)
-----------------------------------------------------
同时启用三个 iso 文件,不解包方便安装 Mandrake

LG 光驱会被物理损坏的!!如果你有 LG 光驱,千万别装 Mandrake 9.2!! 根据官方网站的报导:
  即使你用纯硬盘的安装,也会损坏 LG 光驱!![/COLOR]

同时启用三个 ISO 文件,不解包安装 mandrake,无须切换控制台(不再用手工输入命令)。在这里下载:

在此说明,解包后有很多文件,但你可以不用那些多余的文件,而只用里面的 hd.img 文件。这个 hd.img 文件已经是打过补丁的了。用它制作软盘,引导机器就行,别的一概都不需要了。)

或者进入目录看看在不在(该目录下将来会有其它 Mandrake 版本的 ISO 安装补丁):



解压后,用 hd.img 文件即可。这个 hd.img 适合于 9.2 正式版。你可以用 grub_for_dos 直接启动硬盘上的 hd.img 文件;也可以用 vmlinuz 和 hd.rdz 来启动安装程序(注意看 hd.img 里面的 syslinux.cfg 文件)。这两种办法都是不用软盘的纯硬盘安装。

如果想在以后的发行版中使用,也有办法:把 sh 和 mix_ISOs 这两个文件拷贝到 hd.rdz 里面的 /tmp 目录就可以了。需要等待发行版发布出来之后才能生成新的 hd.rdz 文件。

但要强调:改动不多,仅仅增加上述两个程序文件(sh 和 mix_ISOs)而已,别的都不改动。而且这两个程序文件是固定的,不随 mandrake 版本的变化而变化。


还要注意有两点限制:

1。三个 iso 文件必须处在某个分区的"根目录"下,不能处在其它子目录下,而且根目录下不要有多余的 ISO 文件,例如,不要有以前其它版本的 Mandrake iso 文件。

2。 已经升级 MandrakeISOinstall-9.2.tar,不用修改 iso 文件名即可实施安装了。如果你用的是以前下载的 MandrakeISOinstall-9.2.tar 文件,当然还需要按照下面的说明修改 iso 文件名。
重要说明!Mandrake 9.2 正式版 ISO 文件的名字有所变化,这可能使得下面的补丁失效。解决方法是:把这些 ISO 文件更名为:
  Mandrake92-cd1-inst.i586.iso
Mandrake92-cd2-ext.i586.iso
Mandrake92-cd3-i18n.i586.iso
  或者
  MandrakeLinux-9.2-CD1.i586.iso
MandrakeLinux-9.2-CD2.i586.iso
MandrakeLinux-9.2-CD3.i586.iso
  或者
Mandrake9.2-cd1.i586.iso
Mandrake9.2-cd2.i586.iso
Mandrake9.2-cd3.i586.iso


好了,尽情玩耍吧 :-) 程序经过多日调试,应当不会出现失败的。

安装程序照旧会询问你第一张 ISO 的分区位置和文件名,你仍然需要敲入 CD1 的 ISO 名字全称。在这之后,程序自动在那个分区的根目录下找到其他几个 ISO 文件,并自动 mount 上。这你都不用管,继续安装你会发现,所有三张 ISO 的软件包都在。

再补充:两种硬盘安装方法的 grub 命令集(采用任何一种都可以的,随便你喜欢哪个方法):

1。用 hd.img 安装,这需要用到 grub for dos 的软盘仿真功能:

grub> map (hd0,0)/hd.img (fd0)
grub> chainloader (hd0,0)/hd.img
grub> rootnoverify (fd0)
grub> boot

2。用 vmlinuz 和 hd.rdz 两个文件来安装(无需使用 grub for dos,用 GNU 原来的 GRUB 都管用):

grub> kernel (hd0,0)/vmlinuz ramdisk_size=128000 root=/dev/ram3 automatic=method:disk acpi=ht vga=788
grub> initrd (hd0,0)/hd.rdz
grub> boot

注意 kernel 一行很长,不要截断成两行。还要注意上述命令都假定这些文件位于 (hd0,0) 的根目录,如果你的不同,当然要作适当的修改。上述命令中所涉及到的那些文件,都在 MandrakeISOinstall-9.2.tar 这个软件包中。



[README:
This is a patch program for Mandrake hard disk & iso installer.

Use this patch at your own risk.

------------------------------------------------------------

sh.S -- Source file, it seems you never need it.

sh -- Binary program, should be placed in the /tmp directory of the all.rdz

mix_ISOs -- Shell script, should also be placed in the /tmp directory of the all.rdz

The above 2 files need not change. They should work for any Mandrake releases.

Other files are patched versions of a certain Mandrake release. They vary between different Mandrake releases.

Note: The all.rdz is a gzipped ext2 filesystem. You should first gunzip it, then put the two files sh and mix_ISOs in its "/tmp" dir. The sh must be executable. After copying these two files, you may re-gzip the image again.

-----------------------------------------------

To unzip all.rdz, use this command:

gzip -d -c all.rdz > all.rd

To mount all.rd, use this command:

mount -o loop all.rd tmp_dir

To copy files, use commands like this:

cp sh mix_ISOs tmp_dir/tmp/

Unmount all.rd and commit the change:

umount tmp_dir

To zip all.rd, use this command:

gzip -9 -c all.rd > all.rdz

-----------------------------------------------

Here is the menu.lst file for GRUB:

# Begin of menu.lst

timeout 10
default 0

# Place the files vmlinuz and all.rdz somewhere on the disk.
# In our example, we place the files in the root directory of (hd0,0)

title mandrake ISO install, using vmlinuz and all.rdz in (hd0,0)
        kernel (hd0,0)/vmlinuz ramdisk_size=128000 root=/dev/ram3 automatic=method:disk acpi=ht vga=788
        initrd (hd0,0)/all.rdz
        boot

# Note: You should place all the Mandrake*.iso files in the root directory
#       of a certain partition, for the patched all.rdz to work fine.

# End of menu.lst]      
--------------------next---------------------
----------------------------------MandrakeLinux硬盘安装小经验----------------
1,使用dos下的smartdrv.exe
一个不错的硬件加速程序,直接运行就可以了;windows的安装盘中可以找到;用来提升安装速度~
2,mandrake的分区工具功能强大
遗憾的是今天才知道,可以在不损坏分区上已有数据的情况下,缩减分区空间。
3,安全措施
我没有软驱,以前安装linux后,常出现安装完成但是windows和linux都不能引导的错误,所以渐渐的养成了一个好习惯,为自己留一条后路:
把mandrake的三个iso放在某个更目录下,以便修复grub或者lilo,或者为重装做准备,
windows下用一个专用的文件夹存放dos下的某些程序,比如rename,copy ... 偶尔硬件故障可能会导致某些固有程序(主板上640kb上的)无法识别,比如金手指的问题!      
--------------------next---------------------

阅读(338) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~