[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help: Error cargando nuevo kernel



Antonio Castro wrote:
> ...
> On Sun, 9 Apr 2000, Hue-Bond wrote:
> ...
> >          La raz=F3n  por la  que el n=FAcleo  intenta montar  /dev/hda1 como
> >      root (incluso ya  teniendo una partici=F3n root montada)  es algo que
> >      desconozco, pero es la causa del problema.
> 
> Pues es un comportamiento absurdo e inexplicable. Solo he caambiado el
> kernel y que yo sepa el kernel no lleva implicito el lugar donde va a
> ser montado...
> 
En realidad sí, el kernel tiene dentro esa información.
En el archivo Makefile que lo genera (/usr/src/linux/Makefile) se
define la variable ROOT_DEV, que por default tiene el valor del
root device del sistema que está generando el kernel.
Este "default" se puede cambiar en el Makefile, con el comando rdev
una vez generada la imagen (rdev imagen /dev/loquesea), o con los
parámetros de boot, en el momento del arranque.

Fuentes: manpages de "rdev" y "bootparam".

Para reemplazar el kernel del disco de rescate, puede ser útil lo que
dice en "readme.txt" del mismo disco (lo puedes montar como a cualquier
floppy con formato "fat"):
---------------------------------------------------------------------------
You can place any compressed Linux kernel on this disk, and it should boot.
To do so:
        Configure the kernel with the following facilities linked in: initrd,
         ramdisk, loop, msdos, fat, minix, elf, ext2fs, procfs.
    Make your kernel with "make bzImage".
    Copy it to "linux" on the boot disk.
    Change directory to the boot disk and run ./rdev.sh to configure the kernel.
    Optionally edit syslinux.cfg to add arguments to the "DEFAULT"
    line, or add an "APPEND" line with arguments to be appended to any
    user-typed command line as well as the default.

Documentation to read:
    /usr/lib/syslinux/readme*
    "man rdev"
    /usr/src/linux/documentation/ramdisk.txt

Source code:
    The scripts that create this disk and the other Debian bootstrap disks
    are installed in /usr/src/boot-floppies/ by the boot-floppies package.

- Bruce Perens, 12-March-1996
---------------------------------------------------------------------------
-- 
Saludos,
                                                         O__
Enzo.                                                    ,>/
========================================================()=\()====
Enzo A. Dari  |  Instituto Balseiro / Centro Atomico Bariloche
8400-San Carlos de Bariloche, Argentina | email: darie@cab.cnea.gov.ar
Phone: 54-2944-445208, 54-2944-445100 Fax: 54-2944-445299
Web page: http://cabmec1.cnea.gov.ar/darie/darie.htm


Reply to: