recovering data from this disk

2009-12-04 Thread Tom Worster
any suggestions how to recover data from either of the mirrored disks that i
can't get to boot? the situation is described below.

(i'm assuming, given the silence on this, that making the system work after
the freebsd-update is a lost cause.)


On 12/3/09 11:14 AM, Tom Worster f...@thefsb.org wrote:

 after running freebsd-update -r 8.0-RELEASE upgrade my system won't boot. it
 gets stuck on mountroot and i can't find the magic word it wants.
 
 the system used to have two sata drives /dev/ad4 and ad6. they were
 partitioned and sliced using the deafaults that sysinstall suggested.
 
 at the boot prompt, lsdev says:
 
 disk devices
   disk0: BIOS drive C:
 disk0s1a: FFS
 disk0s1b: swap
 disk0s1d: FFS
 disk0s1e: FFS
 disk0s1f: FFS
disk1: BIOS drive D:
 disk1s1a: FFS
 disk1s1b: swap
 disk1s1d: FFS
 disk1s1e: FFS
 disk1s1f: FFS
 
 which looks right, although i'm not familiar with the disk nomenclature.
 
 entering ? at mountroot mentions ad4 and ad6.
 
 geom_mirror was being used.
 
 i've tried saying load geom_mirror and/or enable-module geom_mirror at the
 boot prompt. neither made any difference.
 
 nothing i've said to mountroot works:
 
 ufs:/dev/ad4s1a
 ufs:/dev/ad6s1a
 ufs:/dev/mirror/gm0s1a
 ufs:/dev/disk0s1a
 ufs:/dev/disk1s1a
 
 does anyone know the magic word? i'd be very grateful.
 
 tom


___
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: recovering data from this disk

2009-12-04 Thread Henrik Hudson
On Fri, 04 Dec 2009, Tom Worster wrote:

 any suggestions how to recover data from either of the mirrored disks that i
 can't get to boot? the situation is described below.

If they were indeed mirrored then try a FreeBSD live distro boot CD
and boot into that then just mount one of the disk partitions that
you need.

Henrik


 
 (i'm assuming, given the silence on this, that making the system work after
 the freebsd-update is a lost cause.)
 
 
 On 12/3/09 11:14 AM, Tom Worster f...@thefsb.org wrote:
 
  after running freebsd-update -r 8.0-RELEASE upgrade my system won't boot. it
  gets stuck on mountroot and i can't find the magic word it wants.
  
  the system used to have two sata drives /dev/ad4 and ad6. they were
  partitioned and sliced using the deafaults that sysinstall suggested.
  
  at the boot prompt, lsdev says:
  
  disk devices
disk0: BIOS drive C:
  disk0s1a: FFS
  disk0s1b: swap
  disk0s1d: FFS
  disk0s1e: FFS
  disk0s1f: FFS
 disk1: BIOS drive D:
  disk1s1a: FFS
  disk1s1b: swap
  disk1s1d: FFS
  disk1s1e: FFS
  disk1s1f: FFS
  
  which looks right, although i'm not familiar with the disk nomenclature.
  
  entering ? at mountroot mentions ad4 and ad6.
  
  geom_mirror was being used.
  
  i've tried saying load geom_mirror and/or enable-module geom_mirror at 
  the
  boot prompt. neither made any difference.
  
  nothing i've said to mountroot works:
  
  ufs:/dev/ad4s1a
  ufs:/dev/ad6s1a
  ufs:/dev/mirror/gm0s1a
  ufs:/dev/disk0s1a
  ufs:/dev/disk1s1a
  
  does anyone know the magic word? i'd be very grateful.
  
  tom
 
 
 ___
 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

-- 
Henrik Hudson
li...@rhavenn.net
-
God, root, what is difference? Pitr; UF 

___
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: recovering data from this disk

2009-12-04 Thread Tom Worster
On 12/4/09 1:51 PM, Henrik Hudson li...@rhavenn.net wrote:

 On Fri, 04 Dec 2009, Tom Worster wrote:
 
 any suggestions how to recover data from either of the mirrored disks that i
 can't get to boot? the situation is described below.
 
 If they were indeed mirrored then try a FreeBSD live distro boot CD
 and boot into that then just mount one of the disk partitions that
 you need.

thanks, henrik,

but i wasn't able to make the live fs fixit shell work. i get an error
message when i try to start the live fs shell: ldconfig could not create
the ld.so hints file and all commands fail to work.

