LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2012, 01:46 PM   #1
origami-sheep
Member
 
Registered: Dec 2009
Distribution: Arch
Posts: 103

Rep: Reputation: 2
compiling directories in initramfs / initrd


hi, just a quick question: is it possible to put directories in the initial ram disk?

if so how?

and would i be able to access them normally?


thanks
 
Old 05-13-2012, 06:59 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by origami-sheep View Post
hi, just a quick question: is it possible to put directories in the initial ram disk?
Yes.

Quote:
if so how?
Short answer: Decompress the initrd, modify the filesystem, compress it again. Long answer: http://www.thegeekstuff.com/2009/07/...te-initrd-img/

Quote:
and would i be able to access them normally?
Depends on what you mean with normally. The added files/folders will be accessible to programs/scripts that are running in the initrd. Once the init-scripts switch the root to the /-filesystem you will not be able to access them anymore.
 
  


Reply

Tags
directories, initramfs, initrd



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do I successfully edit an initramfs / initrd? launchpadtt Linux - Server 3 09-12-2011 05:36 PM
initrd vs. initramfs rrlangly Gentoo 1 05-24-2010 09:05 AM
Initramfs vs Initrd Potatos Linux - Kernel 1 05-03-2010 05:13 AM
Confusion PLEASE HELP!!!! Initrd + initramfs aroche Linux - General 2 08-18-2006 01:59 PM
difference between initrd and initramfs shrndegruv Linux - General 1 02-14-2006 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration