02-18-2006
initrd
ok, I'm trying to roll an initrd from scratch for learning purposes. I'm using cramfs for the filesystem so that I can modularize ext2 and ext3. The initrd has the modules required for ext3, a static insmod, a statis 'ash', static pivot_root, and a linuxrc that mounts the needed root partition after insmod'ing the needed ext3 ko's (like jbd, etc)
the problem comes with the reboot, I try to boot and it exec's the /linuxrc script which uses ash, calling all utilites with their full pathes and pivots root from the mount point of the root partition to /
the problem is this: all my messages are reported to the user as successes, however they're obviously not, when I give init=/bin/sh (which on my root partition is a link to bash, but in initrd is what ash is called) I try to do an ls (both by itself and it's supposed path) it says it can't find it, if I try to auto-complete on the mount point for root it says access is denied, and I'm apparently still running in ash.
so, can anyone help me here?
Last edited by thmnetwork; 02-18-2006 at 06:13 PM..
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
(rus cp1251)
Вобщем смысл поста такой:
я пытаюсь сделать Linux на дискетке и всё это опробовать на 386... =D
поскольку памяти там мало, а ядро и initrd вроде как зажаты, я хотел бы узнать
а) я сделал ядро (bzImage) оно 600 Кб. оно в памяти займёт 600 Кб или оно ещё разожмётся?
б) аналогично с initrd. и ещё: он вроде 4МБ а можно в параметрах ядра сделать поменьше, можно-ли в 1-2МБ памяти уместить initrd и ядро?
(eng)
i am try to make linux on diskette and run it on i386... =D
there are... (0 Replies)
Discussion started by: MR.Z
0 Replies
2. Red Hat
I have a 80GB hard disk with WinXP already installed.I had tried installing Fedora 10 earlier without creating new partitions(real foolish and ignorant of me :o:o ) and tried creating partitions using Fedora10 bootable.It didnt work.Then I created a free partition and again tried installing... (4 Replies)
Discussion started by: ganesh.k28
4 Replies
3. Linux
Hello, I want to know why initrd need swap for work. In the shell of mkinitrd, it look for the swap partation for "swsuspdev", then write a sentence "resume /dev/sdXX" in the file init from initrd.gz, and the /dev/sdXX is the swap partation.
Why initrd need swap when it boot a system? what is... (4 Replies)
Discussion started by: ZR_Lang
4 Replies
4. UNIX for Advanced & Expert Users
Hi, all:
The vmlinuz-3.0.4.old is a kernel previous to the current running kernel vmlinuz-3.0.4 which is compiled the most currently. Could I get the initrd.img-3.0.4.old without recompile under the condition that the config-3.0.4.old, System.map-3.0.4.old and vmlinuz-3.0.4.old exist? if it... (1 Reply)
Discussion started by: liklstar
1 Replies
5. Red Hat
I used the redhat RHEL6 boot with initrd but it failed, can sb help me
# /usr/libexec/qemu-kvm --enable-kvm -smp 8 -m 1024 -net nic,model=virtio -net tap,script=/etc/qemu-ifup -initrd /boot/initramfs-2.6.32-279.el6.x86_64.img -kernel /boot/vmlinuz-2.6.32-279.el6.x86_64 -append "root=/dev/ram... (4 Replies)
Discussion started by: yanglei_fage
4 Replies
6. UNIX for Advanced & Expert Users
I have a really old distro (FC7) that I am trying to make compatible with some new hardware (ie. new RAID drivers)...
I put the RAID driver into the ISO so that the installer can detect the RAID set... but post-install (aka: first boot) it appears that the Anaconda-generated initrd does not have... (0 Replies)
Discussion started by: jjinno
0 Replies
LEARN ABOUT LINUX
mkdumprd
MKDUMPRD(8) User Manuals MKDUMPRD(8)
NAME
mkdumprd - (Re)build the initramfs for kdump
SYNOPSIS
mkdumprd [-h] [-q] [-f] [-k kernelver] [-i opts]
DESCRIPTION
mkdumprd (re-)builds the kdump initrd. For kdump, a special initrd is used because
o the kdump initrd should include network modules and network configuration (and therefore is larger as the normal initrd used for
booting),
o the kdump initrd should use no splash screen,
o the kdump initrd includes kdumptool(8) and all required libraries.
This script calls mkinitrd(8) with all required parameters. If the initrd already exists, it checks first if the configuration file or the
kernel are newer, and only rebuilds the initrd if necessary.
OPTIONS
All option parsing is done via the getopt(3) function, and therefore follows all standard command line parsing rules.
-h | --help
Shows help output and exits.
-k kernelversion
Specifies the kernel version. If no version is specified and also no kernel or initrd are specified, then mkdumprd uses kdumptool(8) to
find out the correct kernel and initrd.
-K kernel
Specifies the kernel binary. If you specify that option, also specify -I.
-I initrd
Specifies the resulting initrd. If you specify that option, also specify -K.
-q
Be quiet. Don't output status messages. Used to call mkdumprd(8) from /etc/init.d/kdump init script.
-i parameters
Append the specified parameters to mkinitrd(8) call.
FILES
/etc/sysconfig/kdump
Kdump configuration. See kdump(5).
BUGS
Please report bugs and enhancement requests at https://bugzilla.novell.com.
COPYING
Copyright (c) 2008 Bernhard Walle <bwalle@suse.de>. Free use of this software is granted under the terms of the GNU General Public License
(GPL), version 2 or later.
SEE ALSO
kdumptool(8), mkinitrd(8), http://en.opensuse.org/Kdump
kdump 0.8.1 07/05/2010 MKDUMPRD(8)