Re: bsd lost partition recovery

2013-02-17 Thread Erich Dollansky
Hi,

On Sun, 17 Feb 2013 12:56:54 +0330
takCoder tak.offic...@gmail.com wrote:

 *here's the question:*
 how to restore lost data of a formatted bsd partition?!
 
restore it from a backup?

 *and here's what has happened to me:*
 i was trying to install windows xp sp2 on a HD on my system to move
 it to another hardware after that for some reasons, but i had my main
 HD attached to may system as well..
 
 all of a sudden i made the worst misktake ever and formatted my main
 HD's bsd partition instead!!!

If you want to read the data from that partition it will depend very
much on how far the Windows installation really went.

Erich
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bsd lost partition recovery

2013-02-17 Thread Erich Dollansky
Hi,

On Sun, 17 Feb 2013 14:50:57 +0330
takCoder tak.offic...@gmail.com wrote:

 Thank you for your reply..

you are welcome.

 
 On Sun, Feb 17, 2013 at 2:31 PM, Erich Dollansky 
 erichsfreebsdl...@alogt.com wrote:
 
  On Sun, 17 Feb 2013 12:56:54 +0330
  takCoder tak.offic...@gmail.com wrote:
 
   *here's the question:*
   how to restore lost data of a formatted bsd partition?!
  
  restore it from a backup?
 
 
 no, from the formatted hard drive.. if only i had a backup..
 
You did it the hard way.
 
 
   *and here's what has happened to me:*
   i was trying to install windows xp sp2 on a HD on my system to
   move it to another hardware after that for some reasons, but i
   had my main HD attached to may system as well..
  
   all of a sudden i made the worst misktake ever and formatted my
   main HD's bsd partition instead!!!
 
  If you want to read the data from that partition it will depend very
  much on how far the Windows installation really went.
 
  i just deleted the partition and then found out what i just did,
  then i
 stopped the installation process and start looking ways for recovery..
 
 till now, somewhere in the web i saw that R-Studio supports ufs
 recovery but it's a windows application.. i'm preparing a system for
 checking it right now..
 
Just try it.

Erich
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bsd lost partition recovery

2013-02-17 Thread Leslie Jensen



2013-02-17 10:26, takCoder skrev:

hi everyone,

maybe this question is somehow off-topic but now i'm in an urgent need of
any recommendations..

*here's the question:*
how to restore lost data of a formatted bsd partition?!

*and here's what has happened to me:*
i was trying to install windows xp sp2 on a HD on my system to move it to
another hardware after that for some reasons, but i had my main HD attached
to may system as well..

all of a sudden i made the worst misktake ever and formatted my main HD's
bsd partition instead!!!

would someone please tell me how can i restore it?? i'm really in need of
my data there and have no idea right now..

Best Regards,
t.a.k

P.S. i'm asking this question here cause i thought it may need a special
tool to recover freebsd formatted lost data.. i had no time for googling it
till now..i'm going to do that now.. sorry for taking your time..
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org




Sorry to inform you but I think you have lost your partition!

If you go to the archives and look for

My freebsd partition changed by Windows chkdsk Nov 1 2012

You'll see that I have had the same problem and the partition was not 
recoverable in any way.


/Leslie

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bsd lost partition recovery

2013-02-17 Thread Polytropon
On Sun, 17 Feb 2013 18:30:28 +0700, Erich Dollansky wrote:
  On Sun, Feb 17, 2013 at 2:31 PM, Erich Dollansky 
  erichsfreebsdl...@alogt.com wrote:
  
   On Sun, 17 Feb 2013 12:56:54 +0330
   takCoder tak.offic...@gmail.com wrote:
  
*here's the question:*
how to restore lost data of a formatted bsd partition?!
   
   restore it from a backup?
  
  
  no, from the formatted hard drive.. if only i had a backup..
  
 You did it the hard way.
  
  
*and here's what has happened to me:*
i was trying to install windows xp sp2 on a HD on my system to
move it to another hardware after that for some reasons, but i
had my main HD attached to may system as well..
   
all of a sudden i made the worst misktake ever and formatted my
main HD's bsd partition instead!!!
  
   If you want to read the data from that partition it will depend very
   much on how far the Windows installation really went.
  
   i just deleted the partition and then found out what i just did,
   then i
  stopped the installation process and start looking ways for recovery..
  
  till now, somewhere in the web i saw that R-Studio supports ufs
  recovery but it's a windows application.. i'm preparing a system for
  checking it right now..
  
 Just try it.

You can try R-Studio Emergency, a live CD, to _check_ if there
is anything to restore. This step is for free, as you don't need
to buy it. Also there's no need for installing anything on some
Windows.

However, there are tools that can be used on FreeBSD (if you can
put the disk into another system). Note: Do not write to that
disk! If possible, make a dd image of the disk and work with the
image, do not _alter_ the original disk in any way. Every little
wrong step can decrease your chances for recovery.