tom


 
 (i'm assuming, given the silence on this, that making the system work after
 the freebsd-update is a lost cause.)
 
 
 On 12/3/09 11:14 AM, Tom Worster f...@thefsb.org wrote:
 
 after running freebsd-update -r 8.0-RELEASE upgrade my system won't boot. it
 gets stuck on mountroot and i can't find the magic word it wants.
 
 the system used to have two sata drives /dev/ad4 and ad6. they were
 partitioned and sliced using the deafaults that sysinstall suggested.
 
 at the boot prompt, lsdev says:
 
 disk devices
   disk0: BIOS drive C:
 disk0s1a: FFS
 disk0s1b: swap
 disk0s1d: FFS
 disk0s1e: FFS
 disk0s1f: FFS
disk1: BIOS drive D:
 disk1s1a: FFS
 disk1s1b: swap
 disk1s1d: FFS
 disk1s1e: FFS
 disk1s1f: FFS
 
 which looks right, although i'm not familiar with the disk nomenclature.
 
 entering ? at mountroot mentions ad4 and ad6.
 
 geom_mirror was being used.
 
 i've tried saying load geom_mirror and/or enable-module geom_mirror at
 the
 boot prompt. neither made any difference.
 
 nothing i've said to mountroot works:
 
 ufs:/dev/ad4s1a
 ufs:/dev/ad6s1a
 ufs:/dev/mirror/gm0s1a
 ufs:/dev/disk0s1a
 ufs:/dev/disk1s1a
 
 does anyone know the magic word? i'd be very grateful.
 
 tom
 
 
 ___
 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


___
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: recovering data from this disk

2009-12-04 Thread Modulok
You might try freesbie. It's not a fixit shell, it's a full FreeBSD on
a live CD. I've had better luck with it in the past than the fixit
shell. Worth a shot.

-Modulok-

On 12/4/09, Tom Worster f...@thefsb.org wrote:
 On 12/4/09 1:51 PM, Henrik Hudson li...@rhavenn.net wrote:

 On Fri, 04 Dec 2009, Tom Worster wrote:

 any suggestions how to recover data from either of the mirrored disks
 that i
 can't get to boot? the situation is described below.

 If they were indeed mirrored then try a FreeBSD live distro boot CD
 and boot into that then just mount one of the disk partitions that
 you need.

 thanks, henrik,

 but i wasn't able to make the live fs fixit shell work. i get an error
 message when i try to start the live fs shell: ldconfig could not create
 the ld.so hints file and all commands fail to work.

 tom



 (i'm assuming, given the silence on this, that making the system work
 after
 the freebsd-update is a lost cause.)


 On 12/3/09 11:14 AM, Tom Worster f...@thefsb.org wrote:

 after running freebsd-update -r 8.0-RELEASE upgrade my system won't
 boot. it
 gets stuck on mountroot and i can't find the magic word it wants.

 the system used to have two sata drives /dev/ad4 and ad6. they were
 partitioned and sliced using the deafaults that sysinstall suggested.

 at the boot prompt, lsdev says:

 disk devices
   disk0: BIOS drive C:
 disk0s1a: FFS
 disk0s1b: swap
 disk0s1d: FFS
 disk0s1e: FFS
 disk0s1f: FFS
disk1: BIOS drive D:
 disk1s1a: FFS
 disk1s1b: swap
 disk1s1d: FFS
 disk1s1e: FFS
 disk1s1f: FFS

 which looks right, although i'm not familiar with the disk
 nomenclature.

 entering ? at mountroot mentions ad4 and ad6.

 geom_mirror was being used.

 i've tried saying load geom_mirror and/or enable-module geom_mirror
 at
 the
 boot prompt. neither made any difference.

 nothing i've said to mountroot works:

 ufs:/dev/ad4s1a
 ufs:/dev/ad6s1a
 ufs:/dev/mirror/gm0s1a
 ufs:/dev/disk0s1a
 ufs:/dev/disk1s1a

 does anyone know the magic word? i'd be very grateful.

 tom


 ___
 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


 ___
 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

___
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: Recovering data from a newfs filesystem

2008-01-20 Thread Michaël Grünewald
Kelly Jones [EMAIL PROTECTED] writes:

 Months ago, I got a new USB drive for my Mac OS X, did newfs
 /dev/disk1 on it, and it's been working fine.

 I then foolishly did disklabel -create /dev/disk1, which broke
 it. How can I recover my data? I've tried fsck w/ alternate
 superblocks to no avail.

Create a disk image with dd(1), connect the image to a md device with
mdconfig(8) and run a disk image analysis tool on it, like testdisk
(available from the ports). If testdisk manages to recover disk
structure and you're happy with it, you can use the corrected image
back to the USB drive with dd(1).

Creating the disk image is optional, but since you'll allow testdisk
to modifiy the data it works on, it's bet to do a copy.

You may want to test integrity of the image with sha256(1) and/or
md5(1), before running disk analysis software on it.

Notes: 1/I do not know if mdconfig(8) is available for OS-X, although
 something is likely to provide the same functionality;
   2/On Mac OS-X you may use PKGSRC (see NetBSD website) or Fink to
 install disk analysis software.
-- 
Best wishes,
Michaël
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Recovering data from a newfs filesystem

2008-01-19 Thread Kelly Jones
Months ago, I got a new USB drive for my Mac OS X, did newfs
/dev/disk1 on it, and it's been working fine.

I then foolishly did disklabel -create /dev/disk1, which broke
it. How can I recover my data? I've tried fsck w/ alternate
superblocks to no avail.

less -f /dev/disk1 shows me the disk label I created:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple\
.com/DTDs/PropertyList-1.0.dtd
plist version=1.0
dict
keyBase/key
integer131072/integer
keySize/key
integer500107730944/integer
/dict
/plist

but also shows me my file names/content, so I'm convinced the data is
still there.

How do I recover my data? I assume newfs creates a UFS by default? Can
I decode /dev/disk1 the way one might decode a TAR file?

Posting here because I know Mac OS X is FreeBSD inside.

-- 
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Recovering data from a newfs filesystem

2008-01-19 Thread Peter
try 'testdisk'
mailds:#cat /usr/ports/sysutils/testdisk/pkg-descr
Tool to check and undelete partition
Works with the following partitions:
- FAT12 FAT16 FAT32
- Linux EXT2/EXT3
- Linux SWAP (version 1 and 2)
- NTFS (Windows NT/W2K/XP)
- BeFS (BeOS)
- UFS (BSD)
- Netware
- ReiserFS

TestDisk is under GNU Public License.
You can compile it under Dos with DJGPP or under Linux or BSD with gcc.

WWW: http://www.cgsecurity.org/

- Florent Thoumie
[EMAIL PROTECTED]

]Peter[
 Months ago, I got a new USB drive for my Mac OS X, did newfs
 /dev/disk1 on it, and it's been working fine.

 I then foolishly did disklabel -create /dev/disk1, which broke
 it. How can I recover my data? I've tried fsck w/ alternate
 superblocks to no avail.

 less -f /dev/disk1 shows me the disk label I created:

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
 http://www.apple\
 .com/DTDs/PropertyList-1.0.dtd
 plist version=1.0
 dict
 keyBase/key
 integer131072/integer
 keySize/key
 integer500107730944/integer
 /dict
 /plist

 but also shows me my file names/content, so I'm convinced the data is
 still there.

 How do I recover my data? I assume newfs creates a UFS by default? Can
 I decode /dev/disk1 the way one might decode a TAR file?

 Posting here because I know Mac OS X is FreeBSD inside.

 --
 We're just a Bunch Of Regular Guys, a collective group that's trying
 to understand and assimilate technology. We feel that resistance to
 new ideas and technology is unwise and ultimately futile.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]



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


Re: Recovering Data from a reformatted drive

2004-02-26 Thread Benjamin P. Keating
Charles Swiger wrote:

On Feb 27, 2004, at 12:27 AM, Benjamin P. Keating wrote:

I have a hard drive that had lots of important data on it. It was 
reformatted and I have no backups (lesson learned). It was a ccd 
mirror of two 100gig drives. Once the reformat of this ccd completed 
the machine was shut down to prevent writing to this disk even more so.


By this you mean, you used ccd to reformat the drive as part of a 
newly created RAID-1 mirror?

If you just newfs'ed the disk, most of the data blocks will still be 
intact and can be recovered (to some extent).  However, if you did 
create a RAID filesystem on the disk, you are out of luck.  The 
process of creating a RAID-1 or -5 volume involves syncronizing all of 
the disks, which will overwrite every sector on the drive.

I'm sorry that you lost data.

Im not sure if this counts as a RAID configuration. Here is what I did;  
I had a working FreeBSD 4.9 system, powered it down and plugged in the 
two additional IDE 100gig harddrives (what make up the ccd0c device). 
Powered up and did this:

cd /dev/
sudo ./MAKEDEV ccd0
sudo ccdconfig ccd0 128 4 /dev/ad0e /dev/ad1e
sudo ccdconfig -g
sudo vi /etc/ccd.conf
(added ccd0 128 4 /dev/ad0e /dev/ad1e to the ccd.conf file)
sudo newfs /dev/ccd0c
I let the newfs command finish (it scrolled a page full of block numbers 
it looked like). I realized this last command is NOT what i wanted about 
.5 seconds after hitting enter. :(  Would this be a RAID configuration? 
I don't think it is, it's a simple mirror

--
This message has been scanned for viruses and
dangerous content, and is believed to be clean.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Recovering Data from a reformatted drive

2004-02-26 Thread Benjamin P. Keating
[sry is this is a duplicate, I cannot find evidence that my first send 
made it to the mailing list]

I have a hard drive that had lots of important data on it. It was 
reformatted and I have no backups (lesson learned). It was a ccd mirror 
of two 100gig drives. Once the reformat of this ccd completed the 
machine was shut down to prevent writing to this disk even more so.

It's a newfs FS on FreeBSD 4.9. Anyone have any tips on how to recover 
the data? Im lost and don't have the $4k to send it into a data recovery 
center.

Any help would be excellent! Im really stumpped and it's a drive for 
work... lots of stress

-Thanks, Ben

--
This message has been scanned for viruses and
dangerous content, and is believed to be clean.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Recovering Data from a reformatted drive

2004-02-26 Thread Charles Swiger
On Feb 27, 2004, at 12:27 AM, Benjamin P. Keating wrote:
I have a hard drive that had lots of important data on it. It was 
reformatted and I have no backups (lesson learned). It was a ccd 
mirror of two 100gig drives. Once the reformat of this ccd completed 
the machine was shut down to prevent writing to this disk even more 
so.
By this you mean, you used ccd to reformat the drive as part of a newly 
created RAID-1 mirror?

If you just newfs'ed the disk, most of the data blocks will still be 
intact and can be recovered (to some extent).  However, if you did 
create a RAID filesystem on the disk, you are out of luck.  The process 
of creating a RAID-1 or -5 volume involves syncronizing all of the 
disks, which will overwrite every sector on the drive.

I'm sorry that you lost data.

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


Re: recovering data

2003-11-11 Thread Lowell Gilbert
carmoda [EMAIL PROTECTED] writes:

 I would like to know if there is a proceedure i might be able to
 follow to recover a file that was deleted on a FreeBSD fileserver with
 SAMBA from a Windows 2000 workstation..
 
 i know the file's name and i have powered down the server.

The usual approach is to get it from your backups.

The inode would help more than the filename, but you still might be
able to retrieve it if you are thoroughly knowledgeable in filesystem
internals.  Since you're asking the question, I assume you're not.
You might look around for a tool that (if I recall correctly) is
called the Coroner's Toolkit.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: recovering data

2003-11-11 Thread Chris Pressey
On 11 Nov 2003 11:41:15 -0500
Lowell Gilbert [EMAIL PROTECTED] wrote:

 carmoda [EMAIL PROTECTED] writes:
 
  I would like to know if there is a proceedure i might be able to
  follow to recover a file that was deleted on a FreeBSD fileserver
  with SAMBA from a Windows 2000 workstation..
  
  i know the file's name and i have powered down the server.
 
 The usual approach is to get it from your backups.
 
 The inode would help more than the filename, but you still might be
 able to retrieve it if you are thoroughly knowledgeable in filesystem
 internals.  Since you're asking the question, I assume you're not.
 You might look around for a tool that (if I recall correctly) is
 called the Coroner's Toolkit.

One trick I'm aware of, if you know some of the contents of the file, is
to:

- unmount the file system the file was on
- grep through the raw device the file system was mounted on,
  looking for the known contents
- copy those contents to a new file on another file system

Some problems with this method are that the data isn't always stored
contiguously (thus you may only be able to recover part of the file near
the contents you know,) that the same contents might well occur in other
files (possibly older versions of the same file that were deleted in the
past), and that you're not likely to be aware of the contents of a
binary file.

However, I have used this method successfully to recover bits of program
source code that I accidentally wiped out.

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


recovering data

2003-11-09 Thread carmoda
Hi,

I would like to know if there is a proceedure i might be able to follow 
to recover a file that was deleted on a FreeBSD fileserver with SAMBA 
from a Windows 2000 workstation..

i know the file's name and i have powered down the server.

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


Re: Recovering data from a faulty drive

2003-01-10 Thread Mike Meyer
In [EMAIL PROTECTED], Hari Bhaskaran 
[EMAIL PROTECTED] typed:
 Is there way to backup the partition info somewhere? (may be a floppy?)
 (At least for future installations?) I run vinum (mirrored across
 two disks) on other machines (which I installed recently), but this
 machine was installed way before I figured out vinum.

# fdisk /dev/ad0  partition
# disklabel -r /dev/ad0s1  partition

Then lpr partition and store a copy with the offsite backups.

mike
-- 
Mike Meyer [EMAIL PROTECTED]  http://www.mired.org/consulting.html
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



(Solved) Recovering data from a faulty drive

2003-01-10 Thread Hari Bhaskaran

Fortunately, the FreeBSD installer's disklabel program (the graphical
interactive one) was able to find the original partition information!
I assigned the mount points (I don't think that was necessary), 
wrote ('W' from the screen) the label to disk again, it went thru
a series of fscks and all my partitions are back again. I didn't
try to install (restore) bootmanager, I merely mounted those
partitions and took the data out on to another disk.


I always thought the installer's disklabel program was same 
as disklabel(8).

Thanks again to all those who replied (Gary, Mike Meyer)

(And thanks to maxtor 
Made the first support call at 8AM, got a replacement
delivered at 2PM the next day!)

--
Hari Bhaskaran

On Fri, Jan 10, 2003 at 02:41:06PM -0800, Gary W. Swearingen wrote:
 Hari Bhaskaran [EMAIL PROTECTED] writes:
 
  Is there way to backup the partition info somewhere? (may be a floppy?)
 
 AFAIK, the partition info is entirely within the first sector of the
 slice.  The slice info is entirely within the first sector of the disk.
 (There's other info in them too, so restoring a sector might change
 more than partition info.)  Having already given an example of dd,
 I'll leave the way to back them up as an exercise for the reader.
 
 I thought I mentioned this, but the disklabel program can output
 partition info in ASCII format which you can backup and restore
 from too.  A better method than dd, for general purposes.  And
 fdisk can give you slice info in ASCII for backup (but you'd have
 to restore by hand).
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Recovering data from a faulty drive

2003-01-09 Thread Hari Bhaskaran
Hi,

I seem to have lost the partition info of one of the harddisks.
Is there a backup copy of partition information stored
elsewhere in the disk?

The long story: -
Due to some hardware problem, one of the HDs stopped working.
(doesn't spin at all) After trying it on couple of machines,
I did manage to get it boot on one of the machine (may be the
way I kept the harddisk or whatever). However, when I tried
to ifconfig an interface (to move the data out), it decided
to bail out again and it didn't survive the second reboot.

Finally I ended up with a HDD where the disklabel shows
only one partition - 'c'. A boot with fixit disk shows
ad0s1 thru 4 (but it is supposed to have only one slice
and then couple of BSD partitions inside.

fsck on /dev/ad1s1 went OK, But that's only the root 
partition (I don't really care about that one). If possible,
fsck on /dev/ad1s2 thru 4 bailed out with problems reading
BLKS 16 thru 20. I would like to recover /usr/home.
Is there any chance?  I only need a couple of files recovered.

Any help is appreciated.

--
Hari Bhaskaran

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Recovering data from a faulty drive

2003-01-09 Thread Gary W. Swearingen
Hari Bhaskaran [EMAIL PROTECTED] writes:

 Is there any chance?  I only need a couple of files recovered.

Saving copies of the boot records and disklabels ain't a bad idea and
not hard to do.  Just something more to do...

Anyway.  Sounds like your MBR's partition table got messed up.  If
you were supposed to only have one slice, you might have some luck
just trying to redo it from memory or what's most likely.

Also sounds like your disklabel is bad, but maybe it's confused by the
partition table mess.  I'M NOT SURE, but you can probably try replacing
that too, if you think you can guess the partitioning.  I doubt if it
messes with anything but the disklabel (and maybe boot code -- see
disklabel manpage); just don't run newfs, of course.  FIrst try
saving the disklabel (ASCII form) with disklabel command and maybe
a binary copy. (? 'dd if=/dev/hd0s1 of=/somefile count=1 skip=1' ?)
You probably can't do anything with the binary one except copy it
back.

If your data is really precious, you might want to save it on another
disk, getting it off the bad disk with dd.  You don't have to copy
the whole disk if you can guess where the slice with your data was
located. (Eg, dd if=/dev/hd0 of=/somedir/bigfile skip=_somenum_ \
count=_someothernum_)  Again, it's not much good for anything but
copying back and trying again, but you might be able to find some
ASCII text of importance, if you're really desparate.

Started your tape drive (and tapes) fund yet?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message