|
发表于 2003-11-1 18:07:32
|
显示全部楼层
应该可以吧,我看到过说明啊.
How to Install Coyote Linux on an IDE Hard Disk
Why do That ?
- Because I hate floppies.
- Because they are slow.
- Because they are fragile.
- Because they are unreliable.
- Because I need to add things to Coyote which won't fit on a floppy.
- Because floppy drives are becoming expensive.
- Because I have a hard drive and I have nothing better to do with it.
- Because I want to... and that's reason enough...
What will you need ?
- An old and little IDE hard disk. Believe me, a 200MB drive is HUGE compared to a floppy.
- A Coyote Linux kernel compiled with IDE suport enabled (Download it here)
- Syslinux 1.48 (Download it here)
- A DOS boot floppy. I can't give it to you because MS-DOS is copyrighted by Micro$oft, but this page might help.
Before You Start:
In Any Computer:
1 - Download the kernel linked above.
2 - Rename the file you just downloaded to linux
3 - Download the syslinux.com
4 - Take a blank, formatted 1.44 disk and copy these two files to it.
How to:
1 - Make sure your hard drive is empty, don't try to put more than one operating system on the same hard drive unless you know what are you doing. I'm not responsable if you lose anything stored on that hard drive.
2 - If you didn't install the drive already:
2.1 - Set (jumper) the drive to be MASTER. Some older drives will designate this jumper setting as "C" (as opposed to "D").
2.2 - Connect your drive to the PRIMARY IDE Interface
2.3 - Turn the machine on and enter the BIOS SETUP (by pressing Delete, F1, F10, or whatever your BIOS uses). Detect your drive (or set the parameters manually), save the setting, and exit.
3 - Boot your machine using the DOS boot-floppy.
4 - If the HD has any partitions other than a FAT12 or FAT16 DOS partition, delete them with FDISK. (See this page if you need help with FDISK.) Otherwise, skip to step 7.
5 - Create a primary FAT12 or FAT16 partition (it must be smaller than 1GB) at the starting sector of the HD and make sure to make it active.
6 - Boot your machine using the DOS boot-floppy again.
7 - Format the new partition by typing: format c: /u [Enter]
8 - Insert the floppy with syslinux.com and install the Linux boot sector by typing: syslinux -s c:
(If you're using a Windows9x (MS-DOS 7) boot disk, you may see a message telling you that Windows disabled write to protect the hard drive.... In this case you have to type lock c: [Enter] before the syslinux command, and unlock c: [Enter] after it.)
9 - Copy the linux file (the kernel you've downloaded) to the HD: copy a:linux c: [Enter]
10 - Insert your working coyote floppy and copy all files except ldlinux.sys (it was just created on the HD by syslinux) and linux (the kernel you just copied). The following commands will get all the files of a standard Coyote installation:
copy a:*.tgz c:[Enter]
copy a:syslinux.* c: [Enter]
copy a:coyote.cfg c: [Enter]
copy a:packages c: [Enter]
11 - Insert your DOS disk again end type edit c:syslinux.cfg [Enter]
12 - Navigate to the end of fourth line. You will find something like boot=/dev/fd0,vfat. Replace that with boot=/dev/hda1,msdos
13 - Save the file and close the editor. Remove the disk from floppy drive and try to boot from HD.
14 - If you did everything right, your Coyote Linux box will boot fine and work.
Things that can go wrong....
- The DOS boot disk can't handle 1680K floppies. If your Coyote disk is a 1680K floppy you may need to copy its files to a 1440K before you can transfer them to the HD. Any Windows machine will do that easily, and since you don't need to copy the file linux, one 1440K floppy will be enough.
- If your HD is not installed as MASTER on the PRIMARY IDE INTERFACE, you must change /dev/hda1 in step 12 as follows:
Primary Master = hda
Primary Slave = hdb
Secondary Master = hdc
Secondary Slave = hdd
- If your partition is not the first partition on the HD then /dev/hda1 may have to be changed to /dev/hda2 or something else.
- Make sure the Master Boot Record of your HD doesn't have a boot loader installed. The command fdisk /mbr [Enter] should remove any of them.
- Make sure your partition was made ACTIVE by fdisk.
- Make sure your partition was formatted with the FAT12 or FAT16 filesystems (not FAT32).
- Make sure your cluster size is 16K or less.
- Make sure your partition size is shorter then 1GB.
- Pray?
Notes about this kernel
I've compiled this kernel on a RedHat 9 machine using Joshua Jackson's Linux-portable Coyote development kit (here).
The kernel can handle FAT12, FAT16 and FAT32, but syslinux doesnt suport FAT32.
The kernel supports only PIO MODE or DMA MODE (33).
The kernel doesn't support Ultra DMA (66/100/133). Believe me: you don't need this.
The kernel doesn't support CD-ROM, but I can do that if someone asks for it...
Credits, Licenses, Sources and Documentation
Coyote Linux - Vortech Consulting - http://www.coyotelinux.com
Syslinux - H. Peter Anvin - http://syslinux.zytor.com/
RedHat Linux - http://www.redhat.com
MS-DOS - Microsoft Corporation - http://www.microsoft.com
If this page helps you to get what you want, let me know, send me an e-mail:
Claudio Roberto Cussuol |
|