DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 22nd February 2017
girarde girarde is offline
Fdisk Soldier
 
Join Date: Nov 2010
Location: NW FL
Posts: 75
Default The Quest for the Holy Disklabel

Installing 6.0 for a backup server. Began installing to the wrong disk. That is to say, the disks that the backups done over USB on it. scan_ffs output:
Code:
ed@foop(~)$doas scan_ffs sd0c
ffs at 256 size 1073741824 mount /usb/0a time Tue Jul 26 14:06:37 2016
ffs at 10977248 size 4294950912 mount /mnt/tmp time Tue Jul 26 14:07:02 2016
ffs at 19365824 size 12851036160 mount /mnt/var time Tue Jul 26 14:07:07 2016
ffs at 44465504 size 2147483648 mount /mnt/usr time Tue Jul 26 14:07:03 2016
ffs at 48659808 size 1073741824 mount /mnt/usr/X11R6 time Tue Jul 26 14:07:04 2016
ffs at 50756960 size 10737418240 mount /mnt/usr/local time Tue Jul 26 14:07:04 2016
ffs at 71728480 size 2147483648 mount /mnt/usr/src time Tue Jul 26 14:07:07 2016
ffs at 75922784 size 2147483648 mount /mnt/usr/obj time Tue Jul 26 14:07:06 2016
ffs at 2158656422 size 2293760 mount /mnt time Sun Apr  6 15:10:33 2014
ffs at 2646484042 size 293076992 mount /mnt time Sun Sep 18 15:40:21 2016
ffs at 2740322418 size 2293760 mount /mnt time Sun Apr  6 15:10:33 2014
ffs at 3121295664 size 293076992 mount /mnt time Sun Sep 18 15:40:21 2016
ffs at 3433503194 size 2293760 mount /mnt time Sun Apr  6 15:10:33 2014
ffs at 4946913598 size 2293760 mount /mnt time Sun Apr  6 15:10:33 2014
scan_ffs: read: Invalid argument
Currently the partitions that install created are removed, except for sd0c. I don't remember with certainty if I had left a FAT or ntfs partition on this disk at the time of the accident (21 Feb 2017), but probably not. The server chassis had been unused for a long time and had lost it's RTC setting. which may be where the July 26 stuff is coming from.

The disk is currently unmounted, attached USB. Some of the files on it represent archive, not just backup, so if they're gone it's actual data loss, not merely higher risk until more good backups are written. Any ideas?

Last edited by ocicat; 22nd February 2017 at 02:03 PM. Reason: Please use [code] & [/code] tags when posting command output.
Reply With Quote
  #2   (View Single Post)  
Old 22nd February 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

If this were me, I'd first look for backups of the disklabel. Failing that, I'd loop through the following steps with each detected filesystem from scan_ffs.
  1. create a disklabel with a detected filesystem
  2. attempt a read-only mount
  3. if successful, inspect and save any good, critical information elsewhere.
Seems pretty simple, except for when you have unsuccessful mounts or damaged data. Those, it might be possible to recover data using sysutils/sleuthkit. When I have used this, as its a large set of tools, I've installed and used their autopsy webserver to make it a little easier to use. My success rate using sleuthkit has been much higher recovering FAT filesystems than FFS. FFS recovery approaches 0%.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD automatic disklabel allocation J65nko Guides 0 22nd February 2016 01:50 PM
DragonFly BSD disklabel program changes. J65nko News 0 18th February 2010 01:59 AM
Mounting an FS with no MBR/disklabel Carpetsmoker FreeBSD General 2 10th December 2009 01:22 PM
Disklabel problem sateenkaari NetBSD Installation and Upgrading 3 13th August 2009 02:51 AM
disklabel don't see OpenBSD partition piotrk OpenBSD General 4 25th September 2008 06:14 PM


All times are GMT. The time now is 08:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick