发新话题
打印

PCLinuxOS 硬盘安装摘要

PCLinuxOS 硬盘安装摘要

利用windows安装linux

下载iso文件下载完毕,如果你是在32位cpu机器上安装,把i586文件夹从iso中解压缩出来,假设解压缩在D:\i586。
有为linux准备的空闲分区吗,没有?看来我们要多走一步路了。直接将Windows某个分区(最好是5G以上)数据转移到其他分区,然后用WinXP自带的[计算机管理]中的[磁盘管理]工具删除掉这个分区,安装linux时选择使用空闲空间自动分区就行了。
什么,你只有C和D盘?唉,下载pm汉化版吧,我不喜欢用pq,个人觉得pm比pq好。直接在Windows里用pm调整出在linux下必须要有的/swap(虚拟内存)和/(根目录)这两个分区,其中/swap=512M,/=5G。不喜欢这样分区的人可以自己调整,前提是你对linux分区较为熟悉 。安装linux时选择使用现存分区就行了。

下面我们要用WinXP引导grub,用grub引导内核安装linux。
(1)下载最新的grub for dos(有的名字叫grub4dos)
http://www.linuxeden.com/forum/attachment.php?attachmentid=1102
因为老版本不支持ntfs格式,把其中的grub.exe和grldr(注意不是grldr.mbr文件)复制到C盘根目录下。
(2)鼠标放在[我的电脑]上,点右键,选[属性],[高级],看到[启动和故障恢复]了吗,点[设置],[编辑]你的启动选项吧,如下:
[boot loader]
timeout=1
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
1、首先把timeout=1修改成timeout=5。这是系统引导菜单停留的时间,以秒为单位,5秒的时间能方便你选择。
2、在文件末尾添加一行:c:\grldr="grub"。"grub"是出现在系统引导菜单中的选项,其实可以随便写,不一定非要写成"grub"。
(3)重新启动系统,选择"grub",新版本的grub for dos实在是功能多,我们选择command line,进入命令行状态。然后分三次输入以下三条命令
kernel (hd0,4)/i586/isolinux/alt0/vmlinuz ramdisk_size=128000 root=/dev/ram3 acpi=ht vga=788
initrd (hd0,4)/i586/isolinux/alt0/all.rdz
boot
1、(hd0,4)是grub表示分区的方法,对应Windows下的D盘。依次类推:D=(hd0,4)、E=(hd0,5)、F= (hd0,6)。(hd0,4)/i586/isolinux/alt0/vmlinuz其实就是表示内核存放的路径,觉得路径不好记可以直接把vmlinuz复制到i586中,这样你输入kernel (hd0,4)/i586/vmlinuz就可以了。不复制也没关系,grub和linux一样支持命令行补齐功能,输入iso,按TAB键,自动为你补齐成isolinux。
2、ramdisk_size表示内存大小,如果你是256M,设为256000,依次类推。
3、vga=788表示用分辨率为800*600的图形界面安装,vga=791则是1024*768。如果你不加这个选项,呵呵,那就是用文本界面安装了。
(4)接下来安装程序会提示你以何种介质进行安装,我们是硬盘安装,选择hard disk。然后会让你选择你的安装文件包所在的分区,刚才放在了D盘,grub下表示为(hd0,4),linux安装程序里表示为hda5,确定。安装程序会问你安装文件所在的目录,输入:i586。剩下的一切都与光盘安装一样了,非常简单了。




下面这个是使用其他LINUX的liveCD/DVD来安装硬盘里的PCLOSiso的方法
我从网上搜集的PClinuxOS硬盘安装方法,我只是做了简单地翻译,请大家测试,并把结果告诉我,以便我们完善这个安装说明
原文:
http://www.pclinuxos.com/index.p ... task=view&id=30

THE POOR MAN'S INSTALL
硬盘安装、

To do the Poor Man's install you need three things.
要使用硬盘安装你必须准备3件事

