[prev in list] [next in list] [prev in thread] [next in thread]
List: mandrake-cooker
Subject: [Cooker] rebuild an initrd under rescue cdrom
From: Pascal Cavy <pascal () vmfacility ! fr>
Date: 2003-04-01 12:17:08
[Download RAW message or body]
After migration from MDK 7.2 to MDK 9.1, the installer left a new system
without an initrd for 2.4.21-0.13mdk, thus I cannot boot it anymore.
I was wondering if it is possible to rebuild my initrd from the 9.1 rescue CD.
I tried the following but to no avail (maybe because of using the freshly
installed system by means of a chroot on /mnt) :
boot rescue cd1
mount all FS on /mnt
go to console
chroot /mnt
First I was to mount /proc because mkinitrd _does not check_ that /proc is
available and thus we end in a loop at the step it scans for /proc/mounts FS.
mount /proc
mkinitrd /boot/initrd-2.4.21-0.13mdk.img 2.4.21-0.13mdk.img
which leads to an error like :
+ dd if=/dev/zero of=/tmp/initrd.img.LiQwlh bs=1k count=420
+ '[' -n '' ']'
+ mke2fs -q -m 0 -F -N 45 -s 1 /tmp/initrd.img.LiQwlh
mke2fs 1.32 (09-Nov-2002)
mke2fs: Device size reported to be zero. Invalid partition specified, or
partition table wasn't reread after running fdisk, due to
a modified partition being busy and in use. You may need to reboot
to re-read your partition table.
+ mkdir -p /tmp/initrd.mnt.sSf2Ug
+ mount -t ext2 /tmp/initrd.img.LiQwlh /tmp/initrd.mnt.sSf2Ug -o loop
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
or too many mounted file systems
+ echo 'Can'\''t get a loopback device'
Can't get a loopback device
+ exit 1
+ rm -rf /tmp/initrd.3Syylf /tmp/initrd.mnt.sSf2Ug /tmp/initrd.img.LiQwlh
has anyone a key of how to do this under rescue ?
--
Pascal Cavy - VMF
__________________________________________________________________
Running 6 min, 2 users, load average: 0.07, 0.37, 0.23
(gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk))
Kernel Linux version 2.4.21-0.13mdkenterprise
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic