recover files after mkdosfs

2005-07-29 Thread Joubin Moshrefzadeh
oops... i did what I'm sure everyone warns against...

I'd backed up all my movies/music on /dev/hdb3 and created /dev/hdb7,
and sure enough, I mistakenly pointed mkdosfs at /dev/hdb3 instead of
the newly created partition.

any thoughts or suggestions on how I can find/recover some of the files that were on /dev/hdb3 ???

I guess its not so much that the drive is reformatted, but i just
rewrote the file allocation table... damn! so is there any tool that
can go throgh the drive and search out pre-existing files/folders?

any suggestions will be appreciated!!

Joubin


Re: recover files after mkdosfs

2005-07-29 Thread Dennis Stosberg
Am 29.07.2005 um 00:08 schrieb Joubin Moshrefzadeh:
 oops... i did what I'm sure everyone warns against...
 
 I'd backed up all my movies/music on /dev/hdb3 and created /dev/hdb7, and 
 sure enough, I mistakenly pointed mkdosfs at /dev/hdb3 instead of the newly 
 created partition.
 
 any thoughts or suggestions on how I can find/recover some of the files that 
 were on /dev/hdb3 ???
 
 I guess its not so much that the drive is reformatted, but i just rewrote 
 the file allocation table... damn! so is there any tool that can go throgh 
 the drive and search out pre-existing files/folders?

What file system has been there before?  If it is ext2/3 you have
chances to recover a good part of your data.  I do not know about
reiserfs/xfs.

Leave the original partition alone.  Do not write to it, if you want
more than one try!  Copy the partition's contents into a file on
another partition blockwise, then run e2fsck on that image file.

You may need to specify an alternative superblock with the -b
option.  When e2fsck thinks, that the filesystem is consistent,
mount the image file with -t ext2 -o loop.  If you're lucky,
you'll end up with a lot of files and directories in lost+found.

Good Luck, and think about a good backup strategy soon!
Dennis

-- 
Send personal mail to [EMAIL PROTECTED] only.  Off-list 
mails to [EMAIL PROTECTED] will not reach me.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



How to recover files from corrupted file system?

2004-05-24 Thread tiresias
Hi!

Some weeks ago, being very tired, I ran mkfs.reiserfs on the wrong
partition. This had an ext3 filesystem before I ruined the filesystem
with my mkfs-command. The result was loss of many, many files. The
partition is now unmounted and not touched since my blow up. I have
tried to find tools that may help me recover my files.

How can I retrieve files from a disk whose inode-table is overwritten?
Are there any tools available for this?

Thanks a bunch for any help on this!

Best regards,
Lars Tobias Borsting



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: How to recover files from corrupted file system?

2004-05-24 Thread Alvin Oga

On Mon, 24 May 2004, tiresias wrote:

 Hi!
 
 Some weeks ago, being very tired, I ran mkfs.reiserfs on the wrong
 partition. This had an ext3 filesystem before I ruined the filesystem
 with my mkfs-command. The result was loss of many, many files. The
 partition is now unmounted and not touched since my blow up. I have
 tried to find tools that may help me recover my files.

and dont worry ... reiserfschk-3.6.14 doesn't always fix itself(reiserfs)
either but tends to corrupt it more than it fixed it on the disks it tried
to fix

 How can I retrieve files from a disk whose inode-table is overwritten?
 Are there any tools available for this?

take out your backup tapes or backup disks or other backup cds

if not ... oh well  we all do that mistake once ..
and some are stubborn and make that same mistake ( not having
good quality and functional backups ) a few more times :-)

c ya
alvin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: How to recover files from corrupted file system?

2004-05-24 Thread tiresias
On Mon, 2004-05-24 at 18:58, Alvin Oga wrote:
 and dont worry ... reiserfschk-3.6.14 doesn't always fix itself(reiserfs)
 either but tends to corrupt it more than it fixed it on the disks it tried
 to fix

I don't get it. Why would I use reiserfschk on this? The filesystem I
had before was ext3. And I have tried fsck.ext3 as well, but since the
inode table is overwritten by mkfs.reiserfs and the current filesystem
is reiserfs, it doesn't work. It's the ext3 filesystem I want to
recover.

 take out your backup tapes or backup disks or other backup cds