I came to this list many years ago with a recovery problem, and
have learned a lot since that time (as I also had no backup and
still got my files back). So I'll try to give some suggestions.
But remember that it depends on your _specific_ setting on what
will possibly work and what won't.

As it has been questioned already, formatting can have several
meanings, especially in Windows land. The more actual content
of the disk got overwritten, the worse it gets. So if you've stopped
the installation at some point, it's still possible that your data
can be located.

Allow me to introduce a few tools to you (my meanwhile famous list
of data recovery tools which I've posted some times on this list):

A worst-case tool to recover data (not file names, but file
content) is testdisk; in ports: sysutils/testdisk. It's also
on some diagnostics and recovery CDs like UBCD.

You can also try this:

fetch -rR device

Also recoverdisk could be useful.

The ports collection contains further programs that might be
worth investigating; just in case they haven't been mentioned
yet:

ddrescue
dd_rescue   - use this to make an image of the disk!
magicrescue
testdisk- restores content
recoverjpeg
foremost
photorec

Then also

ffs2recov
scan_ffs

should be mentioned. It's possible that the disk contains some
information to restore the initial UFS file systems.

And finally, the cure to everything is found in The Sleuth Kit:

fls
dls
ils
autopsy

In worst case. Just in worst case.

Keep in mind: Read the manpages before using the programs. It's
very important to do so. You need to know what you're dealing
with, or you'll probably fail. There is no magical tetroplyrodon
to click ^Z and get everything back. :-)

Proprietary (and expensive) tools like R-Studio or UFS Explorer
can still be considered worth a try. Their trial versions are for
free. UFS Explorer even works using wine (I've tried it).

If you have one or two spare disks, initialize them in FreeBSD.
Make a dd image of your disk to the 1st disk. Use recovery tools
to write their results on the 2nd disk. Disks are cheap, at least
your data is worth more than two disks. And you're going to need
the disks anyway. :-)

I wish you best luck to get your data back. I can fully understand
how frustrating such a situation can be.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


newfs'ed partition, recovery?

2006-03-29 Thread Jon Wilson
I accidently newfs'ed a partition I didn't want to newfs. Is there a way to
recover the data on that partition?
_ Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


partition recovery

2004-08-20 Thread Charles Ulrich

Hello,

I have a hard disk that had a complete FreeBSD system on it. Earlier today, I
accidently deleted and created a new slice on top of the one that was there.
Now, the OS thinks there are no FreeBSD partitions there, only empty space. I
did *not* do newfs, so there's a really good chance that those partitions and
all their data are still there if only I could find some way to tell that to
the disk.

I tried the sysutils/gpart port, but it appears to only recognize and operate
on slices (PC-style partitions), not FreeBSD partitions. I have a blank disk
just like the one I'd like to recover and I have the numbers I need to
re-slice and re-label it identically to the other one, down to the exact bit.
So I'm more than happy to experiment with that one prior to performing
suggested operations on the real thing.

I have the feeling this may involve the fdisk or disklabel programs. If so,
know that I'm none to handy with them but would appreciate pointers to some
decent documentation on them aside from the man pages.

Thanks in advance for your time and help.

P.S. Won't be able to reply until Monday.

-- 
Charles Ulrich
System Administrator
Ideal Solution - http://www.idealso.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: partition recovery

2003-07-13 Thread Marcin Gryszkalis
sorry for swapping slices/partitions - it was
too late yesterday and I had too much work...
Here's more explanation:
On 2003-07-13 06:48, Malcolm Kay wrote:
there was windows 2000
[  ntfs ]

I made some place for FreeBSD
How?
I used partition magic, I resized first dos-partition
and created second primary dos-partition (without
extended dos-partition).
In FreeBSD terminalogy this is now 2 slices:-
[ ntfs  ][  ufs=ad0s2   ]


I created slices
In FreeBSD terminology created partitions or
more specifically BSD partitions.
right, that's what I did :)
[ ntfs  ][( s2a )( s2b )... ]

after some time I removed win2000 - and just
did newfs on first partition (no repartitioning,
no slices - only newfs)
On the first slice -- no BSD partitioning.
right, the question is - is that ok, to do that?
I mean - to newfs without bsd-partitioning?
[ufs=ad0s1  ][( s2a )( s2b )... ]

The MBR (master boot record) table will still have
the first slice marked as ntfs unless you ran fdisk to
change it.
do you mean - the main dos-partition table?
I *think* I fixed it using gpart. The linux sfdisk says
now:
fake:~# sfdisk -d /dev/hda
# partition table of /dev/hda
unit: sectors
/dev/hda1 : start=   63, size=125821017, Id=a5
/dev/hda2 : start=125821080, size=  3903795, Id=82
/dev/hda3 : start=129724875, size= 30346784, Id=83, bootable
/dev/hda4 : start=0, size=0, Id= 0

after some time I wanted to install debian GNU/Linux
(this is test-box)
[ufs=ad0s1=hda1 ][swap=hda2][ext2=hda3]
and here something bad happened during installation
(few reboots/kernel panics and so on)

