08-26-2012
Quote:
Originally Posted by
neutronscott
I believe with initramfs you don't specify root.
Just find that it seems the initramfs in redhat not contains rootfs, only contains the kernel modules. how about in your side, I don't know how to check if it contains the rootfs
I see with initramfs, the kernel module loaded, and the if I sepcify with disk file for the root, it boot well
9 More Discussions You Might Find Interesting
1. Linux
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... (0 Replies)
Discussion started by: thmnetwork
0 Replies
2. 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
3. UNIX for Dummies Questions & Answers
hi i got a virtual linux machine running on qemu
my problem is connecting it to the internet
im a bit confused weather i have to make a virtual network card in qemu
and than tun tap it?
can anyone thats done it before help me out? (1 Reply)
Discussion started by: russian460
1 Replies
4. 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
5. 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
6. 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
7. 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
8. Virtualization and Cloud Computing
Heyas
So, i like doing custom a LiveImage of my OS.
Using Redhats kickstart/livecd-creator method.
Anyway, so i would like to test the liveimages...
AND also, i WOULD like to install FreeBSD, Solaris, or whatever, onto a Virtual Machine.
I used to use Oracles Virtualbox, but eversince... (3 Replies)
Discussion started by: sea
3 Replies
9. Red Hat
So we have a RHEL 7.6 workstation with 128 gigs of ram. The OS sees all the ram and 80 cors (40 HT)
We have 1 guest with 8 CPUs and 32gigs of ram running RHEL 7.6 workstation as well. We are trying to create another guest with 64 CPUs and 80 gigs of ram. We setup the system using... (0 Replies)
Discussion started by: joeg1484
0 Replies
LEARN ABOUT LINUX
mkinitramfs
MKINITRAMFS(8) mkinitramfs manual MKINITRAMFS(8)
NAME
mkinitramfs - low-level tool for generating an initramfs image
SYNOPSIS
mkinitramfs [-c compress] [-d confdir] [-k] -o outfile [-r root] [-v] [version]
mkinitramfs [--supported-host-version= hversion]
mkinitramfs [--supported-target-version= tversion]
DESCRIPTION
The mkinitramfs script generates an initramfs image. The initramfs is a compressed cpio archive. The archive can be used on a different
box of the same arch with the corresponding Linux kernel. mkinitramfs is meant for advanced usage. On your local box update-initramfs
calls mkinitramfs with the relevant parameters. update-initramfs keeps sha1sum of generated initramfs. It takes care to generate backups
and eventually runs the bootloader.
At boot time, the kernel unpacks that archive into RAM disk, mounts and uses it as initial root file system. All finding of the root device
happens in this early userspace.
OPTIONS
-c compress
Override the COMPRESS setting in initramfs.conf.
-d confdir
Set an alternate configuration directory.
-k Keep the temporary directory used to make the image.
-o outfile
Write the image to outfile.
-r root
Override the ROOT setting in initramfs.conf.
-v Set the verbose mode output.
version
Set the kernel version of the initramfs image (defaults to the running kernel).
--supported-host-version=hversion
This option queries if mkinitramfs can create ramdisks on a running kernel of version hversion.
--supported-target-version=tversion
This option queries if mkinitramfs can create ramdisks for kernel version tversion.
ENVIRONMENT
mkinitramfs honours the TMPDIR environment variable. If set, it uses subdirectories in the given directory to create its temporary working
directories. Else it uses /tmp as default value for that purpose. The given directory should be on a filesystem which allows the execution
of files stored there, i.e. should not be mounted with the noexec mount option.
FILES
/etc/initramfs-tools/initramfs.conf
The default configuration file for the script. See initramfs.conf(5) for a description of the available configuration parameter.
/etc/initramfs-tools/modules
Specified modules will be put in the generated image and loaded when the system boots. The format - one per line - is identical to
that of /etc/modules, which is described in modules(5).
/etc/initramfs-tools/conf.d
The conf.d directory allows one to hardcode bootargs at initramfs build time via config snippets. This allows one to set ROOT or
RESUME. This is especially useful for bootloaders, which do not pass an root bootarg.
/etc/initramfs-tools/DSDT.aml
If this file exists, it will be appended to the initramfs in a way that causes it to be loaded by ACPI.
EXAMPLES
Create an initramfs for current running kernel:
mkinitramfs -o ~/tmp/initramfs-$(uname -r)
Create an initramfs for specific kernel and keep builddirs:
mkinitramfs -k -o ~/tmp/initramfs-2.6.21-686 2.6.21-686
Debug initramfs creation (check out written logfile)
sh -x mkinitramfs -o ~/tmp/initramfs-$(uname -r) 2> ~/tmp/log
AUTHOR
The initramfs-tools are written by Maximilian Attems <maks@debian.org>, Jeff Bailey <jbailey@raspberryginger.com> and numerous others.
SEE ALSO
initramfs.conf(5), initramfs-tools(8), update-initramfs(8).
Linux 2010/04/07 MKINITRAMFS(8)