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

Bug#343570: mkinitrd fails during the installation



Package: installation-reports

Debian-installer-version: from debian.org on 12/16/05
uname -a: Linux Knoppix 2.4.27 #2 SMP Mo Aug 9 00:39:37 CEST 2004 i686
GNU/Linux
Date: 12/16/05, 11pm PST
Method: Installed using Knoppix CD

Machine: Dell INSPIRON 8100
Processor: Pentium III
Memory: 512MB
Root Device: /dev/hda1
Root Size/partition table:
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         146     1172713+  83  Linux
/dev/hda2             147         207      489982+  82  Linux swap
/dev/hda3             208        2432    17872312+  83  Linux

Output of lspci and lspci -n:

root@ttyp1[~]# lspci
0000:00:00.0 Host bridge: Intel Corp. 82815 815 Chipset Host Bridge and
MemoryController Hub (rev 04)
0000:00:01.0 PCI bridge: Intel Corp. 82815 815 Chipset AGP Bridge (rev 04)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev 03)
0000:00:1f.0 ISA bridge: Intel Corp. 82801BAM ISA Bridge (LPC) (rev 03)
0000:00:1f.1 IDE interface: Intel Corp. 82801BAM IDE U100 (rev 03)
0000:00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 03)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2
Go] (rev b2)
0000:02:03.0 Multimedia audio controller: ESS Technology ES1983S
Maestro-3i PCI Audio Accelerator (rev 10)
0000:02:06.0 PCI bridge: Actiontec Electronics Inc Mini-PCI bridge (rev 11)
0000:02:0f.0 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus
Controller
0000:02:0f.1 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus
Controller
0000:02:0f.2 FireWire (IEEE 1394): Texas Instruments PCI4451 IEEE-1394
Controller
0000:08:04.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100]
(rev 08)
0000:08:08.0 Communication controller: Lucent Microelectronics WinModem
56k (rev 01)

root@ttyp1[~]# lspci -n
0000:00:00.0 0600: 8086:1130 (rev 04)
0000:00:01.0 0604: 8086:1131 (rev 04)
0000:00:1e.0 0604: 8086:2448 (rev 03)
0000:00:1f.0 0601: 8086:244c (rev 03)
0000:00:1f.1 0101: 8086:244a (rev 03)
0000:00:1f.2 0c03: 8086:2442 (rev 03)
0000:01:00.0 0300: 10de:0112 (rev b2)
0000:02:03.0 0401: 125d:1998 (rev 10)
0000:02:06.0 0604: 1668:0100 (rev 11)
0000:02:0f.0 0607: 104c:ac42
0000:02:0f.1 0607: 104c:ac42
0000:02:0f.2 0c00: 104c:8027
0000:08:04.0 0200: 8086:1229 (rev 08)
0000:08:08.0 0780: 11c1:0448 (rev 01)

Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it

Initial boot worked:    [ ]
Configure network HW:   [ ]
Config network:         [ ]
Detect CD:              [ ]
Load installer modules: [ ]
Detect hard drives:     [ ]
Partition hard drives:  [ ]
Create file systems:    [ ]
Mount partitions:       [ ]
Install base system:    [E]
Install boot loader:    [ ]
Reboot:                 [ ]

Comments/Problems:

I deleted my gentoo linux and am trying to install debian from my Knoppix
CD. I followed the guideline in:
http://www.debian.org/releases/stable/i386/apcs04.html.en1

I have three partitions: /dev/hda1 (ext3), /dev/hda2 (swp), and /dev/hda3
(reiserfs). For gentoo, I used /dev/hda1 for /boot and /dev/hda3 for /.

I first tried:
===================================================
root@ttyp2[~]# /usr/sbin/debootstrap --arch i386 sarge /mnt/debinst
http://http.us.debian.org/debian
===================================================
which didn't work due to (I believe) known version error of the
debootstrap installed in Knoppix.

Instead, I downloaded debootstrap_0.3.3_all.deb and extracted in /root.
Then I tried:

===================================================
root@ttyp2[~]# DEBOOTSTRAP_DIR=/root/usr/lib/debootstrap
/root/usr/sbin/debootstrap --arch i386 sarge /mnt/hda3
http://http.us.debian.org/debian
===================================================

However, first time, it failed at "Unpacking required packages...", but
somehow, now (when I re-tried to see the error message) it works fine.

My /etc/fstab looks like:

===================================================
# file system    mount point   type       options                  dump pass
/dev/hda3        /             reiserfs   defaults                 0    1
/dev/hda1        /boot         ext3       ro,nosuid,nodev          0    2

/dev/hda2        none          swap       sw                       0    0
proc             /proc         proc       defaults                 0    0
===================================================

Then:

===================================================
Knoppix:/# mount -a
mount: special device /dev/hda1 does not exist
===================================================

Finally:

