You are not logged in.

#1 2016-05-09 02:32:54

happysaph98
Member
From: Under your bed
Registered: 2016-05-06
Posts: 4
Website

Issue with parted, not entirely sure how to classify it

I've been getting kind of adventurous lately. I got this laptop with Windows 10, and up until today it booted W10, Arch, Debian and Gentoo. I was going for OpenBSD, too, but I must have made a mistake somewhere in the partitioning process because now most of my partitions are gone, and there's one partition that claims to be the size of the entire drive and overlaps what's left of the actual partitions. Here's the output of fdisk -l.

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: gpt
Disk identifier: 0974EE77-A0DB-494D-8336-D6A40B565A4E

Device          Start        End    Sectors   Size Type
/dev/sda6  1945335808 1953523711    8187904   3.9G Linux swap
/dev/sda7  1596157952 1944986076  348828125 166.3G Microsoft basic data
/dev/sda15         34 1953525134 1953525101 931.5G unknown

Partition 16 does not start on physical sector boundary.


Partition table entries are not in disk order.

Most of my files are gone, and only a few are still left. I've tried deleting /dev/sda15 to no avail. What the hell is going on?


"You know what, there's only one video game in the world that's worth playing, and it's Tony Hawk's Pro Skater 4. The rest are just cheap knock-offs."

Offline

#2 2016-05-09 06:50:34

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: Issue with parted, not entirely sure how to classify it

Are the sda6 and sda7 correct? What happened when you deleted sda15 exactly? I assume it got deleted but you have not seen the oldpartition table you were expecting. I just hope you've not formated anything or written any data to the drive. If you have not the data is recoverable (though I'm not about windows). To regain access to the old data just recreate the old partition layout without any formatting, being careful that every partition you create now has the same start sector as it used to. End sector can be different, but it should not (or should I say must not) be placed at the point where there's actual data. Sothe key question really is: Do you know exactly how the partitions looked?

Are you able to mount the big partition? I belive it should contain a filesystem the size of the physically first partition you've had earlier.

Offline

#3 2016-05-09 21:43:53

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Issue with parted, not entirely sure how to classify it

happysaph98 wrote:

I was going for OpenBSD, too, but I must have made a mistake somewhere in the partitioning process because now most of my partitions are gone

Your `parted` output looks like it may show the remnants of an OpenBSD disklabel.

Boot up an OpenBSD ISO image [1] and drop to a shell then look at the output of:

fdisk sd0

This will show the partition table.

EDIT: See fdisk(8) big_smile

[1] http://www.openbsd.org/ftp.html -- miniroot59.fs is the file you want wink

Last edited by Head_on_a_Stick (2016-05-09 22:07:14)

Offline

Board footer

Powered by FluxBB