Otan to Lilo jekina to susthma, mporei na fortwsei mono data sectors poy mporoun na
prospela8oun apo to bios. Opoiodhpote pathname balete sto /etc/lilo.conf
ginetai resolved kata thn diarkeia ths egkatastashs (otan kaleitai to lilo).
Ayto symbainei otan to programma xtizei kapoia lista pinakwn ths opoias ta sectors xrhsimopoiountai apo ta arxeia.
San apotelesma, ta arxeia prepei na yparxoyn se ena partition poy na einai prosbasimo
apo to BIOS. Epipleon, prepei na janaegkatasthsete to loader
(p.x., prepei na janakaleite to lilo) ka8e fora poy tropopoieite
ta arxeia. Opote janametaglwttisete ton pyrhna sas kai gracete panw apo to palio
image, prepei na janaegkatasthsete to Lilo).
H ntirektiba boot =
sto arxeio /etc/lilo.conf
leei sto Lilo pou
8a prepei na topo8ethsei to primary boot loader. Genika, mporeite na
epilejete eite to master boot sector (/dev/hda
) eite to root
partition ths Linux egkatastashs sas (synh8ws einai sto /dev/hda1
h sto /dev/hda2
).
An exete allo leitoyrgiko susthma egkatesthmeno ston sklhro sas disko, 8a htan protimotero na egkatasthsete to Lilo sto root partition. Se ayth thn periptwsh, prepei na markarete to partition san "bootable" (xrhsimopoihste thn entolh "a" toy fdisk h thn entolh "b" toy cfdisk. Ean den gracete panw apo to master boot sector, 8a einai pio eukolo na apegkatasthsete to Linux kai to Lilo an xreiastei.
Proswpika den xrhsimopoiw thn epilogh LBA h LARGE sto BIOS (alla egw trexw mono Linux). Ayta einai a8lioi periorismoi poy ofeilontai se sxediastika elattwmata toy kosmoy twn PC. Ayto apaitei oti o pyrhnas brisketai stoys prwtoys 1024 kylindroys, alla ayto den einai problhma oso kanete partition toys sklhrous sas kai kratate to root mikro (opws 8a eprepe na kanete etsi ki alliws).
An o sklhros sas diskos exei hdh ena allo leitoyrgiko susthma, den 8a mporesete na allajete tis ry8miseis toy BIOS, alliws to palio susthma den 8a doyleuei pia. Oles oi prosfates dianomes Lilo einai ikanes na xeiristoun LBA kai LARGE ry8miseis diskwn.
An exete perissoteroys apo enan sklhro disko kai merikoi apo aytous xrhsimopoiountai mono apo to Linux, alla oxi sthn ekkinhsh toy ypologisth, mporeite na dhlwsete sto BIOS sas oti den einai egkatasthmenoi. To susthma sas 8a jekinaei pio grhgora kai to Linux 8a anixneuei aytomata oloys toys diskoys se xrono mhden. Syxna syndew epipleon diskoys sto susthma moy, alla den allazw pote tis ry8miseis toy BIOS.
Otan deite to Lilo prompt, mporeite na pathsete ta plhktra <Tab> gia na deite th lista me tis pi8anes epiloges. An to Lilo den einai ry8mismeno na einai interactive, krathste pathmeno to plhktro <Alt> h <Shift> prin emfanistei to mhnyma ``LILO'' .
An dialejete na ekkinhsete enan pyrhna Linux, mporeite na pros8esete parametroys sth grammh entolwn meta apo to onoma toy systhmatos poy epilejate. O pyrhnas dexetai polles parametroys sth grammh entolwn, alla den einai to katallhlo meros gia na tis para8esoyme edw. Kata thn gnwmh moy, merikes apo aytes einai idiaitera shmantikes:
root=
: mporeite na peite ston pyrhna toy Linux na kanei mount san root
ena diaforetiko partition apo Ayto poy emfanizetai sto lilo.conf
.
Gia paradeigma, exw ena polu mikro partition poy filojenei mia epishs polu
mikrh Linux egkatastash, kai etsi katafera na jekinhsw to susthma otan
katestreca kata la8os to root partition moy.
init=
: h ekdosh 1.3.4 kai newteres toy pyrhna toy Linux dexontai
ton ka8orismo apo th grammh-entolwn enos programmatos poy ekteleitai anti
gia to /sbin/init
. An synanthsete dyskolies kata thn diarkeia
ths diadikasias ekkinhshs, mporeite na exete prosbash sto susthma
ka8orizontas to init=/bin/sh
(otan eiste sto shell
prompt pi8ana na xreiasteite na kanete mount toys diskoys sas: dokimaste to
``/sbin/mount -w -n -o remount /; mount -a
'',
kai 8ymh8eite na kanete ``/sbin/umount -a
'' prin kleisete ton
hlektroniko sas ypologisth).
/etc/inittab
kai sto /etc/rc.d
gia na synexisete peraiterw.
Otan to Lilo grafei panw apo to boot sector, krata ena antigrafo toy asfaleias sto
/boot/boot.
xxyy, opoy xxyy einai oi elaxistoi kai megistoi ari8moi
ths syskeyhs, se dekaejadikh morfh. Mporeite na deite toys elaxistoys kai megistoys ari8mous toy diskoy h toy partition sas ektelwntas thn ``ls -l
/dev/
device''. Gia paradeigma, to prwto sector toy
/dev/hda
(megisto 3, elaxisto 0) 8a sw8ei sto
/boot/boot.0300
, egka8istwntas to Lilo sto /dev/fd0
dhmioyrgei to
/boot/boot.0200
kai egka8istwntas to sto /dev/sdb3
(megisto
8, elaxisto 19) dhmioyrgei to /boot/boot.0813
. Shmeiwste oti to Lilo de 8a
dhmioyrghsei to arxeio an yparxei hdh ena. De xreiazetai na anhsyxeite gia
antigrafo asfaleias ka8e fora poy egkatasteite to Lilo (gia paradeigma, afou
janametaglwttisete ton pyrhna sas).
An pote xreiastei na apegkatasthsete to Lilo (gia paradeigma, sthn atyxh periptwsh
poy xreiazetai na apegkatasthsete to Linux), to mono poy xreiazetai einai na epanaferete to arxiko boot sector. An to Lilo einai egkatasthmeno sto /dev/hda
, aplws gracte ``dd if=/boot/boot.0300 of=/dev/hda bs=446 count=1
'' (proswpika grafw ``cat /boot/boot.0300 > /dev/hda
'', alla
den einai toso asfales, ka8ws Ayto 8a epanaferei kai to arxiko partition table ,
to opoio mporei na to exete tropopoihsei sto metaju). Ayth h entolh einai polu pio
eukolo na ektelestei para na prospa8hsete to ``fdisk /mbr
'' apo ena kelyfos DOS: sas epitrepei na afairesete to Linux apo ena disk xwris na xreiastei na ekkinhsete allo leitoyrgiko.
Afou afairesete to Lilo, 8ymh8eite na trejete to fdisk toy Linux gia na diagracete o,ti Linux partition exete (to fdisk toy DOS den mporei na diagracei non-dos partitions).
An exete egkatasthsei to Lilo sto root partition sas (p.x., /dev/hda2
),
de xreiazetai na kanete tipota to idiaitero gia na apegkatasthsete to Lilo.
Apla trejte to fdisk toy Linux gia na diagracete ta Linux partitions apo to partition table.
Epishs, prepei na markarete to DOS partition san bootable.