LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-01-2008, 06:04 PM   #1
lincoln.runwal
LQ Newbie
 
Registered: Dec 2008
Posts: 28

Rep: Reputation: 15
Exclamation file save to the block


hi,
i want to know that on which block no. my file is saving how can i access that block. can i recover my file if i deleted it in linux.
 
Old 12-01-2008, 06:45 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Quote:
Originally Posted by lincoln.runwal View Post
i want to know that on which block no. my file is saving
You can find the inode of the file and the amount of blocks it occupies with say 'stat -c "%i %b" /sbin/init'.


Quote:
Originally Posted by lincoln.runwal View Post
how can i access that block.
What do you mean "access"? With ext2/ext3 you could use 'debugfs' to show detailed stats and do some ops or use 'fsgrab'.


Quote:
Originally Posted by lincoln.runwal View Post
can i recover my file if i deleted it in linux.
Depends on stuff like file specs (think link vs 20GB database), filesystem (journalling), time (amount of reads and writes since deletion). If you search LQ you'll find a lot of "undelete" threads about file recovery. Most of them should mention header and footer-based file carving as in photorec and foremost and Live CD's like HELIX, FIRE or KNOPPIX-STD and where it's not mentioned explicitly YMMV(VM) applies anyway...

Last edited by unSpawn; 12-01-2008 at 06:48 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
How to modify a field in few lines in a file and save the new file - in Perl rounak94 Programming 1 10-02-2008 08:43 PM
How can read from file.txt C++ where can save this file(file.txt) to start reading sam_22 Programming 1 01-11-2007 06:11 PM
where should I save this file??? bruno buys Linux - Software 2 08-17-2004 07:54 PM
Mozilla 1.7 - No File Save / File Open dialogs on Slackware 10.0 jayseye Slackware 8 08-10-2004 06:52 AM
how to save a file? Longinus Programming 5 03-10-2004 11:20 PM


All times are GMT -5. The time now is 12:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration