LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-16-2005, 10:44 PM   #1
ewt3y
Member
 
Registered: May 2005
Location: hanoi vietnam
Distribution: mandriva
Posts: 106

Rep: Reputation: 15
Building a root filesystem


Here is some notes to build your own fs :
the fs must have the basic structure
and config files : inittab, fstab, rc
devices : tty...
mke2fs -m 0 -N 1889
mount -t ext2 /tmp/loop /mnt
/dev/ must have : kmem , mem , null , tam0 , tty1, console
df -l display inodes usage
ls -ltru list in reverse order of date last been accessed
rc.d should contain:
#!/bin/sh
/bin/mount -av
and fstab:

/dev/hdb3 / ext2 default
/dev/hdb2 /boot ext2 default
/proc /proc proc default


these files in /bin: getty, init, mount, sh



/lib:
ldd bin
include lbc, libc.so, ld.so, ld-linux.so
file lib



mkdir -p /mnt/var/(log,run)
touch /mnt/var/run/utmp
ldconfig -r /
 
Old 08-17-2005, 02:38 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
In the Linux-Newbie forum the post will be lost. I don't have a good place to move it, however. If you have time you can write a Linux Tutorial about building a filesystem from scratch based on this post.
 
  


Reply



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
sem has incomplete type error in building the filesystem image sudhirvemana Linux - Newbie 1 11-25-2004 01:45 PM
sem has incomplete type error in building the filesystem image sudhirvemana Linux - Software 0 11-25-2004 03:17 AM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM
Building a Linux Filesystem from an Ordinary File mchirico LinuxQuestions.org Member Success Stories 3 09-18-2004 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:49 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