===================================================
Knoppix:/# apt-get install kernel-image-2.6.8-2-686
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  cramfsprogs dash initrd-tools module-init-tools
Suggested packages:
  lilo grub kernel-doc-2.6.8 kernel-source-2.6.8
The following NEW packages will be installed:
  cramfsprogs dash initrd-tools kernel-image-2.6.8-2-686 module-init-tools
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.7MB of archives.
After unpacking 46.0MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://http.us.debian.org sarge/main dash 0.5.2-5 [83.0kB]
Get:2 http://http.us.debian.org sarge/main module-init-tools 3.2-pre1-2
[73.1kB]
Get:3 http://http.us.debian.org sarge/main cramfsprogs 1.1-6 [21.3kB]
Get:4 http://http.us.debian.org sarge/main initrd-tools 0.1.81.1 [30.7kB]
Get:5 http://http.us.debian.org sarge/main kernel-image-2.6.8-2-686
2.6.8-16 [15.5MB]
Fetched 15.7MB in 23s (662kB/s)
Preconfiguring packages ...
Selecting previously deselected package dash.
(Reading database ... 8056 files and directories currently installed.)
Unpacking dash (from .../archives/dash_0.5.2-5_i386.deb) ...
Selecting previously deselected package module-init-tools.
Unpacking module-init-tools (from
.../module-init-tools_3.2-pre1-2_i386.deb) ...
Selecting previously deselected package cramfsprogs.
Unpacking cramfsprogs (from .../cramfsprogs_1.1-6_i386.deb) ...
Selecting previously deselected package initrd-tools.
Unpacking initrd-tools (from .../initrd-tools_0.1.81.1_i386.deb) ...
Selecting previously deselected package kernel-image-2.6.8-2-686.
Unpacking kernel-image-2.6.8-2-686 (from
.../kernel-image-2.6.8-2-686_2.6.8-16_i386.deb) ...

You are attempting to install an initrd kernel image (version 2.6.8-2-686)
This will not work unless you have configured your boot loader to use
initrd. (An initrd image is a kernel image that expects to use an INITial
Ram Disk to mount a minimal root file system into RAM and use that for
booting).

   As a reminder, in order to configure LILO, you need
   to add an 'initrd=/initrd.img' to the image=/vmlinuz
   stanza of your /etc/lilo.conf

I repeat, You need to configure your boot loader -- please read your
bootloader documentation for details on how to add initrd images.

If you have already done so, and you wish to get rid of this message,
please put
  "do_initrd = Yes"
in /etc/kernel-img.conf. Note that this is optional, but if you do not,
you will continue to see this message whenever you install a kernel
image using initrd.
Do you want to stop now? [Y/n]n
Setting up dash (0.5.2-5) ...

Setting up module-init-tools (3.2-pre1-2) ...

Setting up cramfsprogs (1.1-6) ...
Setting up initrd-tools (0.1.81.1) ...

Setting up kernel-image-2.6.8-2-686 (2.6.8-16) ...
/usr/sbin/mkinitrd: device /dev/hda3 is not a block device
Failed to create initrd image.
dpkg: error processing kernel-image-2.6.8-2-686 (--configure):
 subprocess post-installation script returned error exit status 9
Errors were encountered while processing:
 kernel-image-2.6.8-2-686
E: Sub-process /usr/bin/dpkg returned an error code (1)

Setting up kernel-image-2.6.8-2-686 (2.6.8-16) ...
/usr/sbin/mkinitrd: device /dev/hda1 is not a block device
Failed to create initrd image.
dpkg: error processing kernel-image-2.6.8-2-686 (--configure):
 subprocess post-installation script returned error exit status 9
Errors were encountered while processing:
 kernel-image-2.6.8-2-686
E: Sub-process /usr/bin/dpkg returned an error code (1)
===================================================

I tried do bunch of other things (for example, installing lilo separately
or even installing the system on /dev/hda1 instead of /dev/hda3) but it
didn't work either. My suspect is that there is no /dev/hda* somehow.

===================================================
Knoppix:/# ls /dev
MAKEDEV   dsp1     loop4   midi1       port   ram13  ram8       smpte1
agpgart   dsp2     loop5   midi2       ppp    ram14  ram9       smpte2
audio     dsp3     loop6   midi3       ptmx   ram15  random     smpte3
audio1    full     loop7   mixer       pts    ram16  rmidi0     sndstat
audio2    initctl  mem     mixer1      ram    ram2   rmidi1     tty
audio3    kmem     midi0   mixer2      ram0   ram3   rmidi2     tty0
audioctl  loop0    midi00  mixer3      ram1   ram4   rmidi3     urandom
console   loop1    midi01  mpu401data  ram10  ram5   sequencer  xconsole
core      loop2    midi02  mpu401stat  ram11  ram6   shm        zero
dsp       loop3    midi03  null        ram12  ram7   smpte0
===================================================

I tried to install makedev but it first tried to install kernel-image
which failed, of course.

Please let me get out of this mess. Thanks,

 - Zu




Reply to: