Re: GEOM_BDE: where is my partition?

2006-08-02 Thread Felipe Neuwald

Hi Iulian,

ok, I'll try gpart here and tell you about the results.

Thank you,

Felipe Neuwald.

Iulian M escreveu:

On Tuesday 01 August 2006 17:57, Stefan Bethke wrote:
  

Maybe you got lucky, and only the first sector of the disk got lost
in that crash. If you know how you had partitioned that disk
*exactly*, or you have another disk of the same size that is
partitioned *exactly* the same, you might try to re-create the slices
usign fdisk, or copying over the first sector with dd.  Otherwise,
you need to restore from backup.



Not sure if it will help you, but there is a tool called gpart 
(sysutils/gpart) in the ports witch tries to recover your slices/partitions 
information so you can recreate them.


  


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


Re: GEOM_BDE: where is my partition?

2006-08-01 Thread Felipe Neuwald

Stefan,

Yes, the disk have been detected:

[EMAIL PROTECTED] /home/felipe]# dmesg | grep ad5
ad5: 194481MB  at ata2-slave UDMA66
[EMAIL PROTECTED] /home/felipe]# ls -laF /dev/ad5
crw-r-  1 root  operator0,  62 Aug  1 10:39 /dev/ad5

And here is the fdisk output:

[EMAIL PROTECTED] /home/felipe]# fdisk /dev/ad5
*** Working on device /dev/ad5 ***
parameters extracted from in-core disklabel are:
cylinders=395136 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=395136 heads=16 sectors/track=63 (1008 blks/cyl)

fdisk: invalid fdisk partition table found
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
   start 63, size 398297025 (194480 Meg), flag 80 (active)
   beg: cyl 0/ head 1/ sector 1;
   end: cyl 895/ head 15/ sector 63
The data for partition 2 is:

The data for partition 3 is:

The data for partition 4 is:


Felipe.


Stefan Bethke escreveu:

(Please do *not* crosspost.)

Am 01.08.2006 um 15:36 schrieb Felipe Neuwald:


[EMAIL PROTECTED] /dev]# ls /dev/ad5s1c
ls: /dev/ad5s1c: No such file or directory


Is the actual disk probed? (dmesg output should show that.)

If the hardware is still detected, what does fdisk say about the 
slices on that disk?



Stefan


--Stefan Bethke <[EMAIL PROTECTED]>   Fon +49 170 346 0140







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


GEOM_BDE: where is my partition?

2006-08-01 Thread Felipe Neuwald

Hi Folks,

I have 4 GEOM_BDE encrypted partitions in one FreeBSD 6.1-PRERELEASE 
Server. Since the server anormally shutdown (power cut), one of 
partitions isn't more available.


Here is the partitions:

[EMAIL PROTECTED] /dev]# ls -laF /etc/gbde/
total 12
drwxr-xr-x   2 root  wheel   512 Mar 23 15:33 ./
drwxr-xr-x  19 root  wheel  2048 Jul 13 11:34 ../
-rw---   1 root  wheel16 Sep 26  2005 ad0s1g
-rw---   1 root  wheel16 Sep 26  2005 ad1s1d
-rw---   1 root  wheel16 Sep 27  2005 ad2s1d
-rw---   1 root  wheel16 Mar 23 15:33 ad5s1c

ad0s1g, ad1s1d, and ad2s1d are correctly mounted:

[EMAIL PROTECTED] /dev]# mount | grep bde
/dev/ad0s1g.bde on /data (ufs, NFS exported, local, soft-updates)
/dev/ad1s1d.bde on /data1 (ufs, NFS exported, local, soft-updates)
/dev/ad2s1d.bde on /data2 (ufs, NFS exported, local, soft-updates)

But /dev/ad5s1c doesn't exist anymore!!!

[EMAIL PROTECTED] /dev]# /sbin/gbde attach /dev/ad5s1c -l /etc/gbde/ad5s1c
Enter passphrase:
gbde: Attach to ad5s1c failed: Provider not found
[EMAIL PROTECTED] /dev]# ls /dev/ad5s1c
ls: /dev/ad5s1c: No such file or directory
[EMAIL PROTECTED] /dev]#

Any idea of how to recover the partition? What could happend? =/

Here is some info about my kernel:

[EMAIL PROTECTED] /dev]# cat /usr/src/sys/i386/conf/KERNEL4 | grep GEOM
options GEOM_GPT# GUID Partition Tables.
options GEOM_BDE

And about my system:

[EMAIL PROTECTED] /dev]# uname -a
FreeBSD xingu.xxx 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Mon Feb 20 
16:47:57 BRT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/KERNEL4  i386


Thank you,

Felipe Neuwald.

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