LinuxQuestions.org
Visit Jeremy's Blog.
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 12-17-2014, 02:55 AM   #1
Aulilino
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Rep: Reputation: Disabled
how to make an ext2/3 FS without datablock


Needs: make an ext2/3 File System without datablock, just keep the other part, save the attribute of file or directory and discard the data of them. When write it, just return and when read it, just return all zero.
I download e2fsprogs-1.42.11.tar.gz from http://e2fsprogs.sourceforge.net/ , now I have some problem.

Ubuntu 14.04 with kernel 3.13.0-32-generic

1. After I execute "./configure" in the e2fsprogs-1.42.11, I execute "make" in folder misc but it was interrupted with "make: *** No rule to make target `../lib/ext2fs/ext2_err.h', needed by `mke2fs.o'. Stop." Help!!!

2. First I want find the code that format the partition where I can change it to discard datablock. The file "mk2fs.c" confuesd me, could someone tell me whether what I do is right or not and how to do it.

Any help will be appreciated and than you guys in advance!

Last edited by Aulilino; 12-17-2014 at 08:23 PM.
 
Old 12-17-2014, 03:15 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
e2fsprogs progs create and modifies some paratemeters of filesystem.
But linux kernel is the one which reads or writes data on the filesystem.
It would be a long way to accomplish what you need.
 
Old 12-17-2014, 06:44 AM   #3
Aulilino
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by veerain View Post
e2fsprogs progs create and modifies some paratemeters of filesystem.
But linux kernel is the one which reads or writes data on the filesystem.
It would be a long way to accomplish what you need.
Thanks for your time.
About the part of kernel, I think what I should do is just change the read and write function.
And I should format the partition to what I want first.
 
  


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
How to make ext2 fsck time tolerant at boot ? Linux.tar.gz Linux - Software 4 03-06-2012 07:55 PM
EXT2 -fs warning (device sda1): ext2_fill_super:mounting ext3 filesystem as ext2 snakeo2 Linux - Newbie 6 11-19-2006 07:35 PM
what is the medium who provides mapping between indoe number and datablock mayankh Linux - Kernel 1 09-25-2006 08:38 AM
How can i make ext2 0.5a fs? xpp Linux - General 0 05-22-2006 09:52 PM
How i make Ext2,Ext3 partition from FDISK Shiraz Ahmed Linux - Software 1 08-23-2004 06:56 AM

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

All times are GMT -5. The time now is 08:21 AM.

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