It seems you have now assigned all slices to Linux
at least in your mind. But what types does fdisk think they are?
I didn't touch the ad0s1 when installing linux,
I just removed ad0s2 and placed two linux-partitions there.
(hda2 - linux swap and hda3 - linux system)
(I wanted to use ad0s1 to move some data to the new system,
I expected linux to be able to mount UFS - at least r/o)

it CAN mount it as NTFS (and I can even see
some windows files!)
 - freebsd can see it as UFS but cannot mount

Where is FreeBSD? -- it appeared you had given the FreeBSD slice
ad0s2 over to Linux swap -- but then I'm not knowledgable with 
respect to exactly what Linux means by hda2.
I run  freebsd from live-cd now (as I explained above
I removed freebsd slice (ad0s2) with all bsd-partitions
inside).
('bad magic number' or bad superblock),
using backup superblock
(-b 32) doesn't work.
What can I do to recover data from the first partition???
What data? -- the original ntfs data or what Linux may have installed?
I suspect that in either case it is now pretty much corrupted. The semblance 
of windows files will have a scattering of blocks over written by newfs.
I want to recover files from UFS filesystem on ad0s1. It was NTFS before
but as I mentioned before - I did newfs, so It became UFS. I think
the windows files that can be seen are just shadows of old days
(blocks that were not overwritten during using the slice with
FreeBSD). I looked at the slice with lde (linux disk editor, I
don't like the tool but I couldn't find anything more user-friendly)
and it seems that the files I saved to UFS are in good condition.
I hope the case is more clear now :)
What do you advice to do now?
regards
--
Marcin Gryszkalis
http://fork.pl

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


partition recovery

2003-07-12 Thread Marcin Gryszkalis
Hi

I have a problem with UFS partition
(I can't access it). I'll tell you the story:
there was windows 2000
[  ntfs ]
I made some place for FreeBSD
[ ntfs  ][  ufs=ad0s2   ]
I created slices
[ ntfs  ][( s2a )( s2b )... ]
after some time I removed win2000 - and just
did newfs on first partition (no repartitioning,
no slices - only newfs)
[ufs=ad0s1  ][( s2a )( s2b )... ]
after some time I wanted to install debian GNU/Linux
(this is test-box)
[ufs=ad0s1=hda1 ][swap=hda2][ext2=hda3]
and here something bad happened during installation
(few reboots/kernel panics and so on)
Now I cannot mount ad01s/hda1 partition -
 - linux sees it as NTFS partition, more -
it CAN mount it as NTFS (and I can even see
some windows files!)
 - freebsd can see it as UFS but cannot mount
('bad magic number' or bad superblock),
using backup superblock
(-b 32) doesn't work.
What can I do to recover data from the first partition???

regards
--
Marcin Gryszkalis
http://fork.pl

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: partition recovery

2003-07-12 Thread Malcolm Kay
On Sun, 13 Jul 2003 10:25, Marcin Gryszkalis wrote:
 Hi

 I have a problem with UFS partition
 (I can't access it). I'll tell you the story:

 there was windows 2000
 [  ntfs ]
 I made some place for FreeBSD

How?
In FreeBSD terminalogy this is now 2 slices:-

 [ ntfs  ][  ufs=ad0s2   ]
 I created slices

In FreeBSD terminology created partitions or
more specifically BSD partitions.

 [ ntfs  ][( s2a )( s2b )... ]
 after some time I removed win2000 - and just
 did newfs on first partition (no repartitioning,
 no slices - only newfs)

On the first slice -- no BSD partitioning.

 [ufs=ad0s1  ][( s2a )( s2b )... ]

The MBR (master boot record) table will still have
the first slice marked as ntfs unless you ran fdisk to
change it.

 after some time I wanted to install debian GNU/Linux
 (this is test-box)
 [ufs=ad0s1=hda1 ][swap=hda2][ext2=hda3]
 and here something bad happened during installation
 (few reboots/kernel panics and so on)

It seems you have now assigned all slices to Linux
at least in your mind. But what types does fdisk think they are?


 Now I cannot mount ad01s/hda1 partition -
   - linux sees it as NTFS partition, more -

Probably because it is still marked as ntfs in the MBR.
Change its type with fdisk.

 it CAN mount it as NTFS (and I can even see
 some windows files!)
   - freebsd can see it as UFS but cannot mount

Where is FreeBSD? -- it appeared you had given the FreeBSD slice
ad0s2 over to Linux swap -- but then I'm not knowledgable with 
respect to exactly what Linux means by hda2.

 ('bad magic number' or bad superblock),
 using backup superblock
 (-b 32) doesn't work.

 What can I do to recover data from the first partition???

What data? -- the original ntfs data or what Linux may have installed?
I suspect that in either case it is now pretty much corrupted. The semblance 
of windows files will have a scattering of blocks over written by newfs.


 regards

You seem to be confused with slices and partitions -- but it IS
confusing. Just remember Microsoft partitions are slices in the BSD
world.

Malcolm
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]