Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Linux
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 25th, 2006, 08:07 AM
Authorized User
Join Date: Feb 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default root directories

I read the wrox beginning redhat linux book but they do not cover all the root directories ie dir found in /


Where do I findout about these directories. What are they used for.



Old November 27th, 2006, 10:54 PM
Friend of Wrox
Join Date: Aug 2004
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts

not all distributions are the same. Every distribution will wind up giving you different folders. Most good Unix books cover the fairly standard stuff. Imagine if someone tried to write a book that covered all automobile features. Hard to do. But easy to cover the frequent and common ones. For that detailed info you will have to read about your particular distribution.

Old December 14th, 2006, 08:44 AM
Friend of Wrox
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco

initrd stands for "initial ramdisk" and is used by Linux and other Unix-related operating systems in their boot procedure.

Phase one of this two-phase process is the kernel boot. It will load the initrd file and mount it in RAM as a RAM disk. By executing executables contained within the cached ramdisk it loads up initial necessary file system drivers for a file system to operate. During this process, devices like USB devices, network cards, RAID arrays and others will get mounted so that the phase two process can boot up the operating system normally.

Note that it is possible to boot Linux without using an initrd, if nothing needs to be loaded before the file system is mounted (i.e. the device on which the main file system resides does not need external drivers to be loaded). This is usually the case for IDE based systems. In this case, it simply mounts the real file system and then configures the devices as normal. On SCSI systems, special drivers may be necessary, in which case the system will not boot without an initrd image to load them.

Having a place to run code before filesystems are mounted with write access is also important when resuming from hibernation; Suspend2 requires special steps to be taken at this stage to avoid filesystem corruption [1].

The usual program for creating an initrd image is mkinitrd. However, some alternatives exist, such as Yaird.

The ramdisk initrd file is usually adopted in compressed filesystem form, therefore found as initrd.gz. In order to access its contents, it is possible to decompress it using Gzip and then to mount it as a loopback file system using the mount command: mount -o loop [file] [mount point]. Later initrd.gz files for initramfs, the successor to initrd, are created using cpio. The contents of these initrd.gz files can be unpacked using the command line: gzip -dc < [file] | cpio -i -d [destination]


Similar Threads
Thread Thread Starter Forum Replies Last Post
choose between two directories and use one jjk2 PHP How-To 1 June 3rd, 2008 05:07 PM
External Directories doyle matt Apache Tomcat 0 October 19th, 2004 09:13 AM
choosing directories joconnor PHP How-To 0 August 11th, 2004 09:12 AM
Sub Directories shmacgregor VS.NET 2002/2003 2 December 19th, 2003 05:18 PM
Drives and Directories zhenwe1 Servlets 1 December 14th, 2003 01:45 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.