LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-24-2004, 01:29 PM   #1
winklmj
LQ Newbie
 
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
Root FileSystem from RamDisk/InitRD


I've only been toying with Linux for a couple of weeks off and on. But I've got a not-so-newbie task to accomplish.

I'm trying to setup a very tiny PXE boot of Slackware. I want it to boot via PXE and run off a root filesystem contained entirely in a ramdisk (because later I'm going to be completely trashing/redoing the hard disks on the machines).

I've got PXELINUX working and kinda figured out how to compile a kernel (but that still needs lots of fine tuning). I want to compile into the kernel as much as I can so I don't have to worry about modules at this point.

What I'm having trouble with is setting up the root file system. I've kinda figured out what needs to be done as far as setting up a loopback device, and getting files into and out of it, gzipping it up, and getting that into a ram disk.

But my problem is--exactly what files and directories do I have to put on the root file system? At a minimum I need to be able to get to the network and map back to Windows Shares (using mount -t smbfs....). How does one figure out which files and dirs are needed and which can be deleted?
 
Old 11-24-2004, 11:16 PM   #2
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
As far as basic shell commands go, probably the simpliest way to get what you need is to use Busybox. You'd need to add smbfs to the kernel of course. I'm not sure if a samba client would be required or not for you mount smb shares using mount though, but I don't think so. But mount is included in Busybox, as are most all of the networking tools. You can find out what support files a binary requires by starting it with "strace". You can list required libraries for a dynamic binary using "ldd".

Anyway, you may want to have a look around the net. Most likely someone has already created a bootdisk close to what you need. I know there is one called "Bart's Bootdisk" but I believe it is MSDOS. If a CDROM is available, you could use something like Knoppix or one of the other smaller CD distros as well.

Last edited by DaHammer; 11-24-2004 at 11:23 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux initrd (ramdisk) dubi Linux - Software 1 07-26-2005 10:25 AM
how to use initrd for making RAMdisk Boudewijn Debian 1 12-08-2004 03:34 AM
ext2 filesystem, do I need a initrd, confirmation? jtp51 Slackware 1 10-23-2004 11:13 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM
Trying to understand how a boot loader handles initrd/initramfs/ramdisk ... cyril Linux - Software 0 04-08-2004 05:10 AM


All times are GMT -5. The time now is 03:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration