dobra oto rada:
Loadlin is a free, open-source Linux loader (LOAD LINux). It is a program written to allow you to boot Linux without having to use LILO or a boot disk, using the DOS command line instead. IMHO, it is the best way to boot Linux if you use Windows or DOS.
Why is that?
Well, basically you have three alternatives to Loadlin: LILO, a kernel \\"dd\\"\\'ed onto a floppy, and a LILO floppy. If you aren\\'t sure that you want to keep Linux, you might not want to take the gamble of overwriting your MBR with LILO. LILO has been known to fail, and the MBR is one of the most important areas of the hard drive. And kernel->floppy bootdisks cannot be passed parameters, and are also unreliable. Or you could be like me, stuck sharing a computer with others whom you might not want getting into your system (e.g. parents and younger siblings :-)
Where can I get it?
If you got Linux on a CD, then there is probably a copy on there, as it is necessary for installing on computers with non-bootable CD-ROM drives. On the Red Hat CDs, it is in the directory \\"dosutils\\". On Slackware CDs, it is in disk A9 (\\"slakwarea9\\"). You can also get it at that all-holy repository of all things Linux, Sunsite. Or, if you\\'re lazy, click here.
Okay, so now what do I do?Well, here\\'s the basic usage summary for loadlin:loadlin kernel_file [initrd=initrd_file] [options_passed_to_kernel]At the least, your command line will look something like this:loadlin kernel_file root=root_device roThe option kernel_file is the filename of the kernel image. The \\"root=\\" option is one that is passed to the kernel. For instance, I use the option \\"root=/dev/hdc1\\". Replace \\"hdc1\\" with whatever root device you want. \\"ro\\" means mount the root device in read-only mode. You could use \\"rw\\" instead to mount in read-write. I don\\'t recommend that you do this, because most distributions will fsck your root device on startup and then remount in read-write mode. Setting it all up
This section will explain how to set up loadlin so you can boot quickly and easily boot into Linux. You will need:
Documentation for your distribution
Loadlin v1.6a or higher
A copy of your kernel image
A copy of your initial ramdisk (if you have one)
WARNING: Do not use any loadlin older than 1.6a (the one linked to above) with 2.2.* kernels!!!! YOU HAVE BEEN WARNED.First of all, read the docs for your distribution. Read the ChangeLog, the README.1ST, and all of that sort of stuff. Yeah, it\\'s boring, no one likes it, but it could save you a lot of greif later. Find out if your system needs an initial ramdisk at boot, and where that file is (usually \\"/boot/initrd\\"). Copy it to your WinDoze or DOS directory. Copy your kernel image, often \\"/vmlinuz\\" or \\"/boot/vmlinuz\\", to your WinBlows directory. Then reboot into whatever MicroBloat OS you happen to be using.
Now, make the directory \\"C:linux\\". Move vmlinuz, initrd (if you have one), and loadlin.exe into that directory. Then, create a file called \\"linux.bat\\". Move this into any directory in your path (C:windows and C:windowscommand should be safe bets on any windows system, and C:dos for DOS systems). Then edit it so that it looks like this:
REM This first line if for Windows systems onlyc:windowssmartrv/clinuxloadlin linuxvmlinuz _other_options_
The first line flushes the disk cache, which is most desirable considering you might screw up the computer if you don\\'t. The second line starts up loadlin, and it\\'s bye-bye DOS
You\\'re going to replace \\"_other_options_\\" with options that will be passed on to the kernel. We will now find out what those options are.
Passing options to the kernel
There are a bunch of options that you can pass to the kernel, so I\\'ll just show you a few of the more important ones:
initrd= (DOS)Filename of the initial ramdisk. This is loaded by loadlin and passed on to the kernel.
root= Root device, to be mounted as \\"/\\". This is a Linux device (e.g. \\"/dev/hda1\\")
ro/rw One of these is specified immediately after \\"root=/dev/foo\\". ro=readonly, rw=read/write. Unless otherwise specified in the documentation, use \\"ro\\".
ram= If you have more than 64MB of ram, specify the amount here
Any others not covered here can probably be found in the documentation included with the Linux source. Have a look in /usr/src/linux/Documentation if you need more information (in fact, you should probably read the stuff in there anyway :-).
Here we go
Now it\\'s time to boot up Linux. If you are in Windows, hit ALT+F4 and choose \\"Restart in DOS mode\\". You must be at a \\"real\\" DOS prompt. Now, assuming you\\'ve got your batch file and linux directory set up, just type \\"linux\\" and it should boot!
Sample linux.bat
If you need an example, here\\'s my linux.bat:
windowssmartdrv/clinuxloadlin linuxvmlinuz root=/dev/hdc1 ro
a tu jeszcze jedna:
Jest kilka sposobów bootowania ZipSlacka. Skupimy się na dwóch najłatwiejszych.
LOADLIN
Loadlin jest programem dosowym, przeznaczonym do załadowania jądra Linuxa i wystartowania go. W katalogu LINUX znajdziesz następujące pliki:
LOADLIN.EXE plik wykonywalny loadlin
LINUX.BAT prosty plik wsadowy DOSa, który bootuje Linuxa używając LOADLIN.EXE
vmlinuz jądro Linuxa, ze wsparciem dla urządzeń SCSI i IDE
Możesz używać dostarczonego jądra Linuxa (jest to jądro z obsługą wielu urządzeń, działających na większości maszyn) lub jakiegokoliwek innego jądra Linuxa które wybierzesz - należy je wówczas skopiować do: LINUXvmlinuz na miejsce istniejącego pliku vmlinuz. Slackware zawiera dużą kolekcję działających, prekompilowanych jąder w katalogu kernels.
Aby wystartować system, musimy wyedytować najpierw plik LINUX.BAT i upewnić się czy wpis root=/dev/XXXX (w jedynej nie rozpoczynającej się znakiem komentarza \\'rem\\') jest ustawiony do użycia tej partycji na którą został rozpakowany ZIPSLACK.ZIP, np. /dev/sda3. Jeśli nie jesteś pewien, której partycji użyć - spróbuj to odgadnąć :-) Jeśli zrobisz to źle, będziesz mógł użyć scrollback\\'a (prawy Shift + PageUp) by po wstrzymaniu startu systemu przez jądro wrócić i wyżej sprawdzić jakie Linux nadał nazwy partycjom. Z tą informacją nie powinno już sprawić większych kłopotów poprawne wyedytowanie pliku LINUX.BAT.
Kiedy już plik LINUX.BAT będzie wyedytowany, można spróbować bootować system przez wpisanie LINUX z linii poleceń, będąc w katalogu LINUX. Ważne! Powinieneś być trybie DOS aby taki sposób bootowania zadziałał. Wiersz poleceń pod Windows nie zadziała. W takiej to sytuacji powinieneś zamknąć system poprzez wybranie \\"Uruchomić ponownie komputer w trybie MS-DOS\\". Wówczas będziesz mógł użyć Loadlina.Możesz także użyć dyskietki startowej systemu Windows, aby po starcie uruchomić LINUX z katalogu LINUX.
Jeśli ten sposób zawiedzie, problem może leżeć w zarządzaniu pamięcią przez DOS. Czasem do załadowania przez Loadlin dużego jądra będą potrzebne pliki HIMEM.SYS i EMM386.EXE. Jeśli zatem pojawi się problem, spróbuj dodać owe dwa programy do pliku CONFIG.SYS.
Możesz również uruchomić LOADLIN bezpośrednio. Poniżej znajduje się przykładowe polecenie bootujące Linuxa z partycji /dev/hda4 w trybie do odczytu i zapisu (rw) używając jądra vmlinuz:
loadlin vmlinuz root=/dev/hda4 rw
BOOT DISK
Można do bootowania ZipSlacka używać także dyskietki dostarczonej wraz z dystrybucją (plik bootdisk.img). Zawiera ona takie samo jądro, którego LOADLIN używa jako domyślne. Możesz też używać swobodnie jakiejkolwiek dyskietki startowej dostarczonej z dystrybucją Slackware Linux.
Aby zapisać obraz na dyskietce, trzeba użyć pod DOSem programu RAWRITE.EXE:
rawrite bootdisk.img a:
Aby wystartować Linuxa z tak utworzonej dyskietki startowej, zostaw ją w stacji dyskietek, zrestartuj komputer, a na znak zachęty \\'boot:\\' wpisz poniższe polecenie:
mount root=/dev/hda4 rw
Powodzenia!