⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install-redhat-from-harddisk.html

📁 学习linux的工具书
💻 HTML
字号:
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
   <META NAME="Author" CONTENT="Edward Fu">
   <META NAME="GENERATOR" CONTENT="Mozilla/4.05 [zh-CN] (X11; I; Linux 2.1.127 i686) [Netscape]">
   <TITLE>Freesoft Linux FAQ -- 从硬盘上安装Redhat</TITLE>
</HEAD>
<BODY>
&nbsp;Huang Liang wrote:

<P>> i want to install the red-hat 5.0 (download from freesoft.cei.gov.cn)
<BR>> i put the "rpms" and "base" dir in a win98 disk(hda1) c:\
<BR>> but when i finish fdisk (the second hd),
<BR>> i mount the win98 disk as "/setup"
<BR>> and the second hd's linux native(hdb1) as "/"
<BR>> but setup program don't check the hda1,
<BR>> so....
<BR>> how to?
<BR>>
<BR>> any answer welcome

<P>I think your directory tree structure is incorrect if you use the standard
<BR>Redhat installation program.

<P>Don't modify the directory structure please. For details please check
the
<BR>source cade of the install program which is in the following directories:

<P>redhat-5.0/i386/misc/src/*

<P>What I think is that the distribution directory must have a directory
<BR>called "REDHAT" and "RPMS" and "base" directories should be under
<BR>the "REDHAT" directory. The names are _case sensitive_!

<P>As to my knowledge, linux mount will think the vfat to be msdos
<BR>unless you explicitly told it is a vfat insteadof msdos. So I'm not
sure
<BR>if you can install from a vfat partition because the filenames have
<BR>8.3 and Capital/lower_case problems if it mountd as msdos fat.

<P>Sigh, All problems are created by the Microsoft!

<P>If you have enough disk space, just make an ext2 partition and holds
all
<BR>distribution files there and install from there. It will be no problems.

<P>After you answered the first few questions to the Redhat installation
<BR>floppies (after the second one is mouted) you can switch to &lt;F2>
<BR>console. Then, you do,

<P>for your first hard disk,

<P>cd /dev
<BR>mknod hda b 3 0
<BR>mknod hda1 b 3 1
<BR>....
<BR>mknod hda16 b 3 16

<P>for your second hard disk,

<P>mknod hdb b 3 64
<BR>mknod hdb1 b 3 65
<BR>....
<BR>mknod hdb16 b 3 80

<P>for your third hard disk,

<P>mknod hdc b 22 0
<BR>...

<P>for your fourth hard disk,

<P>mknod hdd b 22 64

<P>OK, you don't need to make them all, just the ones needed.

<P>and then.

<P>after you partitioned your new disk, you just say: (for example)
<BR>mke2fs /dev/hdb5

<P>which is the first secondary partition resides in the fourth
<BR>primary partition.

<P>mkdir /dosfs
<BR>mkdir /Linuxfs

<P>mount -t vfat /dev/hda1 /dosfs
<BR>mount -t ext2 /dev/hdb5 /Linuxfs
<BR>cp -rp /dosfs/RedHadLinuxDistribution/* /Linuxfs

<P>After all you should be able to see the following things under
<BR>/Linuxfs by giving ls -l /Linuxfs command.

<P>21 -r--r--r--&nbsp;&nbsp; 1 min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wheel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
19686 May 27&nbsp; 1997 COPYING
<BR>&nbsp;&nbsp; 3 -r--r--r--&nbsp;&nbsp; 1 min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
wheel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3020 Nov 10 14:25
README
<BR>&nbsp;&nbsp; 3 -r--r--r--&nbsp;&nbsp; 1 min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
wheel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2751 Sep 19&nbsp;
1997 RPM-PGP-KEY
<BR>&nbsp;&nbsp; 1 drwxr-xr-x&nbsp;&nbsp; 5 min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
wheel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024 Dec&nbsp; 5
13:12 RedHat
<BR>&nbsp; 12 drwxr-xr-x&nbsp;&nbsp; 2 min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
wheel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12288 Dec 15 17:08 SRPMS
<BR>&nbsp;&nbsp; 1 drwxr-xr-x&nbsp;&nbsp; 5 min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
wheel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024 Dec&nbsp; 5
13:04 doc
<BR>&nbsp;&nbsp; 1 drwxr-xr-x&nbsp;&nbsp; 4 min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
wheel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024 Dec&nbsp; 5
13:03 dosutils
<BR>&nbsp;&nbsp; 1 drwxr-xr-x&nbsp;&nbsp; 2 min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
wheel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024 Dec 15 17:24
images
<BR>&nbsp;&nbsp; 1 drwxr-xr-x&nbsp;&nbsp; 4 min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
wheel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024 Dec&nbsp; 5
13:02 misc

<P>If you don't then chech your path.
<BR>Now you can,
<BR>umount /Linuxfs
<BR>umount /dosfs
<BR>And restart the installation and select from "hard disk", device of
/dev/hdb5
<BR>and directory of /.

<P>It will work.
<BR>&nbsp;

<P>min

<P>--
<BR>----
<BR>NT=No Thanks, WWW=World Wide Wait
<BR>Does PnP mean "Plug and Pray"?
<BR>&nbsp;
<BR>&nbsp;
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -