In a rush, I've made a dumb mistake of trying to install GhostBSD on an logical partition. Luckily or not, install failed due to bad DVD.
Anyhow, following a reboot all logical partitions are seemingly still there ( as found by testdisk ), though ( obviously ) inaccessible from Debian.
fdisk:
Code: Select all
Disk /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xcb5cb31b
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sda2 206848 209922047 209715200 100G 7 HPFS/NTFS/exFAT
/dev/sda3 209922048 461580287 251658240 120G 83 Linux
/dev/sda4 461582334 1953523711 1491941378 711,4G a5 FreeBSD
Partition 4 does not start on physical sector boundary.
Code: Select all
TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
Partition Start End Size in sectors
1 * HPFS - NTFS 0 32 33 12 223 19 204800
2 P HPFS - NTFS 12 223 20 13067 10 63 209715200
3 P Linux 13067 11 1 28732 11 15 251658240 [Stretch]
4 E extended LBA 28732 11 16 121601 57 56 1491943424
5 L FreeBSD 28732 43 46 15665 0 16 36028796809039875
6 L Linux 29776 161 18 45441 161 32 251658240
7 L Linux 45441 194 2 53274 66 40 125829120 [Jessie]
8 L Linux 53274 99 10 57190 162 60 62914560 [Neon]
9 L Linux 57190 195 30 61107 4 17 62914560 [Salix]
10 L Linux 61107 36 50 65023 100 37 62914560
11 L Linux 65023 133 7 68939 196 57 62914560 [Arch]
12 L Linux 68939 229 27 110713 60 3 671088640 [T-Store]
13 L HPFS - NTFS 110713 92 36 121601 57 56 174913536
>[ Quit ] [Deeper Search] [ Write ]
Return to main menu
http://i.imgur.com/Tge4U0f.png
Drive is a 1TB, MBR partitioned SATA disk. Main system is Debian Stretch, installed on the same drive, on /dev/sda3.
I haven't done nor tried anything yet, or in other words, excluding GhostBSD installer nothing has touched the extended/logical partition(s).
If memory serves me well, GhostBSD was to go on /dev/sda6 ( or ada0s4a in BSD parlance ), using UFS+SUJ as fs.
This is my first time in a specific mess like this, so any pointers as to what is the best course of action towards recovery would be greatly apreciated!
The only ( likely bad ) idea that comes to my mind is to change the type of BSD partition back to "Extended"...
EDIT:
I do have a spare drive ready to use should it be needed ( smaller though, 640GB ).