DragonFly users List (threaded) for 2009-08
DragonFly BSD
DragonFly users List (threaded) for 2009-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Lost all Data


From: Siju George <sgeorge.ml@xxxxxxxxx>
Date: Tue, 11 Aug 2009 19:58:09 +0530

On Tue, Aug 11, 2009 at 7:30 PM, Simon 'corecode'
Schubert<corecode@fs.ei.tum.de> wrote:
>
> undo does not work on directories, try hammer history
>

How do I do that?

>> Any Idea how to get the data back?
>
> it doesn't seem that /Backup1 or /Backup2 are mounted.  Did maybe your
> device numbers change and mount can not find the file systems?  What happens
> if you try to mount them manually?
>

This was my original fstab

# cat /etc/fstab
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad4s1a             /               ufs     rw              1       1
/dev/ad4s1d             /home           ufs     rw              2       2
/dev/ad4s1e             /tmp            ufs     rw              2       2
/dev/ad4s1f             /usr            ufs     rw              2       2
/dev/ad4s1g             /var            ufs     rw              2       2
/dev/ad4s1b             none            swap    sw              0       0
proc                    /proc           procfs  rw              0       0
#
#Hammer Partitions - ad4s1h has master pfs, ad6s1h has slave pfs################
/dev/ad4s1h             /Backup1        hammer  rw              2       2
/dev/ad6s1h             /Backup2        hammer  rw              2       2
#pfs null_mount
/Backup1/pfs/Data      /Backup1/Data    null    rw              0       0
##############################################################################
#2nd Disk partitions mounted for chroot#######################################
/dev/ad6s1a             /mnt/2ndDisk    ufs     rw              1       1
/dev/ad6s1d        /mnt/2ndDisk/home    ufs     rw              2       2
/dev/ad6s1e        /mnt/2ndDisk/tmp     ufs     rw              2       2
/dev/ad6s1f        /mnt/2ndDisk/usr     ufs     rw              2       2
/dev/ad6s1g        /mnt/2ndDisk/var     ufs     rw              2       2
/dev/ad6s1b             none            swap    sw              0       0


this is my current disklabels

# disklabel /dev/ad4s1
# /dev/ad4s1:
type: unknown
disk: amnesiac
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 128
sectors/cylinder: 8064
cylinders: 121127
sectors/unit: 976773105
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

16 partitions:
#          size     offset    fstype
  a:    2097152          0    4.2BSD    #    1024.000MB
  b:    2097152    2097152      swap    #    1024.000MB
  c:  976773105          0    unused    #  476939.993MB
  d:    2097152    4194304    4.2BSD    #    1024.000MB
  e:    2097152    6291456    4.2BSD    #    1024.000MB
  f:   10485760    8388608    4.2BSD    #    5120.000MB
  g:    2097152   18874368    4.2BSD    #    1024.000MB
  h:  955801585   20971520    unused    #  466699.993MB
dfly-bkpsrv# mount /dev/ad4s1h /Backup1
mount: /dev/ad4s1h: No such file or directory


# disklabel /dev/ad6s1
# /dev/ad6s1:
type: unknown
disk: amnesiac
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 128
sectors/cylinder: 8064
cylinders: 121127
sectors/unit: 976773105
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

16 partitions:
#          size     offset    fstype
  a:    2097152          0    4.2BSD    #    1024.000MB
  b:    2097152    2097152      swap    #    1024.000MB
  c:  976773105          0    unused    #  476939.993MB
  d:    2097152    4194304    4.2BSD    #    1024.000MB
  e:    2097152    6291456    4.2BSD    #    1024.000MB
  f:   10485760    8388608    4.2BSD    #    5120.000MB
  g:    2097152   18874368    4.2BSD    #    1024.000MB
  h:  955801585   20971520    unused    #  466699.993MB

# mount
/dev/ad4s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad4s1d on /home (ufs, local, soft-updates)
/dev/ad4s1e on /tmp (ufs, local, soft-updates)
/dev/ad4s1f on /usr (ufs, local, soft-updates)
/dev/ad4s1g on /var (ufs, local, soft-updates)
procfs on /proc (procfs, local)

# mount -a
hammer: No such file or directory
hammer: No such file or directory
mount: /Backup1/Data: No such file or directory

Trying manual mount

# mount /dev/ad4s1h /Backup1
mount: /dev/ad4s1h: No such file or directory

# mount /dev/ad6s1h /Backup2
mount: /dev/ad6s1h: No such file or directory

My original set up is here.

http://www.mail-archive.com/users@crater.dragonflybsd.org/msg08919.html

Thanks for the quick response :-)

Hope the Data is still in there and it is a matter of making the
device file /dev/ad4s1h and ad6s1h :-)

--Siju



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]