[debian] compil kernel 2.4.20 -> lilo cassé. initrd??

compil kernel 2.4.20 -> lilo cassé. initrd?? [debian] - Installation - Linux et OS Alternatifs

Marsh Posté le 20-01-2003 à 17:32:52    

ca sent le réchauffé mais g pas trouvé de solution a mon probleme:
 
g compilé mon noyo pour passer du 2.2 au 2.4.20
ca s'est plutot bien passé sauf q'ensuite mon eth0 etait plus la: je me dis: tu t'es planté dans l'integration du driver rezo po grave on recompile... sauf q au reboot ben il veut pas monter la partition, kernel panic et compagnie.
ca ressemble BCP a ce topic:  
 
http://forum.hardware.fr/forum2.ph [...] subcat=204
 
sauf q g pas de initrd.  :??: je le trouve ou?? :??:  
 
please help.
 
note: je vous donne un message d'erreur plus explicit apres un reboot. et puis le listing du lilo.conf, ls -l / et ls -l /boot si ca peut aider.  :jap:

Reply

Marsh Posté le 20-01-2003 à 17:32:52   

Reply

Marsh Posté le 20-01-2003 à 17:40:24    

si c'est un noyau perso, il y a peu de chance que le problème soit lié à initrd ( :??: )
Es-tu sûr d'avoir relancé lilo après l'installation du noyau modifié ?

Reply

Marsh Posté le 20-01-2003 à 17:44:40    

bah ton initrd tu le fais toi-même :
 
cd /usr/src/linux
mkinitrd --fstab=/etc/fstab /boot/initrd-2.4.20.img 2.4.20
 
ça doit fonctionner, --fstab est facultatif

Reply

Marsh Posté le 20-01-2003 à 17:47:31    

oui g fais lilo.
 
d'ailleurs il me renvoit un warning:
 

Code :
  1. Warning: Int 0x13 function 8 and function 0x48 return different
  2. head/sector geometries for BIOS drive 0x80

 
 
le message d'erreur q g eu boot:
 
 

Code :
  1. VFS: cannot open root device "307" or 03:07
  2. Please enter a correct "root=" boot option
  3. kernel panic, VFS Unable to mount root on fs or 03:07

Reply

Marsh Posté le 20-01-2003 à 17:53:47    

pour le warning sur la géométrie du disque, tu peux essayer ça :
 
sous ton noyau qui fonction : hdparm -g /dev/hda (remplace hda si ce n'est pas sur celui-ci)
 
tu notes les paramètres CHS qu'il te donne, tu édites ton lilo.conf, à la ligne "append=" pour le noyau qui passe pas, tu ajoutes "hda=C,H,S" (remplace C,H,S par les paramètres donnés bien sûr), donc tu obtiens par exemple :
 
append=hda=2340,255,63
 
tu relances lilo et rulezzz

Reply

Marsh Posté le 20-01-2003 à 17:58:10    

/etc/lilo.conf:
 

Code :
  1. # /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
  2. # ---------------       `install-mbr(8)', `/usr/share/doc/lilo/',
  3. #                       and `/usr/share/doc/mbr/'.
  4. # +---------------------------------------------------------------+
  5. # |                        !! Reminder !!                         |
  6. # |                                                               |
  7. # | Don't forget to run `lilo' after you make changes to this     |
  8. # | conffile, `/boot/bootmess.txt', or install a new kernel.  The |
  9. # | computer will most likely fail to boot if a kernel-image      |
  10. # | post-install script or you don't remember to run `lilo'.      |
  11. # |                                                               |
  12. # +---------------------------------------------------------------+
  13. # Support LBA for large hard disks.
  14. #
  15. lba32
  16. # Overrides the default mapping between harddisk names and the BIOS'
  17. # harddisk order. Use with caution.
  18. #disk=/dev/hde
  19. #    bios=0x81
  20. #disk=/dev/sda
  21. #    bios=0x80
  22. # Specifies the boot device.  This is where Lilo installs its boot
  23. # block.  It can be either a partition, or the raw device, in which
  24. # case it installs in the MBR, and will overwrite the current MBR.
  25. #
  26. boot=/dev/hda
  27. # Specifies the device that should be mounted as root. (`/')
  28. #
  29. root=/dev/hda7
  30. # Enable map compaction:
  31. # Tries to merge read requests for adjacent sectors into a single
  32. # read request. This drastically reduces load time and keeps the
  33. # map smaller.  Using `compact' is especially recommended when
  34. # booting from a floppy disk.  It is disabled here by default
  35. # because it doesn't always work.
  36. #
  37. # compact
  38. # Installs the specified file as the new boot sector
  39. # You have the choice between: bmp, compat, menu and text
  40. # Look in /boot/ and in lilo.conf(5) manpage for details
  41. #
  42. install=/boot/boot-menu.b
  43. # Specifies the location of the map file
  44. #
  45. map=/boot/map
  46. # You can set a password here, and uncomment the `restricted' lines
  47. # in the image definitions below to make it so that a password must
  48. # be typed to boot anything but a default configuration.  If a
  49. # command line is given, other than one specified by an `append'
  50. # statement in `lilo.conf', the password will be required, but a
  51. # standard default boot will not require one.
  52. #
  53. # This will, for instance, prevent anyone with access to the
  54. # console from booting with something like `Linux init=/bin/sh',
  55. # and thus becoming `root' without proper authorization.
  56. #
  57. # Note that if you really need this type of security, you will
  58. # likely also want to use `install-mbr' to reconfigure the MBR
  59. # program, as well as set up your BIOS to disallow booting from
  60. # removable disk or CD-ROM, then put a password on getting into the
  61. # BIOS configuration as well.  Please RTFM `install-mbr(8)'.
  62. #
  63. # password=tatercounter2000
  64. # Specifies the number of deciseconds (0.1 seconds) LILO should
  65. # wait before booting the first image.
  66. #
  67. delay=20
  68. # You can put a customized boot message up if you like.  If you use
  69. # `prompt', and this computer may need to reboot unattended, you
  70. # must specify a `timeout', or it will sit there forever waiting
  71. # for a keypress.  `single-key' goes with the `alias' lines in the
  72. # `image' configurations below.  eg: You can press `1' to boot
  73. # `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
  74. #
  75. # message=/boot/bootmess.txt
  76. prompt
  77. timeout=150
  78. # prompt
  79. # single-key
  80. # delay=100
  81. # timeout=100
  82. # Specifies the VGA text mode at boot time. (normal, extended, ask, <mode> )
  83. #
  84. # vga=ask
  85. # vga=9
  86. #
  87. vga=normal
  88. # Kernel command line options that apply to all installed images go
  89. # here.  See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
  90. # the Linux kernel `Documentation' directory.
  91. #
  92. # append=""
  93. # Boot up Linux by default.
  94. #
  95. default=Linux2.4
  96. image=/vmlinuz
  97. label=Linux2.4
  98. read-only
  99. # initrd=/initrd.img
  100. # restricted
  101. # alias=1
  102. image=/vmlinuz.old
  103. label=LinuxOLD2.2
  104. read-only
  105. optional
  106. # restricted
  107. # alias=2
  108. # If you have another OS on this machine to boot, you can uncomment the
  109. # following lines, changing the device name on the `other' line to
  110. # where your other OS' partition is.
  111. #
  112. # other=/dev/hda4
  113. # label=HURD
  114. # restricted
  115. # alias=3
  116. other=/dev/hda1
  117.   label="WinNT(hda1)"

 
 
ok, j'essai le hdparam

Reply

Marsh Posté le 20-01-2003 à 18:08:27    

décommente initrd = /initrd.img
 
ca aide

Reply

Marsh Posté le 20-01-2003 à 18:18:57    

oui, sauf q g pas (encore) de fichier /initrd
 
BMOTheKiller> la ligne de commande est pas bonne:
 

Code :
  1. idc322:/usr/src/linux# mkinitrd --fstab=/etc/fstab /boot/initrd-2.4.20.img 2.4.20
  2. /usr/sbin/mkinitrd: illegal option -- -
  3. $Id: mkinitrd,v 1.69 2002/10/18 23:01:27 herbert Exp $
  4. Usage: /usr/sbin/mkinitrd [OPTION]... <-o outfile> [moduledir]
  5. Options:
  6.   -d confdir  Specify an alternative configuration directory.
  7.   -k          Keep temporary directory used to make the image.
  8.   -m command  Set the command to make an initrd image.
  9.   -o outfile  Write to outfile.
  10.   -r root     Override ROOT setting in mkinitrd.conf.
  11. See mkinitrd(8) for further details.
  12. idc322:/usr/src/linux#

Reply

Marsh Posté le 20-01-2003 à 18:28:26    

Code :
  1. mkinitrd -o /boot/initrd.img
  2. ln -s /boot/initrd.img /initrd.img
  3. edit lilo.conf: ligne avec initrd=/initrd décommentée
  4. reboot


et pouf, pareil...
 

Reply

Marsh Posté le 20-01-2003 à 18:45:43    

t'as pensé à relancer lilo après tes modifs ?

Reply

Marsh Posté le 20-01-2003 à 18:45:43   

Reply

Marsh Posté le 20-01-2003 à 18:50:36    

oui oui
 

Code :
  1. idc322:~# lilo -v
  2. LILO version 22.2, Copyright (C) 1992-1998 Werner Almesberger
  3. Development beyond version 21 Copyright (C) 1999-2001 John Coffman
  4. Released 05-Feb-2002 and compiled at 20:57:26 on Apr 13 2002.
  5. MAX_IMAGES = 27
  6. Reading boot sector from /dev/hda
  7. Merging with /boot/boot-menu.b
  8. Warning: Int 0x13 function 8 and function 0x48 return different
  9. head/sector geometries for BIOS drive 0x80
  10. Boot image: /vmlinuz -> boot/vmlinuz-2.4.20
  11. Mapping RAM disk /initrd.img -> /boot/initrd.img
  12. Added Linux2.4 *
  13. Boot image: /vmlinuz.old -> boot/vmlinuz-2.2.20-idepci
  14. Added LinuxOLD2.2
  15. Boot other: /dev/hda1, on /dev/hda, loader /boot/chain.b
  16. Added WinNT(hda1)
  17. /boot/boot.0300 exists - no backup copy made.
  18. Writing boot sector.

Reply

Marsh Posté le 20-01-2003 à 18:55:57    

Code :
  1. VFS: cannot open root device "307" or 03:07
  2. Please enter a correct "root=" boot option 
  3. kernel panic, VFS Unable to mount root on fs or 3:07

 
 
c quoi cette option de boot?
 
parcq la ligne q g dans mon lilo.conf me parait correcte:
root=/dev/hda7
 
 

Code :
  1. idc322:~# cat /etc/fstab
  2. # /etc/fstab: static file system information.
  3. #
  4. # <file system> <mount point> <type> <options>  <dump> <pass>
  5. /dev/hda7 /  ext2 errors=remount-ro 0 1
  6. /dev/hda6 none  swap sw   0 0
  7. proc  /proc  proc defaults  0 0
  8. /dev/fd0 /floppy  auto user,noauto  0 0
  9. /dev/cdrom /cdrom  iso9660 ro,user,noauto  0 0
  10. /dev/hda8 /home  ext2 defaults  0 2
  11. /dev/hda5  /mnt/D   vfat    user

Reply

Marsh Posté le 20-01-2003 à 19:01:44    

bon, fo q je me rentre.
je continuerai demain matin.
 
merci pour votre soutien...
 :cry:

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed