LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-30-2004, 08:21 AM   #1
atesz
LQ Newbie
 
Registered: Apr 2003
Posts: 9

Rep: Reputation: 0
Unhappy Are ext2 files lost after mkfs???


Hi everybody,

I've accidentally mkfs-ed one of my partitions, let's call it /dev/hdd2. After it this partition was not written. I would like to save some jpgs from.

The beginning of the files are found. I have tried to dd that part of /dev/hdd2, but it had not been worked. I guess the file was fragmented, so continuous read (what dd does) fails.

Is there any way to find out the chains of blocks belonging to a file without the file-system information?

What do you think is this possible some way?

Thanks for any idea.
 
Old 08-30-2004, 09:38 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
the filesystem has been re-written... the files are gone.

the file fragments will still be floating around.. but finding them, isolating , and putting them together in the right order will be very very very diffucult.
 
Old 08-30-2004, 11:31 AM   #3
atesz
LQ Newbie
 
Registered: Apr 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Does that mean, if you got a block from a file, you cannot find the next without the filesystem's help?

Does that mean, that filesystems somehow registrate every single block and the file it consists to?

I hoped last bytes addresses the next block, and it gives the whole chain together,

Anyway thanks for help.
 
Old 08-30-2004, 01:18 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Quote:
I hoped last bytes addresses the next block, and it gives the whole chain together,
lol.. nope...the filesystem keeps track of where fragments are.
 
Old 08-31-2004, 01:52 AM   #5
atesz
LQ Newbie
 
Registered: Apr 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Bad news.


Thanks anyway.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
max number of files on ext2 ext3? tim1235 Linux - Newbie 5 10-17-2004 06:11 PM
Is Ext2 the only fs that one can undelete files? thegeekster Linux - General 5 06-05-2004 06:29 PM
Defrag...and ext2/3 files systems. oicdn Linux - General 1 01-09-2004 02:10 PM
Exchaning files between NTFS and Linux Ext2 twan Linux - Newbie 12 02-20-2003 03:19 AM
Ext2 filesystem corrupts Photoshop files drjeep Linux - General 3 11-08-2002 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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