All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manish Katiyar <mkatiyar@gmail.com>
To: ranjith kannikara <ranjithkannikara@gmail.com>
Cc: Bryan Donlan <bdonlan@gmail.com>,
	linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org
Subject: Re: Help to edit inode content
Date: Tue, 12 May 2009 21:43:47 +0530	[thread overview]
Message-ID: <ea11fea30905120913y34586943y1567df47022ead50@mail.gmail.com> (raw)
In-Reply-To: <20aa8c370905120902o71ab9adflb8619e2a9ae343d0@mail.gmail.com>

On Tue, May 12, 2009 at 9:32 PM, ranjith kannikara
<ranjithkannikara@gmail.com> wrote:
> On Tue, May 12, 2009 at 9:26 PM, Bryan Donlan <bdonlan@gmail.com> wrote:
>> On Tue, May 12, 2009 at 11:47 AM, ranjith kannikara
>> <ranjithkannikara@gmail.com> wrote:
>>> Hi,
>>> I am a computer science engineering student. We have started a project
>>> to make an application to recover deleted files from an ext3
>>> filesystem. For that we have a doubt . Can we edit the inode content?

Hi,

yes you can. See the debugfs tool which comes with e2fsprogs. It
allows you to open a filesystem and then change the attributes of an
inode. It also has libext2fs which you can use to write programs
through its exported APIs.

Hope that helps

- Manish

>>> ie the recovery will be robust if we could edit the inode contents and
>>> give the pointer address manually or through a code. The inode is
>>> being created in the kernel mode and is it possible to edit those
>>> contents if the code is allowed to have the kernel mode permissions..?
>>
>> You'd probably be best off doing this in userspace, with the
>> filesystem unmounted.
> Of course we are doing it from another filesystem. ie only after
> unmounting the filesystem which is being worked on. in some case we
> make image of the filesystem to ensure security of data.
>> Generally speaking, don't attempt to alter the filesystem from
>> userspace while it is mounted.
>>
> But we would like to know whether it is possible to edit the inode
> because it will make the recovery easy and robust. ie he know the
> details of the inode of the file which had been deleted is it possible
> to edit the content of that inode with the pointers of the deleted
> file.?
> Regards
> Ranju.
>
>
>
> --
> http://www.ranjithkannikara.blogspot.com/
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Thanks -
Manish

WARNING: multiple messages have this Message-ID (diff)
From: Manish Katiyar <mkatiyar@gmail.com>
To: ranjith kannikara <ranjithkannikara@gmail.com>
Cc: Bryan Donlan <bdonlan@gmail.com>,
	linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org
Subject: Re: Help to edit inode content
Date: Tue, 12 May 2009 21:43:47 +0530	[thread overview]
Message-ID: <ea11fea30905120913y34586943y1567df47022ead50@mail.gmail.com> (raw)
In-Reply-To: <20aa8c370905120902o71ab9adflb8619e2a9ae343d0@mail.gmail.com>

On Tue, May 12, 2009 at 9:32 PM, ranjith kannikara
<ranjithkannikara@gmail.com> wrote:
> On Tue, May 12, 2009 at 9:26 PM, Bryan Donlan <bdonlan@gmail.com> wrote:
>> On Tue, May 12, 2009 at 11:47 AM, ranjith kannikara
>> <ranjithkannikara@gmail.com> wrote:
>>> Hi,
>>> I am a computer science engineering student. We have started a project
>>> to make an application to recover deleted files from an ext3
>>> filesystem. For that we have a doubt . Can we edit the inode content?

Hi,

yes you can. See the debugfs tool which comes with e2fsprogs. It
allows you to open a filesystem and then change the attributes of an
inode. It also has libext2fs which you can use to write programs
through its exported APIs.

Hope that helps

- Manish

>>> ie the recovery will be robust if we could edit the inode contents and
>>> give the pointer address manually or through a code. The inode is
>>> being created in the kernel mode and is it possible to edit those
>>> contents if the code is allowed to have the kernel mode permissions..?
>>
>> You'd probably be best off doing this in userspace, with the
>> filesystem unmounted.
> Of course we are doing it from another filesystem. ie only after
> unmounting the filesystem which is being worked on. in some case we
> make image of the filesystem to ensure security of data.
>> Generally speaking, don't attempt to alter the filesystem from
>> userspace while it is mounted.
>>
> But we would like to know whether it is possible to edit the inode
> because it will make the recovery easy and robust. ie he know the
> details of the inode of the file which had been deleted is it possible
> to edit the content of that inode with the pointers of the deleted
> file.?
> Regards
> Ranju.
>
>
>
> --
> http://www.ranjithkannikara.blogspot.com/
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Thanks -
Manish
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2009-05-12 16:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-12 15:47 Help to edit inode content ranjith kannikara
2009-05-12 15:56 ` Bryan Donlan
2009-05-12 16:02   ` ranjith kannikara
2009-05-12 16:13     ` Manish Katiyar [this message]
2009-05-12 16:13       ` Manish Katiyar
2009-05-12 20:03     ` Andreas Dilger
2009-05-13  4:11       ` ranjith kannikara
2009-05-13  4:11         ` ranjith kannikara
2009-05-13  4:14         ` Manish Katiyar
2009-05-13  4:14           ` Manish Katiyar
2009-05-13  4:23           ` ranjith kannikara
2009-05-13  4:23             ` ranjith kannikara
2009-05-13  4:28             ` Manish Katiyar
2009-05-13  4:28               ` Manish Katiyar
  -- strict thread matches above, loose matches on Subject: below --
2009-05-12 15:43 ranjith kannikara
2009-05-12 15:39 ranjith kannikara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ea11fea30905120913y34586943y1567df47022ead50@mail.gmail.com \
    --to=mkatiyar@gmail.com \
    --cc=bdonlan@gmail.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ranjithkannikara@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.