Lilo kai meta reboot.

Giorgos Keramidas keramida at hades.hell.gr
Wed Jun 23 01:36:58 EEST 1999


On Tue, Jun 22, 1999 at 03:19:26AM +0300, Giannis Papaioannou wrote:
> 
> On Tue, 22 Jun 1999, Balafoutis Hlias wrote:
> 
> >  Mou exei symbei ki emena otan perasa gia prwth fora ton 2.2.5
> > Den eimai sigouros gia to ti eftaige.
> > Mou fainete oti meta to compilation eixa kanei
> > cp zImage /boot/vmlinuz
> > anti gia cat zImage > /boot/vmlinuz
> 
> edw poia einai h diafora?

Basika, etsi opws ti0etai n erwtnsn: kamia diafora dev uparxei.  Afou kai to
"cat" kai to "cp" av to output arxeio uparxei diatnrouv to idio i-node sto
arxeio opws faivetai kai apo to paradeigma:

  -------------------------------------------------------------------------
  hades:~ % cat > pikra
  rgopuibehrt
  ren
  ern
  ^D
  hades:~ % cat > gluka
  erbibrtnr
  retn
  rym
  tmy
  ^D
  hades:~ % ls -li pikra gluka
     2274 -rw-r--r--   1 keramida devel          23 Jun 23 01:14 gluka
     2273 -rw-r--r--   1 keramida devel          20 Jun 23 01:14 pikra
  hades:~ % cat gluka > pikra
  hades:~ % ls -li pikra gluka
     2274 -rw-r--r--   1 keramida devel          23 Jun 23 01:14 gluak
     2273 -rw-r--r--   1 keramida devel          23 Jun 23 01:14 pikra
  hades:~ % cp -f gluka pikra
  hades:~ % ls -li pikra gluka
     2274 -rw-r--r--   1 keramida devel          23 Jun 23 01:14 gluka
     2273 -rw-r--r--   1 keramida devel          23 Jun 23 01:15 pikra
  hades:~ % _
  -------------------------------------------------------------------------

Auto pou exei snmasia eivai oti eva i-node mporei va mnv eivai aparaitnta
sto idio disk-block meta apo mia diagrafn/avtigrafn.  Pragma to opoio
snmaivei pws to arxiko block sto disko mporei va allaksei.

Twra to lilo ligo skotistnke gia to i-node, alla to LBA-block ("linear block
access" snmainei to LBA gia osous den to hkseran hdh) to endiaferei, afou
auto ton ari0mo stelnei sto BIOS gia na diabasei ta arxika sectors tou
linux kernels, ta opoia afou mpoun se protected-mode fortwnoun to upoloipo
kernoula gia na sunexisei to booting [blepe kai...
$LINUX/arch/i386/boot/bootsect.S kai $LINUX/arch/i386/boot/setup.S gia pio
polles leptomereies]

Sumperasma -- to Kernel-HOWTO (grammn 775 stnv ekdosn 0.80 [May 1997]) kati
kserei kai leei:

  -------------------------------------------------------------------------
  7.4.  New version of the kernel doesn't seem to boot

  You did not run LILO, or it is not configured correctly. One thing
  that `got'' me once was a problem in the config file; it said `boot =
  /dev/hda1' instead of `boot = /dev/hda' (This can be really annoying
  at first, but once you have a working config file, you shouldn't
  to change it.).
  -------------------------------------------------------------------------

Sto spitiko mou PC (ap' opou kai to paradeigma parapano) sto /boot uparxouv
ta eksns vmlinuz* :

  -------------------------------------------------------------------------
  hades:/boot % ls -l vmlinuz*
  lrwxrwxrwx   1 root     root           14 Jun 19 18:46 vmlinuz -> vmlinuz-2.2.10
  -rw-r--r--   1 root     root       461067 Jun 15 05:12 vmlinuz-2.0.30
  -rw-r--r--   1 root     root       345618 Jun 15 05:12 vmlinuz-2.0.36
  -rw-r--r--   1 root     root       519447 Jun 20 17:34 vmlinuz-2.2.10
  -rw-r--r--   1 root     root       442150 Jun 15 05:12 vmlinuz-2.2.6
  -rw-r--r--   1 root     root       456128 Jun 15 05:12 vmlinuz-2.2.9
  lrwxrwxrwx   1 root     root           13 Jun 20 17:36 vmlinuz-resque -> vmlinuz-2.2.9
  -------------------------------------------------------------------------

Opote, afou trekso se ena kainourio /usr/src/linux tin entoli:

  -------------------------------------------------------------------------
  hades:/usr/src/linux-2.2.10 # make mrproper menuconfig dep clean zImage modules modules_install
  hades:/usr/src/linux-2.2.10 # cp arch/i386/boot/zImage /boot/vmlinuz-2.2.10
  hades:/usr/src/linux-2.2.10 # cp System.map /boot
  -------------------------------------------------------------------------

kano kai ta eksis:

  -------------------------------------------------------------------------
  hades:/usr/src/linux # cd /boot
  hades:/boot # rm -f vmlinuz ; ln -s vmlinuz-2.2.10 vmlinuz
  hades:/boot # lilo
  Added linux *
  Added resque
  hades:/boot #
  -------------------------------------------------------------------------

To /etc/lilo.conf xrnsimopoiei ta links /boot/vmlinuz gia to 'linux' image
kai to /boot/vmlinuz-resque gia to 'resque' image, opote allazontas auta,
den xreiazetai na paizo kai polu me to lilo.conf mou - kati pou den einai
idiaitera duskolo alla merikes fores einai eukolo na ginei lathos...

Ki afou egrapsa allo ena HOWTO se ena mail, kai arxisa hdh na nistazo:

	Kalnvixta . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list