Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > Linux
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 25th, 2006, 08:07 AM
Authorized User
 
Join Date: Feb 2006
Location: , , .
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 /

/initrd
/lost+found
/misc
/opt
/tftpboot

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

Thanks

Brendon


Reply With Quote
  #2 (permalink)  
Old November 27th, 2006, 10:54 PM
Friend of Wrox
 
Join Date: Aug 2004
Location: Orange County, CA, USA.
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Reply With Quote
  #3 (permalink)  
Old December 14th, 2006, 08:44 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
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
Default

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]

www.crmpicco.co.uk
www.ie7.com
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:29 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.