I have no backup of this partition. This is because the partition is 100
GB of size, and it is not a critical disk, so I don't bother paying $150
for a backup device for this one.

However, it would still be worth some hours of research to try to
retrieve the old files. So please give me some advice of what to do.

Best regards,
Lars Tobias Borsting



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Recover files

2002-06-15 Thread Aaron Wrasman
I've done some research already and I hope someone will have a better
answer than I currently have so far.

The situation:
I misconfigured samba to point at /home/accountname for roaming
profiles.

It has been this way for over a year.

No one noticed. I'm the only person that uses linux directly.

To troubleshoot a problem on a Windows 98 box, I logged in as
myself on the win98 box.

It built me a profile and pushed it too the Linux box. It
seemed to be taking a really log time but it finally finished.

Fixed the problems on the windows box.

Later when I go to use my account on the linux things are all
messed up.

First thing I notice, all my mail files are gone. ( 7 years
worth.)

Then I notice alot directories I haven't used in years were
updated today at about the same time.

I finally do a 

find /home/accountname -type f -print

less than 100 files come back. Almost all of them are dot-files.

I figure umount the filesystem and run debugfs and recover the
files. (i.e. lsdel)

Second problem. No deleted inodes exist after April 22, 2002.

I moved everything over to ext3 about that time.

Checking web pages. It appears you can't use the lsdel
command in debugsfs to find deleted files.

Current Answer:

Find every free inode on at 27 Gig partition and look for
strings that I know should be in particular files. Then try to
reconstruct the files by hand.


Does anyone have better ideas? And no, I don't have a recent backup.
Last time I changed the hardware I never got the tape drive reconnected 
to the system. So last backup is over 9 months ago. At the time I wasn't
concerned, the old system had been on raid and the new one was also.


So any ideas?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Recover files

2002-06-15 Thread Alvin Oga

hi ya aaron

from my little world files dont disappear unless you delete it

- put samba back the way it was... or recreate the account ??
( caution.. am assuming that creating accounts in windoze
( doesnt wipe out its old files/directories
(
( creating new users will copy over new set of config files

- when you write/save files... where did youput it ??
c:  or on the shared disks( linux )

   Fixed the problems on the windows box.

- what do you mean by that ??


- if the files was stored on the linux side... its still there...
  just not visible to other windoze users ??
- should be visible to root on linux

c ya
alvin


On Sat, 15 Jun 2002, Aaron Wrasman wrote:

 I've done some research already and I hope someone will have a better
 answer than I currently have so far.
 
 The situation:
   I misconfigured samba to point at /home/accountname for roaming
   profiles.
 
   It has been this way for over a year.
 
   No one noticed. I'm the only person that uses linux directly.
 
   To troubleshoot a problem on a Windows 98 box, I logged in as
   myself on the win98 box.
 
   It built me a profile and pushed it too the Linux box. It
   seemed to be taking a really log time but it finally finished.
 
   Fixed the problems on the windows box.
 
   Later when I go to use my account on the linux things are all
   messed up.
 
   First thing I notice, all my mail files are gone. ( 7 years
   worth.)
 
   Then I notice alot directories I haven't used in years were
   updated today at about the same time.
 
   I finally do a 
   
   find /home/accountname -type f -print
 
   less than 100 files come back. Almost all of them are dot-files.
 
   I figure umount the filesystem and run debugfs and recover the
   files. (i.e. lsdel)
 
   Second problem. No deleted inodes exist after April 22, 2002.
 
   I moved everything over to ext3 about that time.
 
   Checking web pages. It appears you can't use the lsdel
   command in debugsfs to find deleted files.
 
 Current Answer:
 
   Find every free inode on at 27 Gig partition and look for
   strings that I know should be in particular files. Then try to
   reconstruct the files by hand.
 
 
 Does anyone have better ideas? And no, I don't have a recent backup.
 Last time I changed the hardware I never got the tape drive reconnected 
 to the system. So last backup is over 9 months ago. At the time I wasn't
 concerned, the old system had been on raid and the new one was also.
 
 
 So any ideas?
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]