(1) A partition on your hard drive that will not be formatted during the installation.
一、在windows或是其他操作系统安装时没有被格式化的分区。
(2) A copy of the CD/DVD contents transferred to the root folder of that partition.
二、把LiveCD或是DVD的全部内容复制到空闲分区的root文件夹里。
(3) A Live CD or DVD with the same kernel.
三、与你下载的iso内核相同的LiveCD或DVD。(个人理解是使用LiveCD来使用linux命令行。你可以使用任何与你的内核相同的LinuxLiveCD,)

Did you know you can mount an iso image? You do need to use the command line and be in a terminal as root, but it's not actually that hard. Assuming the iso filename is "pclos2007-dvd.iso" and I've put it in my home folder, I open a terminal as root, and type in the commands:
你是否知道你如何挂载一个iso镜像?你需要使用命令行,而且必须是在root的权限下。这没有什么难的,我们假定这个iso镜像的文件名是pclos2007-dvd.iso并且我已经把它存入我的home文件夹。我打开终端使用root登陆(如果你不是root登陆的终端,可以使用su命令或sudo命令实现root权限),输入如下命令:


mkdir /mnt/iso
mount -o loop /home/davecs/pclos2007-dvd.iso /mnt/iso


Now as I have /home on a separate partition on my laptop, I just need to copy the contents there. I opened File Manager Super User mode, made a Duplicate Window, pointed one to /mnt/iso and one to /home, drag and drop, done. Finally, in the terminal:
现在,我有一个独立的/home分区,我只需要把文件复制到里面。我打开超级用户文件管理器,打开复制窗口,一个是/mnt/iso另一个是/home,拖放,完成复制,继续在终端输入下面命令:

umount /mnt/iso
rmdir /mnt/iso

Now to complete the Poor Man's Install, I put the DVD in the machine and rebooted. Just to advise that on my laptop, the partition layout is:
现在完成整个的硬盘安装,现在把LiveDVD放入我的光驱,重启。下面的分区情况只是我的笔记本电脑的,仅供参考:

swap /dev/hda5
/ /dev/hda6
/home /dev/hda7

Note my organisation again. Windows partitions primary (1-3), all Linux in the extended partition. It's my way of working. It's a good idea to have a layout that is always familiar to you. BTW you only need one primary partition. So you can have a single windows partition and still put all your Linux partitions in extended, starting from hda5 (or sda5 for SATA).
我的分区计划:Windows基本分区(hda1~3),所有的linux
内容都在扩转分区里。这就是我使用的方法,做这样一个计划可以使你一直对你的硬盘了如指掌。顺便说一下,你只需要一个基本分区,这样你可以有独立的windows分区并且把所有的linux内容安装到扩展分区。接下来从硬盘启动吧,我的是复制到hda5(如果是SATA的硬盘是sda5)


OK on the menu screen, I hit the left arrow to get a space between entries on the line you see at the bottom of the screen. That is the bootup line that gets passed to the live linux system when you boot the Live CD, and it's as easy as that to get into it and edit it. The extra entry I made was "bootfrom=/dev/hda7" I also changed the vga entry to vga=0, the reason being that if you boot the live CD without framebuffer, then the installation is also without framebuffer, ie, plain text. With certain graphics, you may find this increases your chance of a successful return from Hibernate and Suspend.
好的,在liveCD的启动菜单上,使用方向键到达屏幕下方的最后一个选项memtest,这是bootup line,是修改liveCD修改附加启动信息的地方,而且这很容易进入和编辑。我使用的附加启动信息是bootfrom=/dev/hda7
这样就进入了安装界面,就像你在使用PClinuxOS光盘启动一样,可以进入安装了

我还把VGA的置设置成vga=0,我这样做的理由是如果你在LiveCD中不使用ramebuffer(应该是图形缓存),那么这个安装也是没有ramebuffer。我的安装没有ramebuffer、ie、plain text。使用certain graphics,你会发现这增加了你从休眠状态返回的成功率。

本文由hew 发布于Linuxsky 论坛,网址:http://bbs.linuxsky.org/thread-5996-1-1.html

你的鼓励,我的动力.
做人厚道,看贴回贴.
my linux blog

TOP

发新话题